题目链接:uva 1543 - Telescope
题目大意:...
分类:
其他好文 时间:
2014-05-08 04:28:25
阅读次数:
364
题目链接:点击打开链接
题意:
切水果游戏
给出n个水果
水果出现在屏幕上的时间的区间
1、每次切会把屏幕上所有水果切完
2、当同时切3个或以上时计分,分数为切的水果个数
3、不能遗漏水果
问最高得分
dp[i] 表示 最后一次切第i个的得分。
#include
#include
#include
#include
using namespace std;
#define N ...
分类:
其他好文 时间:
2014-05-07 23:36:52
阅读次数:
346
题目链接:click here~
此题我估计是加强过数据,在我纠结了很久的时候我交了好几份网上的代码不是WA就是TLE。在我很迷茫的时候我又交了一份,AC了(虽然我用随机数据找到了他代码一个不能过的数据)。
给了我信心,然后我拿他的代码用随机数跟我的代码进行测试,再用FC找不同。。发现了一个致命的错误,一般来说,BFS或者DFS都是需要有一个vis数组或者哈希来判重,但是此题判重是有很大问题的...
分类:
其他好文 时间:
2014-05-07 22:48:42
阅读次数:
400
题目链接:uva 11782 - Optimal Cut
题目大意:按照前序给出一棵完全树的qia...
分类:
其他好文 时间:
2014-05-07 16:34:29
阅读次数:
312
题目如下:
The Dole Queue
In a serious attempt to downsize (reduce) the dole queue, The NewNational Green Labour Rhinoceros Party has decided on the followingstrategy. Every day ...
分类:
其他好文 时间:
2014-05-07 15:46:40
阅读次数:
235
题目链接:点击打开链接
题意:rt
思路:从最低位开始构造,若x位的平方数是自身则继续构造。
mark:
#pragma comment(linker, "/STACK:1024000000,1024000000")
#include
#include
#include
#include
#include
#include
#include
#include
#include
#inc...
分类:
其他好文 时间:
2014-05-07 11:59:23
阅读次数:
303
题目连接:uva 1534 - Taekwondo
题目大意:...
分类:
其他好文 时间:
2014-05-07 11:50:55
阅读次数:
207
1,有几位数字
#include
int main_2_1_digit(){
int n;
while(scanf("%d",&n)){
int count = 0;
if(n==0)
count = 1;
while(n){
count++;
n/=10;
}
printf("%d\n",count);
}
return 0;
}
...
分类:
其他好文 时间:
2014-05-06 21:20:19
阅读次数:
374
题目链接:uva 10981 - String Morphing
题目大意:...
分类:
其他好文 时间:
2014-05-06 21:14:55
阅读次数:
364