摘要: Nearest Common AncestorsTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 19919Accepted: 10544DescriptionA rooted tree is a well-known data str... 阅读全文
posted @ 2015-02-15 23:43 qscqesze 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Radar InstallationTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 56702Accepted: 12792DescriptionAssume the coasting is an infinite straight ... 阅读全文
posted @ 2015-02-15 23:23 qscqesze 阅读(606) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll;using namesp... 阅读全文
posted @ 2015-02-14 17:11 qscqesze 阅读(577) 评论(1) 推荐(0) 编辑
摘要: int V; //顶点数量vector G[max_v]; //图的邻接表表示方法vector rG[max_v]; //把边反向建的图vector vs; //后序遍历顺序的顶点列表bool used[max_v]; //访问标记int cmp[max_v]; ... 阅读全文
posted @ 2015-02-14 16:06 qscqesze 阅读(644) 评论(0) 推荐(1) 编辑
摘要: Jessica's Reading ProblemTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7467Accepted: 2369DescriptionJessica's a very lovely girl wooed by l... 阅读全文
posted @ 2015-02-13 19:31 qscqesze 阅读(227) 评论(0) 推荐(0) 编辑
摘要: #1print "Welcome to Python!"#2my_variable = 10#3# Set the variables to the values listed in the instructions!my_int = 7my_float = 1.23my_bool = True#4... 阅读全文
posted @ 2015-02-13 18:59 qscqesze 阅读(797) 评论(0) 推荐(0) 编辑
摘要: AntsTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 10722Accepted: 4752DescriptionAn army of ants walk on a horizontal pole of length l cm, e... 阅读全文
posted @ 2015-02-13 14:10 qscqesze 阅读(713) 评论(0) 推荐(1) 编辑
摘要: #1// Move to the gem.// Don't touch the walls!// Type your code below.this.moveRight();this.moveDown();this.moveRight();#2// Grab all the gems using y... 阅读全文
posted @ 2015-02-09 21:58 qscqesze 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 其中思路很简单,单线程的一个乱七八糟的游戏预计会更新背包,背包这个估计会用一个vector来存图形的话,我得催催我的美工大人,她会帮我弄吧,哇哈哈界面: 1 namespace auttompk 2 { 3 partial class Form1 4 { 5 ... 阅读全文
posted @ 2015-02-08 12:05 qscqesze 阅读(563) 评论(0) 推荐(0) 编辑
摘要: 2015年2月6日11:55:35#include #include #include #include #include #include #include #include #include #include #include #include #include #include #includ... 阅读全文
posted @ 2015-02-06 11:56 qscqesze 阅读(394) 评论(2) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #includetypedef long lon... 阅读全文
posted @ 2015-02-06 11:54 qscqesze 阅读(471) 评论(0) 推荐(0) 编辑
摘要: E. Arthur and Bracketstime limit per test2 secondsmemory limit per test128 megabytesinputstandard inputoutputstandard outputNotice that the memory lim... 阅读全文
posted @ 2015-01-28 16:27 qscqesze 阅读(362) 评论(0) 推荐(0) 编辑
摘要: C. Anya and Ghoststime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnya loves to watch horror mov... 阅读全文
posted @ 2015-01-28 16:12 qscqesze 阅读(304) 评论(0) 推荐(0) 编辑
摘要: B. Anton and currency you all knowtime limit per test0.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBerland, 201... 阅读全文
posted @ 2015-01-28 16:10 qscqesze 阅读(442) 评论(0) 推荐(0) 编辑
摘要: Stock PricesTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 987Accepted Submission(s): 397Problem... 阅读全文
posted @ 2015-01-27 23:58 qscqesze 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Shape NumberTime Limit: 24000/12000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 981Accepted Submission(s): 471Proble... 阅读全文
posted @ 2015-01-27 23:57 qscqesze 阅读(467) 评论(0) 推荐(0) 编辑
摘要: Iterated DifferenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 786Accepted Submission(s): 505P... 阅读全文
posted @ 2015-01-27 23:55 qscqesze 阅读(228) 评论(0) 推荐(0) 编辑
摘要: PillsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 974Accepted Submission(s): 649Problem Descrip... 阅读全文
posted @ 2015-01-27 23:54 qscqesze 阅读(438) 评论(0) 推荐(0) 编辑
摘要: B - Weapon Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionIn World War 3, your countries' scientists have i... 阅读全文
posted @ 2015-01-26 14:46 qscqesze 阅读(213) 评论(0) 推荐(0) 编辑
摘要: ExpeditionTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7707Accepted: 2263DescriptionA group of cows grabbed a truck and ventured on an exp... 阅读全文
posted @ 2015-01-25 19:27 qscqesze 阅读(474) 评论(0) 推荐(1) 编辑
摘要: SubsequenceTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 9050Accepted: 3604DescriptionA sequence of N positive integers (10 #include #inclu... 阅读全文
posted @ 2015-01-25 18:43 qscqesze 阅读(593) 评论(0) 推荐(0) 编辑
摘要: C. Guess Your Way Out!time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAmr bought a new video game... 阅读全文
posted @ 2015-01-24 12:55 qscqesze 阅读(346) 评论(0) 推荐(0) 编辑
摘要: B. Amr and Pinstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAmr loves Geometry. One day he cam... 阅读全文
posted @ 2015-01-24 12:52 qscqesze 阅读(440) 评论(0) 推荐(0) 编辑
摘要: A. Amr and Musictime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAmr is a young coder who likes mu... 阅读全文
posted @ 2015-01-24 12:50 qscqesze 阅读(444) 评论(0) 推荐(0) 编辑
摘要: C - Color the Ball Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThere are infinite balls in a line (num... 阅读全文
posted @ 2015-01-24 12:40 qscqesze 阅读(407) 评论(0) 推荐(0) 编辑
摘要: I - Sequence Median Time Limit:1000MS Memory Limit:1024KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionGiven a sequence of N nonnegative integ... 阅读全文
posted @ 2015-01-24 12:36 qscqesze 阅读(391) 评论(0) 推荐(0) 编辑
摘要: Dungeon MasterTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 17555Accepted: 6835DescriptionYou are trapped in a 3D dungeon and need to find ... 阅读全文
posted @ 2015-01-23 21:57 qscqesze 阅读(497) 评论(0) 推荐(1) 编辑
摘要: 敌兵布阵Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 48050Accepted Submission(s): 20317Problem Desc... 阅读全文
posted @ 2015-01-23 11:46 qscqesze 阅读(343) 评论(0) 推荐(0) 编辑
摘要: D - Blast the Enemy! Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 4426DescriptionA new computer game h... 阅读全文
posted @ 2015-01-21 10:43 qscqesze 阅读(377) 评论(1) 推荐(0) 编辑
摘要: C - Another Brick in the Wall Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 4425DescriptionAfter years ... 阅读全文
posted @ 2015-01-21 10:42 qscqesze 阅读(302) 评论(0) 推荐(0) 编辑
摘要: A - String LD Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 4423DescriptionStringld(left delete) is a f... 阅读全文
posted @ 2015-01-21 10:40 qscqesze 阅读(210) 评论(0) 推荐(0) 编辑
摘要: J - Underground Cables Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 4872DescriptionA city wants to get... 阅读全文
posted @ 2015-01-21 10:39 qscqesze 阅读(422) 评论(0) 推荐(0) 编辑
摘要: H - Roller Coaster Time Limit:4500MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 4870DescriptionBessie has gone on a tr... 阅读全文
posted @ 2015-01-21 10:38 qscqesze 阅读(427) 评论(0) 推荐(0) 编辑
摘要: G - Profits Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 4869DescriptionYour friends have just opened ... 阅读全文
posted @ 2015-01-21 10:35 qscqesze 阅读(243) 评论(0) 推荐(0) 编辑
摘要: F - Palindrometer Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 4868DescriptionWhile driving the other ... 阅读全文
posted @ 2015-01-21 10:34 qscqesze 阅读(413) 评论(0) 推荐(0) 编辑
摘要: E - Maximum Square Time Limit:4500MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 4867DescriptionGiven an NxM matrix of ... 阅读全文
posted @ 2015-01-21 10:32 qscqesze 阅读(377) 评论(0) 推荐(0) 编辑
摘要: There will be several test cases in the input. Each test case will begin with a line with three integers:NAB Where N is the number of teams (1N1, 000)... 阅读全文
posted @ 2015-01-21 10:30 qscqesze 阅读(275) 评论(0) 推荐(0) 编辑
摘要: On some special occasions Nadia’s company provide very special lunch for all employees of the company. Before the food is served all of the employees ... 阅读全文
posted @ 2015-01-19 10:16 qscqesze 阅读(331) 评论(0) 推荐(0) 编辑
摘要: A. Mr. Kitayuta's Gifttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMr. Kitayuta has kindly giv... 阅读全文
posted @ 2015-01-19 00:02 qscqesze 阅读(808) 评论(0) 推荐(0) 编辑
摘要: B - Counting BST Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 5058DescriptionBinary Search Tree (BST) ... 阅读全文
posted @ 2015-01-18 10:21 qscqesze 阅读(307) 评论(0) 推荐(0) 编辑