摘要:
DescriptionBessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash into earth and destroy anything they ... 阅读全文
posted @ 2015-09-04 22:19
UniqueColor
阅读(239)
评论(0)
推荐(0)
摘要:
DescriptionThe N (2 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 #define N 100006 9 int n,m; 10 int tot; 1... 阅读全文
posted @ 2015-09-04 21:19
UniqueColor
阅读(232)
评论(0)
推荐(0)
摘要:
DescriptionGiven a N × N matrix A, whose element in the i-th row and j-th column Aij is an number that equals i2 + 100000 × i + j2 - 100000 × j + i × ... 阅读全文
posted @ 2015-09-04 20:18
UniqueColor
阅读(248)
评论(0)
推荐(0)
摘要:
DescriptionGiven N numbers, X1, X2, ... , XN, let us calculate the difference of every pair of numbers: ∣Xi - Xj∣ (1 ≤ i < j ≤ N). We can get C(N,2) d... 阅读全文
posted @ 2015-09-04 19:21
UniqueColor
阅读(574)
评论(0)
推荐(0)
摘要:
DescriptionFarmer John's N (1 =w1-s2,即w2+s2>=w1+s1,所以和最大的就该老实的在下面呆着= =! 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using name... 阅读全文
posted @ 2015-09-04 18:42
UniqueColor
阅读(244)
评论(0)
推荐(0)
摘要:
DescriptionDemy has n jewels. Each of her jewels has some value vi and weight wi.Since her husband John got broke after recent financial crises, Demy ... 阅读全文
posted @ 2015-09-04 17:52
UniqueColor
阅读(267)
评论(0)
推荐(0)
摘要:
DescriptionIn a certain course, you take n tests. If you get ai out of bi questions correct on test i, your cumulative average is defined to be ..Gi... 阅读全文
posted @ 2015-09-04 17:27
UniqueColor
阅读(248)
评论(0)
推荐(0)

浙公网安备 33010602011771号