Codeforces Round 279 (Div. 2)

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
490 Codeforces Round 279 (Div. 2) FINISHED False 9000 320705387 Nov. 23, 2014, 9:10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6087 ) B Queue PROGRAMMING ds implementation 1500

B"During the lunch break all n Berland State University students lined up in the food court. However, it turned out that the food court, too, has a lunch break and it temporarily stopped working. Standing in a queue that isn't being served is so boring! So, each of the students wrote down the number of the student ID of the student that stands in line directly in front of him, and the student that stands in line directly behind him. If no one stands before or after a student (that is, he is the first one or the last one), then he writes down number 0 instead (in Berland State University student IDs are numerated from 1). After that, all the students went about their business. When they returned, they found out that restoring the queue is not such an easy task. Help the students to restore the state of the queue by the numbers of the student ID's of their neighbors in the queue. The first line contains integer n (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105) -- the number of students in the queue. Then n lines follow, i-th line contains the pair of integers ai, xe2 x80 x89bi (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai, xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106), where ai is the ID number of a person in front of a student and bi is the ID number of a person behind a student. The lines are given in the arbitrary order. Value 0 is given instead of a neighbor's ID number if the neighbor doesn't exist. The ID numbers of all students are distinct. It is guaranteed that the records correspond too the queue where all the students stand in some order. Print a sequence of n integers x1, xe2 x80 x89x2, xe2 x80 x89..., xe2 x80 x89xn -- the sequence of ID numbers of all the students in the order they go in the queue from the first student to the last one. The picture illustrates the queue for the first sample."...

Tutorials

