StarsTime Limit:1000MSMemory Limit:65536KTotal Submissions:22249Accepted:9689DescriptionAstronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are not higher and not to the r Read More
posted @ 2012-08-03 15:47 jiai Views(181) Comments(0) Diggs(0) Edit
QueryTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 531Accepted Submission(s): 164Problem DescriptionYou are given two strings s1[0..l1], s2[0..l2] and Q - number of queries.Your task is to answer next queries:1) 1 a i c - you should set i-th ch Read More
posted @ 2012-08-03 11:21 jiai Views(176) Comments(0) Diggs(0) Edit
TroubleTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1159Accepted Submission(s): 375Problem DescriptionHassan is in trouble. His mathematics teacher has given him a very difficult problem called 5-sum. Please help him.The 5-sum problem is define Read More
posted @ 2012-08-03 10:18 jiai Views(190) Comments(0) Diggs(0) Edit
King Arthur's KnightsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 248Accepted Submission(s): 109Special JudgeProblem DescriptionI am the bone of my sword. Steel is my body, and the fire is my blood.- from Fate / Stay NightYou must have known Read More
posted @ 2012-08-03 09:42 jiai Views(601) Comments(0) Diggs(0) Edit
Mobile phonesTime Limit:5000MSMemory Limit:65536KTotal Submissions:10930Accepted:5002DescriptionSuppose that the fourth generation mobile phone base stations in the Tampere area operate as follows. The area is divided into squares. The squares form an S * S matrix with the rows and columns numbered Read More
posted @ 2012-08-02 10:06 jiai Views(129) Comments(0) Diggs(0) Edit
Counting the algorithmsMy Tags(Edit)Source:mostlegTime limit: 1 secMemory limit: 64 MSubmitted: 484,Accepted: 186As most of the ACMers, wy's next target is algorithms, too. wy is clever, so he can learn most of the algorithms quickly. After a short time, he has learned a lot. One day,mostlegaske Read More
posted @ 2012-08-01 17:51 jiai Views(265) Comments(0) Diggs(0) Edit
经理的烦恼My Tags(Edit)Source:HCPC 2005 SpringTime limit: 2 secMemory limit: 32 MSubmitted: 1927,Accepted: 441Jerry是一家公司销售部门的经理。这家公司有很多连锁店,编号为1,2,3,... Jerry每天必须关注每家连锁店的商品数量及其变化,一项很乏味的工作。在连锁店比较少的时候,Jerry喜欢计算编号在[i,j]区间内的连锁店中商品数量为素数的有多少家,但是现在连锁店的数量急剧增长,计算量很大,Jerry很难得出结果。输入格式题目有多组输入。每组输入第一行有三个整数:C 连锁店的数量 N Read More
posted @ 2012-08-01 16:29 jiai Views(184) Comments(0) Diggs(0) Edit
Arcane Numbers 1Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 871Accepted Submission(s): 277Problem DescriptionVance and Shackler like playing games. One day, they are playing a game called "arcane numbers". The game is pretty simple, V Read More
posted @ 2012-08-01 14:35 jiai Views(313) Comments(0) Diggs(0) Edit
FlowersTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 0Accepted Submission(s): 0Problem DescriptionAs is known to all, the blooming time and duration varies between different kinds of flowers. Now there is a garden planted full of flowers. The gar Read More
posted @ 2012-07-31 17:25 jiai Views(246) Comments(7) Diggs(0) Edit
Power transmissionTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 998Accepted Submission(s): 352Problem DescriptionThe project West-East power transmission is famous around the world. It transmits the electricity from western areas to east China Read More
posted @ 2012-07-30 18:09 jiai Views(277) Comments(0) Diggs(0) Edit