A. Theatre Squaretime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputTheatre Square in the capital city of Berland has a rectangular shape with the size n × m meters. On the occasion of the city's
A. Candy Bagstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGerald has n younger brothers and their number happens to be even. One day he bought n2 candy bags. One bag has one candy, one bag has
Count the TreesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1255 Accepted Submission(s): 818Problem DescriptionAnother common social inability is known as ACM (Abnormally Compulsive
Hat's FibonacciTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5891 Accepted Submission(s): 1944Problem DescriptionA Fibonacci sequence is calculated by adding the previous two members the
Mad VeterinarianTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 168 Accepted Submission(s): 58Special JudgeProblem DescriptionMad Veterinarian puzzles have a mad veterinarian, who has
Faulhaber’s TriangleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 124 Accepted Submission(s): 55Problem DescriptionThe sum of the mth powers of the first n integersS(n,m) = SUM ( j= 1 to n)
Pairs of IntegersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 3622 Accepted: 905DescriptionYou are to find all pairs of integers such that their sum is equal to the given integer number N and the second number results from the first one
I Hate ItTime Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 27434 Accepted Submission(s): 10889Problem
並查集維護聯通性每一個聯通快枚舉點燃的船隻,然後求出全部燒著的最小時間最後求出所有聯通塊燒著時間的最大值即可。ChiBiTime Limit: 5 Seconds Memory Limit: 32768 KBwatashi's mm is so pretty as well as smart. Recently, she has watched the movie Chibi. So she knows more about the War of ChiBi. In the war,
Vases and FlowersTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1336 Accepted Submission(s): 532Problem Description Alice is so popular that she can receive many flowers everyday. She has
求得到n張卡的期望。Card CollectorTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1700 Accepted Submission(s): 776Special JudgeProblem DescriptionIn your childhood, do you crazy for collecting the