码迷,mamicode.com
首页 >  
搜索关键字:uva 刘汝佳 算法入门    ( 8426个结果
uva 1543 - Telescope(dp+几何)
题目链接:uva 1543 - Telescope 题目大意:...
分类:其他好文   时间:2014-05-08 04:28:25    阅读次数:364
Uva 12018 Juice Extractor dp
题目链接:点击打开链接 题意: 切水果游戏 给出n个水果 水果出现在屏幕上的时间的区间 1、每次切会把屏幕上所有水果切完 2、当同时切3个或以上时计分,分数为切的水果个数 3、不能遗漏水果 问最高得分 dp[i] 表示 最后一次切第i个的得分。 #include #include #include #include using namespace std; #define N ...
分类:其他好文   时间:2014-05-07 23:36:52    阅读次数:346
UVA 10603 Fill(正确代码虽然很搓,网上许多代码都不能AC)
题目链接:click here~ 此题我估计是加强过数据,在我纠结了很久的时候我交了好几份网上的代码不是WA就是TLE。在我很迷茫的时候我又交了一份,AC了(虽然我用随机数据找到了他代码一个不能过的数据)。 给了我信心,然后我拿他的代码用随机数跟我的代码进行测试,再用FC找不同。。发现了一个致命的错误,一般来说,BFS或者DFS都是需要有一个vis数组或者哈希来判重,但是此题判重是有很大问题的...
分类:其他好文   时间:2014-05-07 22:48:42    阅读次数:400
uva 11782 - Optimal Cut(dp)
题目链接:uva 11782 - Optimal Cut 题目大意:按照前序给出一棵完全树的qia...
分类:其他好文   时间:2014-05-07 16:34:29    阅读次数:312
uva The Dole Queue
题目如下: 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
ShellSort uva
关于list容器的使用。...
分类:其他好文   时间:2014-05-07 12:12:15    阅读次数:345
Uva 12009 平方数尾数与自身相同 dfs 构造
题目链接:点击打开链接 题意: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(dp+贪心)
题目连接:uva 1534 - Taekwondo 题目大意:...
分类:其他好文   时间:2014-05-07 11:50:55    阅读次数:207
算法竞赛_入门经典_刘汝佳__(2)
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(记忆化+离散)
题目链接:uva 10981 - String Morphing 题目大意:...
分类:其他好文   时间:2014-05-06 21:14:55    阅读次数:364
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!