A Simple Problem with IntegersTime Limit : 10000/5000ms (Java/Other) Memory Limit : 262144/131072K (Java/Other)Total Submission(s) : 40 Accepted Submission(s) : 13Problem DescriptionYou have N integers, A1, A2, ... , AN. You need to deal with
D. Greg and Graphtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGreg has a weighed directed graph, consisting of n vertices. In this graph any pair of distinct vertices has an edge between them
D. Maximum Xor Secondarytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBike loves looking for the second maximum element in the sequence. The second maximum element in the sequence of distinct
D. Psychos in a Linetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n psychos standing in a line. Each psycho is assigned a unique integer from1 to n. At each step every psycho who has
B. Physics Practicaltime limit per test1 secondmemory limit per test256 megabytesinputinput.txtoutputoutput.txtOne day Vasya was on a physics practical, performing the task on measuring the capacitance. He followed the teacher's advice and did as
Terrible SetsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 2778 Accepted: 1413DescriptionLet N be the set of all natural numbers {0 , 1 , 2 , . . . }, and R be the set of all real numbers. wi, hi for i = 1 . . . n are some elements in N,
Curling 2.0Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8582 Accepted: 3603DescriptionOn Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played
The SuspectsTime Limit: 1000MS Memory Limit: 20000KTotal Submissions: 18435 Accepted: 8920DescriptionSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To
Fiber NetworkTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2725 Accepted: 1252DescriptionSeveral startup companies have decided to build a better Internet, called the "FiberNet". They have already installed many nodes that act as routers
FroggerTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 20716 Accepted: 6741DescriptionFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but