So Easy!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 899 Accepted Submission(s): 244Problem Description A sequence Sn is defined as:Where a, b, n, m are positive integers.┌x┐is the ceil of x.
The Little Girl who Picks MushroomsTime Limit: 2 Seconds Memory Limit: 32768 KB It's yet another festival season in Gensokyo. Little girl Alice planned to pick mushrooms in five mountains. She brought five bags with her and used different bags to
Maximum Random WalkTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 229 Accepted Submission(s): 128Problem DescriptionConsider the classic random walk: at each step, you have a 1/2 chance of taking
lockerTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 880 Accepted Submission(s): 371Problem DescriptionA password locker with N digits, each digit can be rotated to 0-9 circularly.You can rotate 1
Travel in timeTime Limit: 8000/4000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1008 Accepted Submission(s): 204Problem Description Bob gets tired of playing games, leaves Alice, and travels to Changsha alone.
Tree CuttingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3310 Accepted: 1952DescriptionAfter Farmer John realized that Bessie had installed a "tree-shaped" network among his N (1 <= N <= 10,000) barns at an incredible cost, he
Breaking StringsTime Limit: 2 Seconds Memory Limit: 65536 KBA certain string-processing language allows the programmer to break a string into two pieces. Since this involves copying the old string, it costs n units of time to break a string of
Balancing ActTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7594 Accepted: 3082DescriptionConsider a tree T with N (1 <= N <= 20,000) nodes numbered 1...N. Deleting any node from the tree yields a forest: a collection of one or more
Scout YYF ITime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4023 Accepted: 1029DescriptionYYF is a couragous scout. Now he is on a dangerous mission which is to penetrate into the enemy's base. After overcoming a series difficulties, YYF is
Collecting BugsTime Limit: 10000MS Memory Limit: 64000KTotal Submissions: 1730 Accepted: 794Case Time Limit: 2000MS Special JudgeDescriptionIvan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he
Sum of divisorsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2052 Accepted Submission(s): 713Problem Descriptionmmm is learning division, she's so proud of herself that she can figure out the
One Person GameTime Limit: 1 Second Memory Limit: 32768 KB Special Judge There is a very simple and interesting one-person game. You have 3 dice, namelyDie1, Die2 and Die3. Die1 hasK1 faces. Die2 has K2 faces.Die3 has K3 faces. All the dice are fair
charge-stationTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 610 Accepted Submission(s): 306Problem DescriptionThere are n cities in M^3's empire. M^3 owns a palace and a car and the palace
RSA FactorizationTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 471 Accepted: 124DescriptionThe positive integer n is given. It is known that n = p * q, where p and q are primes, q <= p and |q - kp| <= 105 for some given positive
Yukari's BirthdayTime Limit: 2 Seconds Memory Limit: 32768 KB Today is Yukari's n-th birthday. Ran and Chen hold a celebration party for her. Now comes the most important part, birthday cake! But it's a big challenge for them to placen candles on