Codeforces Round 124 (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
196 Codeforces Round 124 (Div. 1) FINISHED False 7200 398365186 June 12, 2012, 1 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 972 ) C Paint Tree PROGRAMMING constructive algorithms divide and conquer geometry sortings trees 2400

B'You are given a tree with n vertexes and n points on a plane, no three points lie on one straight line. Your task is to paint the given tree on a plane, using the given points as vertexes. That is, you should correspond each vertex of the tree to exactly one point and each point should correspond to a vertex. If two vertexes of the tree are connected by an edge, then the corresponding points should have a segment painted between them. The segments that correspond to non-adjacent edges, should not have common points. The segments that correspond to adjacent edges should have exactly one common point. The first line contains an integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891500) -- the number of vertexes on a tree (as well as the number of chosen points on the plane). Each of the next n xe2 x80 x89- xe2 x80 x891 lines contains two space-separated integers ui and vi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ui, xe2 x80 x89vi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, ui xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89vi) -- the numbers of tree vertexes connected by the i-th edge. Each of the next n lines contain two space-separated integers xi and yi ( xe2 x80 x89- xe2 x80 x89109 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89xi, xe2 x80 x89yi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the coordinates of the i-th point on the plane. No three points lie on one straight line. It is guaranteed that under given constraints problem has a solution. Print n distinct space-separated integers from 1 to n: the i-th number must equal the number of the vertex to place at the i-th point (the points are numbered in the order, in which they are listed in the input). If there are several solutions, print any of them. The possible solutions for the sample are given below.'...

Tutorials

