02 2016 档案
摘要:Description两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很...
阅读全文
摘要:There is an interesting and simple one person game. Suppose there is a number axis under your feet. You are at point A at first and yo...
阅读全文
摘要:Famil Door’s City map looks like a tree (undirected connected acyclic graph) so other people call it Treeland. There are n intersectio...
阅读全文
摘要:Problem DescriptionThere are no days and nights on byte island, so the residents here can hardly determine the length of a single day....
阅读全文
摘要:The 11th Zhejiang Provincial Collegiate Programming Contest is coming! As a problem setter, Edward is going to arrange the order of th...
阅读全文
摘要:Problem DescriptionZZZ is an enthusiastic ACMer and he spends lots of time on training. He always stays up late for training. He needs...
阅读全文
摘要:Problem Description在双胞胎兄弟Eric与R.W的生日会上,他们共收到了N个礼物,生日过后他们决定分配这N个礼物(numv+numw=N)。对于每个礼物他们俩有着各自心中的价值vi和wi,他们要求各自分到的礼物数目|numv-numw|#includ...
阅读全文
摘要:As Famil Door’s birthday is coming, some of his friends (like Gabi) decided to buy a present for him. His friends are going to buy a s...
阅读全文
摘要:Problem DescriptionA cyclic number is an integer n digits in length which, when multiplied by any integer from 1 to n, yields a ~{!0~}...
阅读全文
摘要:Problem DescriptionGive you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find...
阅读全文
摘要:IT City administration has no rest because of the fame of the Pyramids in Egypt. There is a project of construction of pyramid complex...
阅读全文
摘要:IT City company developing computer games decided to upgrade its way to reward its employees. Now it looks the following way. After a ...
阅读全文
摘要:DescriptionTree is a connected graph without cycles. A leaf of a tree is any vertex connected with exactly one other vertex.You are gi...
阅读全文
摘要:DescriptionAn undergraduate student, realizing that he needs to do research to improve his chances of being accepted to graduate schoo...
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 311 Accepted Submission(s):...
阅读全文
摘要:DescriptionThere are n students in a class working on group projects. The students will divide into groups (some students may be in gr...
阅读全文
摘要:Define the simple skewness of a collection of numbers to be the collection's mean minus its median. You are given a list of n (not nec...
阅读全文
摘要:Andrew and Jerry are playing a game with Harry as the scorekeeper. The game consists of three rounds. In each round, Andrew and Jerry ...
阅读全文
摘要:Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 100000/100000 K (Java/Others)Total Submission(s): 2302 Accepted Submissio...
阅读全文
摘要:Time Limit: 10 Seconds Memory Limit: 65536 KBDr. X is a biologist, who likes rabbits very much and can do everything for them. 20...
阅读全文
摘要:Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 3657 Accepted Submission(s...
阅读全文
摘要:Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1930 Accepted Submission(s)...
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3056 Accepted Submission(s)...
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5400 Accepted Submission(s)...
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 207 Accepted Submission(s):...
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4709 Accepted Submission(s)...
阅读全文
摘要:DescriptionIt's well known that DNA Sequence is a sequence only contains A, C, T and G, and it's very useful to analyze a segment of D...
阅读全文
摘要:DescriptionA prefix of a string is a substring starting at the beginning of the given string. The prefixes of "carbon" are: "c", "ca",...
阅读全文
摘要:Problem DescriptionJohn is a manager of a CPU chip factory, the factory produces lots of chips everyday. To manage large amounts of pr...
阅读全文
摘要:Problem DescriptionA hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary.You...
阅读全文
摘要:Problem DescriptionGiven a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. ...
阅读全文
摘要:Genos recently installed the game Zuma on his phone. In Zuma there exists a line of n gemstones, the i-th of which has color ci. The g...
阅读全文
摘要:DescriptionMato同学从各路神犇以各种方式(你们懂的)收集了许多资料,这些资料一共有n份,每份有一个大小和一个编号。为了防止他人偷拷,这些资料都是加密过的,只能用Mato自己写的程序才能访问。Mato每天随机选一个区间[l,r],他今天就看编号在此区间内的...
阅读全文
摘要:An array of positive integers a1, a2, ..., an is given. Let us consider its arbitrary subarray al, al + 1..., ar, where 1 ≤ l ≤ r ≤ n....
阅读全文
摘要:time limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBob has a favorite number k and ...
阅读全文
摘要:Time Limit: 20 Sec Memory Limit: 259 MBSubmit: 5307 Solved: 2450[Submit][Status][Discuss]Description作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜...
阅读全文
摘要:Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 27751 Accepted Submission(...
阅读全文
摘要:There are b blocks of digits. Each one consisting of the same n digits, which are given to you in the input. Wet Shark must chooseexac...
阅读全文