Codeforces Round #279 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40583143 Heshamovic B July 20, 2018, 3:50 p.m. OK Clang++17 Diagnostics TESTS 61 452 30617600 1500
15402514 MityaB B Jan. 16, 2016, 11:24 a.m. OK FPC TESTS 61 389 11980800 1500
13812073 Gray_58 B Oct. 23, 2015, 4:28 p.m. OK FPC TESTS 61 389 16076800 1500
12721616 CSTRP B Aug. 27, 2015, 4 p.m. OK FPC TESTS 61 389 20070400 1500
11180236 igdor99 B May 20, 2015, 4:30 p.m. OK FPC TESTS 61 389 26726400 1500
10394813 vip_sniper13 B March 22, 2015, 7:59 a.m. OK FPC TESTS 61 405 10444800 1500
10362169 YouBringSunshineToMyLife B March 20, 2015, 2:36 a.m. OK FPC TESTS 61 420 20172800 1500
27615043 TShT B June 6, 2017, 1:34 p.m. OK FPC TESTS 61 421 9625600 1500
17305495 andreumat B April 13, 2016, 5:10 p.m. OK FPC TESTS 61 421 10444800 1500
12970779 wrinx B Sept. 12, 2015, 9:23 a.m. OK FPC TESTS 61 421 14028800 1500
27550754 VladProg B June 3, 2017, 7:02 p.m. OK FPC TESTS 61 436 12902400 1500
9820955 optimus___prime B Feb. 13, 2015, 9:44 p.m. OK GNU C TESTS 61 139 17203200 1500
10740396 BingshiAcmer B April 16, 2015, 12:12 p.m. OK GNU C TESTS 61 139 24064000 1500
11009654 emptysmile B May 6, 2015, 1:09 a.m. OK GNU C TESTS 61 140 7987200 1500
10839744 harunsami B April 23, 2015, 6:32 p.m. OK GNU C TESTS 61 140 11468800 1500
10839710 harunsami B April 23, 2015, 6:30 p.m. OK GNU C TESTS 61 140 11468800 1500
14126716 cobusevenx B Nov. 7, 2015, 3:37 p.m. OK GNU C TESTS 61 140 15974400 1500
15143143 HappyNewYearMike B Dec. 31, 2015, 11:04 p.m. OK GNU C TESTS 61 155 13619200 1500
21694750 Koshlendra7 B Oct. 22, 2016, 9:46 p.m. OK GNU C TESTS 61 156 7987200 1500
18226984 yigezhe B June 3, 2016, 6:33 a.m. OK GNU C TESTS 61 156 12697600 1500
10965613 lush93 B May 1, 2015, 3:03 p.m. OK GNU C TESTS 61 156 25907200 1500
40987634 ReaLNero1 B July 30, 2018, 9:23 p.m. OK GNU C++ TESTS 61 61 10854400 1500
10560631 Jhamra B April 3, 2015, 1:47 p.m. OK GNU C++ TESTS 61 93 9625600 1500
9866790 dashuiren B Feb. 16, 2015, 6:15 a.m. OK GNU C++ TESTS 61 93 23961600 1500
34569020 vjudge4 B Jan. 26, 2018, 8:03 a.m. OK GNU C++ TESTS 61 109 10035200 1500
19752069 satishrdd B Aug. 9, 2016, 5:52 p.m. OK GNU C++ TESTS 61 109 10137600 1500
12480632 Hachiikung B Aug. 12, 2015, 1:59 p.m. OK GNU C++ TESTS 61 109 11673600 1500
11013168 vjudge5 B May 6, 2015, 1:10 p.m. OK GNU C++ TESTS 61 109 23859200 1500
12905486 biltharesatyendra B Sept. 9, 2015, 5:14 a.m. OK GNU C++ TESTS 61 109 49152000 1500
14196138 zscc B Nov. 11, 2015, 12:29 p.m. OK GNU C++ TESTS 61 124 6451200 1500
11012570 vjudge5 B May 6, 2015, 12:10 p.m. OK GNU C++ TESTS 61 124 7577600 1500
10185381 RandD B March 7, 2015, 3:41 a.m. OK GNU C++0x TESTS 61 139 27852800 1500
10007212 radoslav11 B Feb. 24, 2015, 7:34 p.m. OK GNU C++0x TESTS 61 140 7987200 1500
10285282 mgemaakbar B March 15, 2015, 9:02 a.m. OK GNU C++0x TESTS 61 140 16793600 1500
10215121 mgemaakbar B March 9, 2015, 7:21 a.m. OK GNU C++0x TESTS 61 155 16793600 1500
10258125 vatayush B March 13, 2015, 1:23 p.m. OK GNU C++0x TESTS 61 156 8192000 1500
10259286 mshokry10 B March 13, 2015, 3 p.m. OK GNU C++0x TESTS 61 171 8806400 1500
9774959 kumarsatish2708 B Feb. 8, 2015, 9:24 p.m. OK GNU C++0x TESTS 61 202 12800000 1500
9730351 Manny B Feb. 5, 2015, 5:58 p.m. OK GNU C++0x TESTS 61 265 70553600 1500
9774848 kumarsatish2708 B Feb. 8, 2015, 9:01 p.m. OK GNU C++0x TESTS 61 311 32870400 1500
10135529 .I. B March 3, 2015, 4:59 p.m. OK GNU C++0x TESTS 61 374 12800000 1500
69696727 kaiboy B Jan. 28, 2020, 8:52 p.m. OK GNU C11 TESTS 61 732 10444800 1500
12683632 CSYtera B Aug. 24, 2015, 11:48 a.m. OK GNU C11 TESTS 61 826 11980800 1500
64505883 DP_liver B Nov. 8, 2019, 6:49 a.m. OK GNU C++11 TESTS 61 46 5836800 1500
30825973 hpkt.pkt B Sept. 29, 2017, 10:59 a.m. OK GNU C++11 TESTS 61 46 12083200 1500
60016984 nealchen B Sept. 4, 2019, 12:04 p.m. OK GNU C++11 TESTS 61 78 5836800 1500
64796085 luogu_bot1 B Nov. 13, 2019, 12:56 p.m. OK GNU C++11 TESTS 61 93 5836800 1500
64796017 luogu_bot5 B Nov. 13, 2019, 12:55 p.m. OK GNU C++11 TESTS 61 93 5836800 1500
57887732 lopare B July 28, 2019, 10:38 a.m. OK GNU C++11 TESTS 61 109 7884800 1500
52680576 yltx B April 13, 2019, 12:10 p.m. OK GNU C++11 TESTS 61 109 7884800 1500
50912677 vjudge1 B March 7, 2019, 3:51 a.m. OK GNU C++11 TESTS 61 109 8089600 1500
69696731 kaiboy B Jan. 28, 2020, 8:53 p.m. OK GNU C++11 TESTS 61 109 10240000 1500
13256925 snowy_smile B Sept. 28, 2015, 3:19 a.m. OK GNU C++11 TESTS 61 109 10649600 1500
23868459 nigimi B Jan. 15, 2017, 8:44 p.m. OK GNU C++14 TESTS 61 124 6860800 1500
54530503 dbdbab B May 23, 2019, 4:48 p.m. OK GNU C++14 TESTS 61 140 8806400 1500
32632046 sm_yead B Nov. 24, 2017, 8:36 p.m. OK GNU C++14 TESTS 61 140 9830400 1500
25181737 abdou_93 B March 3, 2017, 4:47 p.m. OK GNU C++14 TESTS 61 140 10752000 1500
36760973 imjjmoa B March 31, 2018, 12:42 a.m. OK GNU C++14 TESTS 61 140 11366400 1500
24478816 marcospaulo B Feb. 7, 2017, 1:12 a.m. OK GNU C++14 TESTS 61 140 11571200 1500
45483291 Pojaleesh B Nov. 9, 2018, 3:55 p.m. OK GNU C++14 TESTS 61 140 11980800 1500
44620528 iShibly B Oct. 21, 2018, 6:02 a.m. OK GNU C++14 TESTS 61 140 12083200 1500
28249257 puyu_liao B July 3, 2017, 8:31 a.m. OK GNU C++14 TESTS 61 140 12390400 1500
44469411 Harolinch B Oct. 18, 2018, 5:21 a.m. OK GNU C++14 TESTS 61 140 12800000 1500
52500589 Trying_Rating B April 8, 2019, 3:53 p.m. OK GNU C++17 TESTS 61 62 7577600 1500
52500617 Trying_Rating B April 8, 2019, 3:53 p.m. OK GNU C++17 TESTS 61 62 7577600 1500
59978816 ccsu_xka B Sept. 4, 2019, 7:18 a.m. OK GNU C++17 TESTS 61 124 24064000 1500
52500426 Trying_Rating B April 8, 2019, 3:48 p.m. OK GNU C++17 TESTS 61 140 7577600 1500
52500787 Trying_Rating B April 8, 2019, 3:58 p.m. OK GNU C++17 TESTS 61 140 7577600 1500
52500385 Trying_Rating B April 8, 2019, 3:47 p.m. OK GNU C++17 TESTS 61 155 7577600 1500
50475947 Finding_Infinity B Feb. 25, 2019, 5:59 a.m. OK GNU C++17 TESTS 61 155 10854400 1500
50046441 Skr008 B Feb. 17, 2019, 6:10 a.m. OK GNU C++17 TESTS 61 155 11161600 1500
49058845 exe B Jan. 27, 2019, 2:31 p.m. OK GNU C++17 TESTS 61 155 11161600 1500
54848610 mohammadrobot B May 30, 2019, 3:21 p.m. OK GNU C++17 TESTS 61 155 20070400 1500
52745546 windy B April 14, 2019, 11:27 a.m. OK Go TESTS 61 841 18739200 1500
67595538 CodAR B Dec. 25, 2019, 10:30 a.m. OK Java 11 TESTS 61 1528 117043200 1500
9665329 sakshi_gupta B Feb. 1, 2015, 12:40 p.m. OK Java 6 TESTS 61 1325 0 1500
12912348 Trasier B Sept. 9, 2015, 4:16 p.m. OK Java 7 TESTS 61 218 0 1500
10994199 mikcorer B May 4, 2015, 9:46 a.m. OK Java 7 TESTS 61 218 13414400 1500
15074135 monsterspy B Dec. 28, 2015, 4:19 p.m. OK Java 7 TESTS 61 389 12492800 1500
14842236 DukeOfYork B Dec. 17, 2015, 6:15 a.m. OK Java 7 TESTS 61 451 67788800 1500
12923564 binary_eagle B Sept. 10, 2015, 1:12 p.m. OK Java 7 TESTS 61 842 69529600 1500
11925700 suigingin B July 4, 2015, 6:20 p.m. OK Java 7 TESTS 61 858 67174400 1500
18846456 anuj64 B July 1, 2016, 9:44 p.m. OK Java 7 TESTS 61 888 53248000 1500
11539940 Phicar B June 12, 2015, 5:11 a.m. OK Java 7 TESTS 61 936 56524800 1500
14545976 MazzForces B Nov. 28, 2015, 6:48 p.m. OK Java 7 TESTS 61 1076 31027200 1500
11947810 suigingin B July 6, 2015, 12:26 p.m. OK Java 7 TESTS 61 1216 34918400 1500
26143315 coderbond007 B April 5, 2017, 12:42 p.m. OK Java 8 TESTS 61 187 31539200 1500
27997122 lm010 B June 24, 2017, 4:40 a.m. OK Java 8 TESTS 61 218 32460800 1500
27997076 lm010 B June 24, 2017, 4:36 a.m. OK Java 8 TESTS 61 218 32460800 1500
21657208 safarisoul B Oct. 22, 2016, 4:40 a.m. OK Java 8 TESTS 61 233 2457600 1500
9821525 YakutovDmitriy B Feb. 13, 2015, 10:56 p.m. OK Java 8 TESTS 61 249 0 1500
23488907 EsraaSalah B Jan. 1, 2017, 7:09 p.m. OK Java 8 TESTS 61 249 26316800 1500
11373061 Pimpom B June 1, 2015, 3:08 a.m. OK Java 8 TESTS 61 264 10444800 1500
25552905 OmarRadwan B March 16, 2017, 3:04 p.m. OK Java 8 TESTS 61 264 32051200 1500
25307338 ankeet B March 7, 2017, 4:23 a.m. OK Java 8 TESTS 61 264 34508800 1500
22848689 ankeet B Dec. 10, 2016, 5:24 a.m. OK Java 8 TESTS 61 265 3276800 1500
44375461 montacir B Oct. 15, 2018, 9:04 p.m. OK JavaScript TESTS 61 514 53657600 1500
58879633 Wassermann B Aug. 15, 2019, 8 p.m. OK Mono C# TESTS 61 904 27340800 1500
12840454 og.kostya B Sept. 4, 2015, 12:11 p.m. OK MS C# TESTS 61 109 11264000 1500
11204835 T-D-K B May 22, 2015, 4:21 p.m. OK MS C# TESTS 61 171 33075200 1500
11524625 sicon54 B June 10, 2015, 6:02 p.m. OK MS C# TESTS 61 249 33484800 1500
21699863 pomjuice B Oct. 23, 2016, 7:05 a.m. OK MS C# TESTS 61 483 61030400 1500
20389021 TwoFx B Sept. 4, 2016, 8 p.m. OK MS C# TESTS 61 498 26828800 1500
18665432 Mem B June 23, 2016, 2:31 p.m. OK MS C# TESTS 61 951 17715200 1500
14123909 haixinghu B Nov. 7, 2015, 12:33 p.m. OK MS C++ TESTS 61 109 52121600 1500
14123953 vjudge4 B Nov. 7, 2015, 12:36 p.m. OK MS C++ TESTS 61 109 52121600 1500
17381256 jihad_dayoub B April 18, 2016, 8:48 p.m. OK MS C++ TESTS 61 124 7987200 1500
13664164 padyshakh B Oct. 16, 2015, 11:50 a.m. OK MS C++ TESTS 61 124 8806400 1500
13664002 padyshakh B Oct. 16, 2015, 11:42 a.m. OK MS C++ TESTS 61 124 8806400 1500
13663991 padyshakh B Oct. 16, 2015, 11:41 a.m. OK MS C++ TESTS 61 124 8806400 1500
10830588 renewroger B April 23, 2015, 4:18 a.m. OK MS C++ TESTS 61 124 10035200 1500
10831185 renewroger B April 23, 2015, 6:27 a.m. OK MS C++ TESTS 61 124 10035200 1500
10830465 renewroger B April 23, 2015, 3:42 a.m. OK MS C++ TESTS 61 124 10035200 1500
10830290 renewroger B April 23, 2015, 3:04 a.m. OK MS C++ TESTS 61 124 10035200 1500
52402699 kate_sun B April 6, 2019, 12:41 p.m. OK MS C++ 2017 TESTS 61 187 12083200 1500
67782586 Parsa84 B Dec. 28, 2019, 11:32 a.m. OK MS C++ 2017 TESTS 61 468 6246400 1500
52373431 WocBug B April 6, 2019, 7:15 a.m. OK MS C++ 2017 TESTS 61 499 20070400 1500
59340567 Denko B Aug. 23, 2019, 7:19 a.m. OK MS C++ 2017 TESTS 61 967 33280000 1500
40041686 mayakin B July 6, 2018, 6:58 p.m. OK PHP TESTS 61 452 24780800 1500
21993884 skamz B Nov. 2, 2016, 2:24 p.m. OK PHP TESTS 61 935 39424000 1500
33070119 jooj B Dec. 9, 2017, 10:51 p.m. OK PyPy 2 TESTS 61 639 57036800 1500
11016193 Dremov B May 6, 2015, 7:30 p.m. OK PyPy 2 TESTS 61 795 35430400 1500
19478629 Yash_ B July 29, 2016, 11:30 a.m. OK PyPy 2 TESTS 61 810 34816000 1500
11016179 Dremov B May 6, 2015, 7:27 p.m. OK PyPy 2 TESTS 61 920 51609600 1500
60373143 Mr.Inconsistent B Sept. 11, 2019, 4:19 a.m. OK PyPy 3 TESTS 61 889 36352000 1500
51337096 Ivan_Tea B March 15, 2019, 2:39 p.m. OK PyPy 3 TESTS 61 1840 35532800 1500
12551505 amrov B Aug. 15, 2015, 6:49 p.m. OK Python 2 TESTS 61 592 27750400 1500
9803861 gmarcotte B Feb. 12, 2015, 1:27 a.m. OK Python 2 TESTS 61 686 42803200 1500
9864496 rincewind B Feb. 15, 2015, 9:18 p.m. OK Python 2 TESTS 61 717 23859200 1500
9794195 sol.uian B Feb. 11, 2015, 12:54 a.m. OK Python 2 TESTS 61 717 27443200 1500
10123592 tarek.nawara B March 2, 2015, 6:16 p.m. OK Python 2 TESTS 61 717 27750400 1500
56235486 enchantedpudding B June 28, 2019, 4:03 p.m. OK Python 2 TESTS 61 779 23756800 1500
17265160 lsw B April 10, 2016, 1:06 p.m. OK Python 2 TESTS 61 810 31334400 1500
15915359 not_bot_but_POT B Feb. 9, 2016, 2:04 p.m. OK Python 2 TESTS 61 826 20889600 1500
35882817 ______u______ B March 3, 2018, 12:44 p.m. OK Python 2 TESTS 61 841 25497600 1500
35875505 ______n______ B March 3, 2018, 8:19 a.m. OK Python 2 TESTS 61 841 25497600 1500
10022033 orailly B Feb. 25, 2015, 3:54 p.m. OK Python 3 TESTS 61 638 29900800 1500
12306299 Vasiliy_48 B Aug. 1, 2015, 5:07 p.m. OK Python 3 TESTS 61 639 29798400 1500
18546534 KadiyalaSaiManoj B June 17, 2016, 3:56 p.m. OK Python 3 TESTS 61 794 30720000 1500
17274841 Sybillan B April 11, 2016, 8:03 a.m. OK Python 3 TESTS 61 873 21913600 1500
49557165 galim665 B Feb. 7, 2019, 10:21 a.m. OK Python 3 TESTS 61 889 28160000 1500
18546283 KadiyalaSaiManoj B June 17, 2016, 3:43 p.m. OK Python 3 TESTS 61 920 33996800 1500
21124522 WiNDWAY B Oct. 2, 2016, 8:30 p.m. OK Python 3 TESTS 61 935 29491200 1500
68036545 Annvv B Jan. 1, 2020, 12:20 p.m. OK Python 3 TESTS 61 967 21811200 1500
21650076 MegaBidoof B Oct. 21, 2016, 6:29 p.m. OK Python 3 TESTS 61 982 26009600 1500
17288091 canxue123 B April 12, 2016, 10:03 a.m. OK Python 3 TESTS 61 1014 36044800 1500
10979256 ving.xia B May 3, 2015, 1:41 a.m. OK Ruby TESTS 61 1357 35328000 1500

remove filters

Back to search problems