Разбор задач

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
1790334 tourist C June 12, 2012, 1:34 p.m. OK Delphi TESTS 85 310 51609600 2400
1793605 zanoes C June 12, 2012, 2:22 p.m. OK Delphi TESTS 85 560 9625600 2400
1802094 ACTheory C June 14, 2012, 7:55 a.m. OK FPC TESTS 85 250 57548800 2400
1789348 Sereja C June 12, 2012, 1:22 p.m. OK FPC TESTS 85 330 1843200 2400
2566829 con_nha_ngheo C Nov. 16, 2012, 11:27 a.m. OK FPC TESTS 85 406 36864000 2400
1795496 coolinging C June 12, 2012, 2:52 p.m. OK FPC TESTS 85 410 11571200 2400
9675908 Maestr0 C Feb. 2, 2015, 12:57 p.m. OK FPC TESTS 85 436 614400 2400
1804048 hung06061995 C June 15, 2012, 8:11 a.m. OK FPC TESTS 85 500 1433600 2400
1792434 superpear C June 12, 2012, 2:03 p.m. OK FPC TESTS 85 530 59084800 2400
1921897 songsymbol C July 22, 2012, 1:28 p.m. OK FPC TESTS 85 550 1331200 2400
1798902 zdf615328619 C June 13, 2012, 1:58 a.m. OK FPC TESTS 85 910 10444800 2400
1800205 blackapple C June 13, 2012, 11:02 a.m. OK FPC TESTS 85 1050 1331200 2400
1806639 Eureka C June 16, 2012, 11:50 a.m. OK GNU C++ TESTS 85 50 1638400 2400
4526632 I_so_sad C Sept. 21, 2013, 2:54 a.m. OK GNU C++ TESTS 85 62 307200 2400
1797899 DamianS C June 12, 2012, 5:04 p.m. OK GNU C++ TESTS 85 80 1638400 2400
1796481 kamranm C June 12, 2012, 3:25 p.m. OK GNU C++ TESTS 85 90 1638400 2400
40991157 ReaLNero1 C July 31, 2018, 12:27 a.m. OK GNU C++ TESTS 85 92 204800 2400
40215012 vjudge4 C July 12, 2018, 1:38 a.m. OK GNU C++ TESTS 85 186 0 2400
40229491 vjudge5 C July 12, 2018, 11:07 a.m. OK GNU C++ TESTS 85 186 102400 2400
40229487 slzxchy C July 12, 2018, 11:07 a.m. OK GNU C++ TESTS 85 186 102400 2400
40229445 luogu_bot3 C July 12, 2018, 11:06 a.m. OK GNU C++ TESTS 85 186 102400 2400
40871478 vjudge1 C July 28, 2018, 6:35 a.m. OK GNU C++ TESTS 85 186 204800 2400
4909401 mrTux C Oct. 27, 2013, 4:40 a.m. OK GNU C++0x TESTS 85 62 28672000 2400
1803021 ChaRiL C June 14, 2012, 5:10 p.m. OK GNU C++0x TESTS 85 220 1638400 2400
1790873 Archon.JK C June 12, 2012, 1:41 p.m. OK GNU C++0x TESTS 85 220 9011200 2400
1793292 Zlobober C June 12, 2012, 2:17 p.m. OK GNU C++0x TESTS 85 270 1740800 2400
7346243 vjudge3 C Aug. 4, 2014, 3:40 p.m. OK GNU C++0x TESTS 85 310 307200 2400
1833953 mengpq C June 27, 2012, 5:52 a.m. OK GNU C++0x TESTS 85 330 1740800 2400
1801332 akashin C June 13, 2012, 7:07 p.m. OK GNU C++0x TESTS 85 330 15974400 2400
9809549 Stetsyk C Feb. 12, 2015, 5:19 p.m. OK GNU C++0x TESTS 85 342 2457600 2400
1791238 freak93 C June 12, 2012, 1:46 p.m. OK GNU C++0x TESTS 85 360 1740800 2400
1797709 subscriber C June 12, 2012, 4:37 p.m. OK GNU C++0x TESTS 85 360 118169600 2400
32827324 orbitingflea C Dec. 1, 2017, 10:52 a.m. OK GNU C++11 TESTS 85 156 2252800 2400
54977613 SoiMae C June 2, 2019, 11:35 a.m. OK GNU C++11 TESTS 85 186 204800 2400
51550565 xielinhan C March 20, 2019, 12:06 a.m. OK GNU C++11 TESTS 85 186 204800 2400
51245830 vjudge4 C March 13, 2019, 5:04 a.m. OK GNU C++11 TESTS 85 186 204800 2400
40392856 Shima_KZ C July 16, 2018, 2:28 a.m. OK GNU C++11 TESTS 85 186 204800 2400
28753295 cen C July 21, 2017, 2:23 p.m. OK GNU C++11 TESTS 85 186 2252800 2400
28498809 cen C July 13, 2017, 10:18 a.m. OK GNU C++11 TESTS 85 186 2252800 2400
39985722 vjudge3 C July 5, 2018, 1:28 p.m. OK GNU C++11 TESTS 85 216 102400 2400
40201790 KCAH C July 11, 2018, 1:02 p.m. OK GNU C++11 TESTS 85 216 204800 2400
50674839 YaoBIG C March 2, 2019, 8:46 a.m. OK GNU C++11 TESTS 85 218 204800 2400
32616653 wzz-huchi C Nov. 24, 2017, 10:05 a.m. OK GNU C++14 TESTS 85 156 2252800 2400
56728487 RobeZH C July 8, 2019, 10 p.m. OK GNU C++14 TESTS 85 186 307200 2400
28863152 Flash-boy C July 25, 2017, 2:42 a.m. OK GNU C++14 TESTS 85 186 2252800 2400
28318449 vjudge4 C July 6, 2017, 6:52 a.m. OK GNU C++14 TESTS 85 186 2252800 2400
28709515 HEXU123 C July 20, 2017, 3:06 a.m. OK GNU C++14 TESTS 85 216 2252800 2400
44287209 acmbeginner C Oct. 14, 2018, 8:04 a.m. OK GNU C++14 TESTS 85 248 204800 2400
37255104 Marco_L_T C April 12, 2018, 3:33 p.m. OK GNU C++14 TESTS 85 248 3481600 2400
28713148 cxt C July 20, 2017, 5:58 a.m. OK GNU C++14 TESTS 85 278 2048000 2400
46209907 SAliB C Nov. 25, 2018, 4:38 p.m. OK GNU C++14 TESTS 85 280 307200 2400
46674436 Rezaafzali C Dec. 6, 2018, 8:56 a.m. OK GNU C++14 TESTS 85 280 307200 2400
51299804 Balerion C March 14, 2019, 1:54 p.m. OK GNU C++17 TESTS 85 124 409600 2400
40214992 ffffxk C July 12, 2018, 1:38 a.m. OK GNU C++17 TESTS 85 154 102400 2400
51114208 Mr_leon C March 10, 2019, 6:10 a.m. OK GNU C++17 TESTS 85 154 307200 2400
51299568 Balerion C March 14, 2019, 1:49 p.m. OK GNU C++17 TESTS 85 156 409600 2400
51245832 vjudge1 C March 13, 2019, 5:04 a.m. OK GNU C++17 TESTS 85 186 307200 2400
65307212 KonaeAkira C Nov. 18, 2019, 3:21 p.m. OK GNU C++17 TESTS 85 216 307200 2400
58831907 nikits C Aug. 14, 2019, 6:21 p.m. OK GNU C++17 TESTS 85 218 307200 2400
56416162 Fallen_Glory C July 2, 2019, 4:45 a.m. OK GNU C++17 TESTS 85 218 307200 2400
55858390 chongryong C June 21, 2019, 8:15 a.m. OK GNU C++17 TESTS 85 280 7372800 2400
63025752 Phortox C Oct. 20, 2019, 4:12 p.m. OK GNU C++17 TESTS 85 310 41062400 2400
1800858 palmer C June 13, 2012, 3:23 p.m. OK Java 6 TESTS 85 420 43520000 2400
1846192 sayuan C June 30, 2012, 12:40 p.m. OK Java 6 TESTS 85 440 43417600 2400
1793743 MaxBuzz C June 12, 2012, 2:24 p.m. OK Java 6 TESTS 85 440 43520000 2400
1794103 Petr C June 12, 2012, 2:31 p.m. OK Java 6 TESTS 85 480 43520000 2400
1796330 shevchen C June 12, 2012, 3:19 p.m. OK Java 6 TESTS 85 500 43520000 2400
1803552 Kornacker C June 14, 2012, 11:05 p.m. OK Java 6 TESTS 85 500 43724800 2400
1803585 Kornacker C June 14, 2012, 11:55 p.m. OK Java 6 TESTS 85 520 43724800 2400
1792108 Egor C June 12, 2012, 1:58 p.m. OK Java 6 TESTS 85 530 43520000 2400
1797671 uwi C June 12, 2012, 4:32 p.m. OK Java 6 TESTS 85 550 43110400 2400
1796393 SergeyLazarev C June 12, 2012, 3:22 p.m. OK Java 6 TESTS 85 550 43622400 2400
2623433 vjudge4 C Nov. 22, 2012, 12:12 a.m. OK Java 7 TESTS 85 421 102400 2400
3042440 vjudge2 C Jan. 31, 2013, 11:40 p.m. OK Java 7 TESTS 85 421 307200 2400
3042431 vjudge5 C Jan. 31, 2013, 11:34 p.m. OK Java 7 TESTS 85 421 307200 2400
1799188 yarrr C June 13, 2012, 4:57 a.m. OK Java 7 TESTS 85 450 45158400 2400
1809980 dalex C June 19, 2012, 8:37 a.m. OK Java 7 TESTS 85 450 45772800 2400
1797353 yaro C June 12, 2012, 4:03 p.m. OK Java 7 TESTS 85 530 45260800 2400
4107514 edorundo C July 19, 2013, 2:41 p.m. OK Java 7 TESTS 85 531 409600 2400
9956864 vjudge3 C Feb. 22, 2015, 7:03 a.m. OK Java 7 TESTS 85 592 0 2400
9956854 vjudge5 C Feb. 22, 2015, 7:03 a.m. OK Java 7 TESTS 85 622 0 2400
1800484 yongheng5871 C June 13, 2012, 12:41 p.m. OK Java 7 TESTS 85 630 45260800 2400
10992038 AlexFetisov C May 4, 2015, 2:11 a.m. OK Java 8 TESTS 85 560 0 2400
26782608 uwi C May 1, 2017, 9:29 a.m. OK Java 8 TESTS 85 778 20684800 2400
20561552 jaconey C Sept. 13, 2016, 7:05 a.m. OK Java 8 TESTS 85 808 0 2400
20561623 jaconey C Sept. 13, 2016, 7:10 a.m. OK Java 8 TESTS 85 810 0 2400
20547690 jaconey C Sept. 12, 2016, 11:21 a.m. OK Java 8 TESTS 85 840 0 2400
14222513 Ruins C Nov. 13, 2015, 6:04 a.m. OK Java 8 TESTS 85 966 0 2400
20549528 jaconey C Sept. 12, 2016, 1:07 p.m. OK Java 8 TESTS 85 1060 0 2400
10154794 AStepanov C March 4, 2015, 11:14 p.m. OK Java 8 TESTS 85 1154 0 2400
1794343 it4.kp C June 12, 2012, 2:35 p.m. OK Mono C# TESTS 85 520 20684800 2400
3822682 Reshetnikov_Ivan C June 4, 2013, 6:51 p.m. OK MS C++ TESTS 85 140 204800 2400
1805068 pperm C June 15, 2012, 5:25 p.m. OK MS C++ TESTS 85 170 1638400 2400
1801621 izban C June 14, 2012, 12:39 a.m. OK MS C++ TESTS 85 170 36966400 2400
1795593 Shef C June 12, 2012, 2:54 p.m. OK MS C++ TESTS 85 200 1638400 2400
1791178 stgatilov C June 12, 2012, 1:45 p.m. OK MS C++ TESTS 85 200 10752000 2400
2089886 Myungwoo C Sept. 2, 2012, 10:48 a.m. OK MS C++ TESTS 85 220 921600 2400
2089872 Myungwoo C Sept. 2, 2012, 10:42 a.m. OK MS C++ TESTS 85 220 921600 2400
2089894 Myungwoo C Sept. 2, 2012, 10:54 a.m. OK MS C++ TESTS 85 220 921600 2400
1796581 -DMYTRO- C June 12, 2012, 3:27 p.m. OK MS C++ TESTS 85 220 15257600 2400
1907546 NALP C July 17, 2012, 5:16 p.m. OK MS C++ TESTS 85 230 1638400 2400
56020760 chongryong C June 25, 2019, 3:06 a.m. OK MS C++ 2017 TESTS 85 748 204800 2400
56020744 chongryong C June 25, 2019, 3:05 a.m. OK MS C++ 2017 TESTS 85 748 204800 2400

remove filters

Back to search problems