上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: Problem DescriptionToday the company has m tasks to complete. The ith task need xi minutes to complete. Meanwhile, this task has a difficulty level yi 阅读全文
posted @ 2019-02-26 15:35 陈墨cacm 阅读(452) 评论(0) 推荐(0)
摘要: 1.LIS的定义: 最长上升子序列(longest increasing subsequence),也可以叫最长非降序子序列,简称LIS,不是太难。即一个数的序列bi,当b1 < b2 < … < bS的时候,我们称这个序列是上升的。对于给定的一个序列(a1, a2, …, aN),我们可以得到一些 阅读全文
posted @ 2019-02-25 15:37 陈墨cacm 阅读(889) 评论(0) 推荐(0)
摘要: Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! InputOne N in one line, process to the end of file. OutputFor each N, output N! in one 阅读全文
posted @ 2019-02-21 15:11 陈墨cacm 阅读(123) 评论(0) 推荐(0)
摘要: DescriptionWe know that prime numbers are positive integers that have exactly two distinct positive divisors. Similarly, we'll call a positive integer 阅读全文
posted @ 2019-02-17 16:20 陈墨cacm 阅读(160) 评论(0) 推荐(0)
摘要: Alex doesn't like boredom. That's why whenever he gets bored, he comes up with games. One long winter evening he came up with a game and decided to pl 阅读全文
posted @ 2019-02-17 10:01 陈墨cacm 阅读(328) 评论(0) 推荐(0)
摘要: Password security is a tricky thing. Users prefer simple passwords that are easy to remember (like buddy), but such passwords are often insecure. Some 阅读全文
posted @ 2019-02-16 14:04 陈墨cacm 阅读(174) 评论(0) 推荐(0)
摘要: Vanya walks late at night along a straight street of length l, lit by n lanterns. Consider the coordinate system with the beginning of the street corr 阅读全文
posted @ 2019-02-16 09:24 陈墨cacm 阅读(1) 评论(0) 推荐(0)
摘要: Vasya works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance. Recently, he has decided to take a couple of ol 阅读全文
posted @ 2019-02-14 16:05 陈墨cacm 阅读(258) 评论(0) 推荐(0)
摘要: 设计一个对一维数组进行排序的sort函数,并调用它实现数组排序 思路:函数调用不止调用一个,最主要对函数不熟悉; 阅读全文
posted @ 2019-01-07 19:29 陈墨cacm 阅读(200) 评论(0) 推荐(0)
摘要: Trung is bored with his mathematics homeworks. He takes a piece of chalk and starts writing a sequence of consecutive integers starting with 1 to N (1 阅读全文
posted @ 2019-01-05 09:29 陈墨cacm 阅读(138) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页