随笔分类 -  online judge:Uva

摘要:题目链接:uva 1030 - Image Is Everything 题目大意:有一个最大为n*n*n的立方体的一个不规整立体,由若干个1*1*1的小正方体构成(每一个小正方体被涂成不同的颜色),给出n,然后是该立体的前、左、后、右、上和下的视图,然后判断该立体的最大体积是多少。 解题思路:首先先 阅读全文
posted @ 2017-07-19 11:08 Angel_Kitty 阅读(406) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1822 题意:有很多只蚂蚁在一条直线上,每个蚂蚁移动速度都是1,并且有一个初始方向。并且当相邻两个 阅读全文
posted @ 2017-07-19 10:43 Angel_Kitty 阅读(541) 评论(0) 推荐(0) 编辑
摘要:UVa 10382 - Watering Grass n sprinklers are installed in a horizontal strip of grass l meters long and w meters wide. Each sprinkler is installed at t 阅读全文
posted @ 2017-07-17 09:36 Angel_Kitty 阅读(428) 评论(0) 推荐(0) 编辑
摘要:UVA11039-Building designing Time limit: 3.000 seconds An architect wants to design a very high building. The building will consist of some floors, and 阅读全文
posted @ 2017-07-17 09:17 Angel_Kitty 阅读(322) 评论(0) 推荐(0) 编辑
摘要:UVA11636-Hello World! Time limit: 1.000 seconds When you first made the computer to print the sentence “Hello World!”, you felt so happy, not knowing h 阅读全文
posted @ 2017-07-17 09:02 Angel_Kitty 阅读(581) 评论(0) 推荐(0) 编辑
摘要:原题: Solve the equation: p*e-x + q*sin(x) + r*cos(x) + s*tan(x) + t*x2 + u = 0 where 0 <= x <= 1. Input Input consists of multiple test cases and termi 阅读全文
posted @ 2017-07-04 10:37 Angel_Kitty 阅读(367) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2456 题意 输入两个整数a和b,输出从a到b(包含a和b)的平方数的个数。直到输入0 0时程序 阅读全文
posted @ 2017-07-04 10:27 Angel_Kitty 阅读(509) 评论(0) 推荐(0) 编辑
摘要:题目链接:uva 12050 - Palindrome Numbers 题意:求第n个回文串 思路:首先可以知道的是长度为k的回文串个数有9*10^(k-1),那么依次计算,得出n是长度为多少的串,然后就得到是长度为多少的第几个的回文串了,有个细节注意的是, n计算完后要-1! 下面给出AC代码: 阅读全文
posted @ 2017-07-04 10:15 Angel_Kitty 阅读(279) 评论(0) 推荐(0) 编辑
摘要:题目链接:10339 - Watching Watches 题意:两个时钟,一个每天慢a秒,一个每天慢b秒,问两钟重新相遇的时刻 1圈有12 * 60 * 60秒,然后1圈 / abs(a - b),就可以求出多少天会相遇,然后就能求出A钟一共慢了多少秒,进而可以求出该时刻的时和分! 下面给出AC代 阅读全文
posted @ 2017-07-03 17:42 Angel_Kitty 阅读(338) 评论(0) 推荐(0) 编辑
摘要:Spreading the Wealth Problem A Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circula 阅读全文
posted @ 2017-03-13 16:41 Angel_Kitty 阅读(340) 评论(0) 推荐(0) 编辑
摘要:Uva 11729 Commando War (简单贪心) There is a war and it doesn't look very promising for your country. Now it's time to act. You have a commando squad at y 阅读全文
posted @ 2017-03-13 15:29 Angel_Kitty 阅读(370) 评论(0) 推荐(0) 编辑
摘要:Problem C: The Dragon of Loowater Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem. The shores of Rellau Cre 阅读全文
posted @ 2017-03-12 22:39 Angel_Kitty 阅读(360) 评论(0) 推荐(0) 编辑