火星藏宝图 Description Input Output Sample Input 4 10 1 1 20 10 10 10 3 5 60 5 3 30 Sample Output -4 HINT 1<= M <=2000, 2<= N <=100000. 1<= M <=2000, 2<= N ...
分类:
Web程序 时间:
2017-05-28 11:48:29
阅读次数:
222
1433: [ZJOI2009]假期的宿舍 Description Input Output Sample Input 1 3 1 1 0 0 1 0 0 1 1 1 0 0 1 0 0 Sample Output ? ? HINT 对于30% 的数据满足1 ≤ n ≤ 12。对于100% 的数据满 ...
分类:
其他好文 时间:
2017-05-27 23:05:33
阅读次数:
284
大视野——3339: Rmq Problem Description Input Output Sample Input 7 50 2 1 0 1 3 21 32 31 43 62 7 Sample Output 30324 HINT Source By Xhr 思路: 对于这个题似乎暴力不好打,而 ...
分类:
其他好文 时间:
2017-05-27 22:31:23
阅读次数:
172
传送门:http://www.lydsy.com/JudgeOnline/problem.php?id=1367 [Baltic2004]sequence Description Input Output 一个整数R Sample Input 7 9 4 8 20 14 15 18 Sample O ...
分类:
其他好文 时间:
2017-05-27 21:54:11
阅读次数:
226
传送门:http://www.lydsy.com/JudgeOnline/problem.php?id=3052 [wc2013]糖果公园 Description Input Output Sample Input Sample Input Sample Input Sample Output 84 ...
分类:
其他好文 时间:
2017-05-27 21:52:25
阅读次数:
291
?? 变量和基本类型 七、枚举 枚举不但定义了整数常量集,并且还把它们聚集成组。 枚举与简单的const常量相比孰优孰劣, 通过以下一段代码。 一看便知: [cpp] view plaincopyprint? enum {input, output, append}; const int input ...
分类:
编程语言 时间:
2017-05-27 13:33:40
阅读次数:
235
Description Problem E Eat or not to Eat? Input: Standard Input Output: Standard Output A young farmer has N cows, but they produced really really a ve ...
分类:
其他好文 时间:
2017-05-27 10:42:17
阅读次数:
183
Problem I Marcus, help! Input: standard input Output: standard output Time Limit: 2 Seconds "First, the breath of God. Only the penitent man will pass ...
分类:
其他好文 时间:
2017-05-25 19:05:25
阅读次数:
161
You need to find the largest value in each row of a binary tree. Example: Input: 1 / \ 3 2 / \ \ 5 3 9 Output: [1, 3, 9] 思路: 层次遍历,每一层选出当前层最大值。 ...
分类:
其他好文 时间:
2017-05-24 21:07:11
阅读次数:
141
1270: [BeijingWc2008]雷涛的小猫 Description Input Output Sample Input Sample Output 8 HINT 这个题已经水得不能再水了,然而我还是WA了几次 1 #include<iostream> 2 #include<cstdio> ...
分类:
其他好文 时间:
2017-05-24 00:52:34
阅读次数:
259