Croc Champ 2013 - Finals (online version, Div. 1)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
309 Croc Champ 2013 - Finals (online version, Div. 1) FINISHED False 9000 407688585 May 17, 2013, 3:10 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 299 ) E Sheep PROGRAMMING binary search greedy 2900

Information technologies are developing and are increasingly penetrating into all spheres of human activity. Incredible as it is, the most modern technology are used in farming! A large farm has a meadow with grazing sheep. Overall there are n sheep and each of them contains a unique number from 1 to n — because the sheep need to be distinguished and you need to remember information about each one, and they are so much alike! The meadow consists of infinite number of regions numbered from 1 to infinity. It's known that sheep i likes regions from l i to r i . There are two shepherds taking care of the sheep: First and Second. First wakes up early in the morning and leads the sheep graze on the lawn. Second comes in the evening and collects all the sheep. One morning, First woke up a little later than usual, and had no time to lead the sheep graze on the lawn. So he tied together every two sheep if there is a region they both like. First thought that it would be better — Second would have less work in the evening, because sheep won't scatter too much, being tied to each other! In the evening Second came on the lawn, gathered the sheep and tried to line them up in a row. But try as he might, the sheep wouldn't line up as Second want! Second had neither the strength nor the ability to untie the sheep so he left them as they are, but with one condition: he wanted to line up the sheep so that the maximum distance between two tied sheep was as small as possible. The distance between the sheep is the number of sheep in the ranks that are between these two. Help Second find the right arrangement. The first input line contains one integer n ( 1 ≤ n ≤ 2000 ). Each of the following n lines contains two integers l i and r i (1 ≤ l i , r i ≤ 10 9 ; l i ≤ r i ) . In the single output line print n space-separated numbers — the sought arrangement of the sheep. The i -th value in the line must represent the number of the sheep that took the i -th place from left in the opti

Tutorials

Чемпионат КРОК 2013 — Финальный раунд — Разбор

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3826072 kelvin E June 5, 2013, 10:01 p.m. OK GNU C++ TESTS 34 31 409600 2900
40989877 ReaLNero1 E July 30, 2018, 11:22 p.m. OK GNU C++ TESTS 34 140 102400 2900
39463665 none44353 E June 21, 2018, 1:34 p.m. OK GNU C++ TESTS 34 140 102400 2900
24566010 ShinFeb E Feb. 10, 2017, 8:54 a.m. OK GNU C++ TESTS 34 171 2150400 2900
17384378 whatins E April 19, 2016, 7:45 a.m. OK GNU C++ TESTS 34 171 2252800 2900
41992191 Scut82 E Aug. 23, 2018, 9:34 a.m. OK GNU C++ TESTS 34 171 19865600 2900
41518927 xymtxdy E Aug. 12, 2018, 7:47 a.m. OK GNU C++ TESTS 34 233 16281600 2900
3824761 scli E June 5, 2013, 12:10 p.m. OK GNU C++ TESTS 34 234 4505600 2900
30727437 owen_creeper E Sept. 25, 2017, 1:56 p.m. OK GNU C++ TESTS 34 249 102400 2900
8347774 delayyy E Oct. 22, 2014, 3:28 a.m. OK GNU C++ TESTS 34 280 4096000 2900
7915661 equation314 E Sept. 23, 2014, 1:48 a.m. OK GNU C++0x TESTS 34 436 4096000 2900
8338438 jiry_2 E Oct. 21, 2014, 7:13 a.m. OK GNU C++0x TESTS 34 468 307200 2900
3755963 error202 E May 22, 2013, 6:51 a.m. OK GNU C++0x TESTS 34 624 16179200 2900
57199912 Shine_Sky E July 17, 2019, 1:24 p.m. OK GNU C++11 TESTS 34 202 4096000 2900
39456052 zhouyuyang E June 21, 2018, 8:44 a.m. OK GNU C++11 TESTS 34 249 16076800 2900
14436160 Altria-PenDragon E Nov. 24, 2015, 7:33 a.m. OK GNU C++11 TESTS 34 265 0 2900
14921563 M.Mahdi E Dec. 22, 2015, 6:48 a.m. OK GNU C++11 TESTS 34 280 16076800 2900
17130724 freebsdx E April 2, 2016, 1:19 p.m. OK GNU C++11 TESTS 34 343 1945600 2900
43490255 hyzxzcy E Sept. 27, 2018, 12:18 p.m. OK GNU C++11 TESTS 34 373 102400 2900
57896085 lopare E July 28, 2019, 1:38 p.m. OK GNU C++11 TESTS 34 436 102400 2900
65539211 JCC_ E Nov. 22, 2019, 3:24 p.m. OK GNU C++11 TESTS 34 451 102400 2900
35858852 ______u______ E March 2, 2018, 9:07 p.m. OK GNU C++11 TESTS 34 452 2150400 2900
35858832 ______n______ E March 2, 2018, 9:07 p.m. OK GNU C++11 TESTS 34 452 2150400 2900
24995442 mislav E Feb. 24, 2017, 8:30 p.m. OK GNU C++14 TESTS 34 296 1945600 2900
23661435 Ali.Pi E Jan. 9, 2017, 7:10 a.m. OK GNU C++14 TESTS 34 436 1945600 2900
23689922 jasonvictoryan E Jan. 11, 2017, 2:20 a.m. OK GNU C++14 TESTS 34 483 1945600 2900
61347186 izone E Sept. 27, 2019, 5:49 a.m. OK GNU C++17 TESTS 34 31 3276800 2900
60451192 Benq E Sept. 12, 2019, 4 p.m. OK GNU C++17 TESTS 34 155 512000 2900
38353164 rushcheyo E May 17, 2018, 3:01 p.m. OK GNU C++17 TESTS 34 265 307200 2900
40307381 llbra8z E July 14, 2018, 6:30 a.m. OK GNU C++17 TESTS 34 468 0 2900

remove filters

Back to search problems