Educational Codeforces Round 18

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
792 Educational Codeforces Round 18 FINISHED False 7200 241197899 March 27, 2017, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6024 ) B Counting-out Rhyme PROGRAMMING implementation 1300

B"n children are standing in a circle and playing the counting-out game. Children are numbered clockwise from 1 to n. In the beginning, the first child is considered the leader. The game is played in k steps. In the i-th step the leader counts out ai people in clockwise order, starting from the next person. The last one to be pointed at by the leader is eliminated, and the next player after him becomes the new leader. For example, if there are children with numbers [8, xe2 x80 x8910, xe2 x80 x8913, xe2 x80 x8914, xe2 x80 x8916] currently in the circle, the leader is child 13 and ai xe2 x80 x89= xe2 x80 x8912, then counting-out rhyme ends on child 16, who is eliminated. Child 8 becomes the leader. You have to write a program which prints the number of the child to be eliminated on every step. The first line contains two integer numbers n and k (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89- xe2 x80 x891). The next line contains k integer numbers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89ak (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Print k numbers, the i-th one corresponds to the number of child to be eliminated at the i-th step. Let's consider first example: "...

Tutorials

Educational Codeforces Round 18 - Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
25971567 FalseMirror B March 31, 2017, 8:37 a.m. OK D TESTS 22 15 2969600 1300
25842581 Gassa B March 27, 2017, 2:48 p.m. OK D TESTS 22 15 2969600 1300
52614196 ruban B April 11, 2019, 5:30 p.m. OK Delphi TESTS 22 31 11366400 1300
26072964 WC4F B April 2, 2017, 8:18 a.m. OK FPC TESTS 22 15 1638400 1300
26372638 NikitaOrsha B April 15, 2017, 6:47 a.m. OK FPC TESTS 22 15 1638400 1300
26575293 simoncatcity B April 22, 2017, 5:29 a.m. OK FPC TESTS 22 15 1638400 1300
26268300 vladimir.ro B April 10, 2017, 5:12 p.m. OK FPC TESTS 22 15 1638400 1300
25951368 vjudge2 B March 30, 2017, 12:06 p.m. OK FPC TESTS 22 15 1638400 1300
25892656 krasnoshekov20001 B March 29, 2017, 10:05 a.m. OK FPC TESTS 22 15 1638400 1300
25880906 andrew B March 28, 2017, 6:05 p.m. OK FPC TESTS 22 15 1638400 1300
26145175 Mr.Anderson B April 5, 2017, 2:01 p.m. OK FPC TESTS 22 15 1638400 1300
26137356 nikih.10 B April 5, 2017, 7:13 a.m. OK FPC TESTS 22 15 1638400 1300
26108229 dambosin B April 3, 2017, 8:12 p.m. OK FPC TESTS 22 15 1638400 1300
27099241 JoeBlow B May 14, 2017, 2:10 a.m. OK GNU C TESTS 22 15 0 1300
26440877 READY2CODE B April 16, 2017, 9:54 p.m. OK GNU C TESTS 22 15 1843200 1300
25953764 Dragon_fxl B March 30, 2017, 1:25 p.m. OK GNU C TESTS 22 15 1843200 1300
25953084 wherever- B March 30, 2017, 1:03 p.m. OK GNU C TESTS 22 15 1843200 1300
25853323 hower.song B March 27, 2017, 4:28 p.m. OK GNU C TESTS 22 15 1843200 1300
25853140 ian103236 B March 27, 2017, 4:26 p.m. OK GNU C TESTS 22 15 1843200 1300
25846257 Abreto B March 27, 2017, 3:15 p.m. OK GNU C TESTS 22 15 1843200 1300
25845731 jkxjkx1031 B March 27, 2017, 3:10 p.m. OK GNU C TESTS 22 15 1843200 1300
28921374 vjudge2 B July 27, 2017, 5:20 a.m. OK GNU C TESTS 22 15 1945600 1300
26501714 Wolve_rine B April 19, 2017, 5:41 p.m. OK GNU C TESTS 22 15 1945600 1300
30751978 vjudge4 B Sept. 26, 2017, 1:26 p.m. OK GNU C++ TESTS 22 15 0 1300
40502652 N-Zoth 1910903 B July 18, 2018, 7 a.m. OK GNU C++ TESTS 22 15 0 1300
40501408 mr_lolololol B July 18, 2018, 6:25 a.m. OK GNU C++ TESTS 22 15 0 1300
39985360 ling_yu B July 5, 2018, 1:15 p.m. OK GNU C++ TESTS 22 15 0 1300
39984458 CHENRUIJIE B July 5, 2018, 12:42 p.m. OK GNU C++ TESTS 22 15 0 1300
32576208 Cinzaderius B Nov. 23, 2017, 1:17 p.m. OK GNU C++ TESTS 22 15 0 1300
32575429 ArifHaider B Nov. 23, 2017, 12:44 p.m. OK GNU C++ TESTS 22 15 0 1300
30816009 ibrahim_tabba B Sept. 28, 2017, 9:03 p.m. OK GNU C++ TESTS 22 15 0 1300
30182515 Aleksey03 B Sept. 7, 2017, 1:33 p.m. OK GNU C++ TESTS 22 15 0 1300
29701033 Xuqzhi B Aug. 23, 2017, 8:01 a.m. OK GNU C++ TESTS 22 15 0 1300
26343070 xiao-xiao B April 13, 2017, 3:47 p.m. OK GNU C11 TESTS 22 15 1945600 1300
25852258 orz010orz B March 27, 2017, 4:17 p.m. OK GNU C11 TESTS 22 15 2252800 1300
63871041 rahulgoel B Oct. 30, 2019, 5:31 p.m. OK GNU C11 TESTS 22 31 0 1300
60953408 kaiboy B Sept. 21, 2019, 12:17 a.m. OK GNU C11 TESTS 22 31 0 1300
60943372 kaiboy B Sept. 20, 2019, 5:56 p.m. OK GNU C11 TESTS 22 31 0 1300
54652031 wanghaoze B May 26, 2019, 6:02 a.m. OK GNU C++11 TESTS 22 15 0 1300
54514589 Credit_Card_CRD B May 23, 2019, 9:06 a.m. OK GNU C++11 TESTS 22 15 0 1300
64621985 luogu_bot1 B Nov. 10, 2019, 7:12 a.m. OK GNU C++11 TESTS 22 15 0 1300
51482385 tyd05 B March 19, 2019, 12:09 p.m. OK GNU C++11 TESTS 22 15 0 1300
51482383 luogu_bot2 B March 19, 2019, 12:09 p.m. OK GNU C++11 TESTS 22 15 0 1300
51618295 sunpeijie B March 21, 2019, 1:18 p.m. OK GNU C++11 TESTS 22 15 0 1300
60955153 He_Ren B Sept. 21, 2019, 2:06 a.m. OK GNU C++11 TESTS 22 15 0 1300
56293732 X-O__O-X B June 30, 2019, 4 a.m. OK GNU C++11 TESTS 22 15 0 1300
54900545 CHENRUIJIE B June 1, 2019, 6:22 a.m. OK GNU C++11 TESTS 22 15 0 1300
54652058 luogu_bot5 B May 26, 2019, 6:03 a.m. OK GNU C++11 TESTS 22 15 0 1300
69450835 MegaTyranitar B Jan. 24, 2020, 6:08 a.m. OK GNU C++14 TESTS 22 15 0 1300
69687318 DB__COOPER B Jan. 28, 2020, 5:26 p.m. OK GNU C++14 TESTS 22 15 0 1300
68827954 vjudge2 B Jan. 14, 2020, 8:08 p.m. OK GNU C++14 TESTS 22 15 0 1300
68713710 Chodermal1 B Jan. 13, 2020, 1:46 p.m. OK GNU C++14 TESTS 22 15 0 1300
63949328 dilute2 B Oct. 31, 2019, 8:20 p.m. OK GNU C++14 TESTS 22 15 0 1300
63417097 naveen19991124 B Oct. 26, 2019, 4:50 a.m. OK GNU C++14 TESTS 22 15 0 1300
60289758 akksy B Sept. 9, 2019, 6:18 a.m. OK GNU C++14 TESTS 22 15 0 1300
59618214 Hanii.Gerges B Aug. 28, 2019, 1:25 p.m. OK GNU C++14 TESTS 22 15 0 1300
56221098 landcold7 B June 28, 2019, 10:18 a.m. OK GNU C++14 TESTS 22 15 0 1300
55407267 just_doit B June 10, 2019, 5:19 p.m. OK GNU C++14 TESTS 22 15 0 1300
60313340 hobgoblin23 B Sept. 9, 2019, 4:48 p.m. OK GNU C++17 TESTS 22 15 0 1300
62445222 ksrrock123 B Oct. 12, 2019, 10:18 p.m. OK GNU C++17 TESTS 22 15 0 1300
59809497 alrz B Aug. 31, 2019, 1:08 p.m. OK GNU C++17 TESTS 22 15 0 1300
58857823 LazyReda B Aug. 15, 2019, 10:11 a.m. OK GNU C++17 TESTS 22 15 0 1300
58397864 hackerman_from_google B Aug. 6, 2019, 4:24 p.m. OK GNU C++17 TESTS 22 15 0 1300
67659966 mdnaufal.h B Dec. 26, 2019, 3:24 p.m. OK GNU C++17 TESTS 22 15 0 1300
68826172 vjudge2 B Jan. 14, 2020, 7:18 p.m. OK GNU C++17 TESTS 22 15 0 1300
68827232 JorgecollazCS B Jan. 14, 2020, 7:46 p.m. OK GNU C++17 TESTS 22 15 0 1300
69250454 tony0604 B Jan. 21, 2020, 2:07 p.m. OK GNU C++17 TESTS 22 15 0 1300
66740084 iankury B Dec. 12, 2019, 8:15 p.m. OK GNU C++17 TESTS 22 15 0 1300
35603409 sidun456 B Feb. 23, 2018, 4:44 p.m. OK GNU C++17 Diagnostics TESTS 22 967 98611200 1300
25972330 NeoKat B March 31, 2017, 9:15 a.m. OK Go TESTS 22 15 22937600 1300
25972845 NeoKat B March 31, 2017, 9:44 a.m. OK Go TESTS 22 15 22937600 1300
25844240 smalex69 B March 27, 2017, 2:58 p.m. OK Go TESTS 22 15 24883200 1300
25844414 stczhc B March 27, 2017, 2:59 p.m. OK Haskell TESTS 22 15 44851200 1300
26300024 polossk B April 11, 2017, 1:36 p.m. OK Haskell TESTS 22 15 44851200 1300
26139123 Looser__0081 B April 5, 2017, 9:12 a.m. OK Haskell TESTS 22 15 44953600 1300
25954377 bgs99 B March 30, 2017, 1:46 p.m. OK Haskell TESTS 22 15 44953600 1300
25954039 bgs99 B March 30, 2017, 1:35 p.m. OK Haskell TESTS 22 15 44953600 1300
25856447 pflueger B March 27, 2017, 5:35 p.m. OK Haskell TESTS 22 15 44953600 1300
25885635 CyberZHG B March 29, 2017, 1:09 a.m. OK Haskell TESTS 22 15 53248000 1300
68878793 ankyy_0103 B Jan. 15, 2020, 5:55 p.m. OK Java 11 TESTS 22 187 0 1300
25867886 thainguyenhung B March 28, 2017, 7:50 a.m. OK Java 8 TESTS 22 93 20172800 1300
25847402 arnavks97 B March 27, 2017, 3:26 p.m. OK Java 8 TESTS 22 108 20172800 1300
26098077 ml_guy B April 3, 2017, 11:32 a.m. OK Java 8 TESTS 22 108 20480000 1300
26041428 nguyentienanh B April 1, 2017, 3:21 a.m. OK Java 8 TESTS 22 108 20480000 1300
25847527 vikashkumarbissu B March 27, 2017, 3:27 p.m. OK Java 8 TESTS 22 108 20480000 1300
25844251 Baelish B March 27, 2017, 2:58 p.m. OK Java 8 TESTS 22 108 20480000 1300
25844080 Dukkha B March 27, 2017, 2:57 p.m. OK Java 8 TESTS 22 108 20480000 1300
25843478 Safrout B March 27, 2017, 2:53 p.m. OK Java 8 TESTS 22 108 20480000 1300
26205245 vjudge2 B April 7, 2017, 10:41 p.m. OK Java 8 TESTS 22 108 20582400 1300
25884017 Picasso-Abud B March 28, 2017, 9:35 p.m. OK Java 8 TESTS 22 108 20582400 1300
25843995 simonmysun B March 27, 2017, 2:56 p.m. OK JavaScript TESTS 22 30 5939200 1300
26228815 bluered B April 9, 2017, 1:54 a.m. OK JavaScript TESTS 22 31 5939200 1300
25845699 darkkcyan B March 27, 2017, 3:09 p.m. OK JavaScript TESTS 22 31 5939200 1300
26142843 danchick_technostyle B April 5, 2017, 12:25 p.m. OK JavaScript TESTS 22 31 5939200 1300
26228600 bluered B April 9, 2017, 1:22 a.m. OK JavaScript TESTS 22 46 5939200 1300
25848773 Marok B March 27, 2017, 3:39 p.m. OK Mono C# TESTS 22 46 9011200 1300
25951622 mirinae B March 30, 2017, 12:15 p.m. OK Mono C# TESTS 22 46 9011200 1300
25850417 Roberto41 B March 27, 2017, 3:56 p.m. OK Mono C# TESTS 22 61 11468800 1300
26257913 Olga333 B April 10, 2017, 4:29 p.m. OK MS C# TESTS 22 46 8908800 1300
25851177 og.kostya B March 27, 2017, 4:05 p.m. OK MS C# TESTS 22 46 8908800 1300
25845810 zdebyman B March 27, 2017, 3:10 p.m. OK MS C# TESTS 22 46 9011200 1300
25851173 saergio.esteves B March 27, 2017, 4:05 p.m. OK MS C# TESTS 22 46 9113600 1300
26058935 zazak B April 1, 2017, 4:13 p.m. OK MS C# TESTS 22 46 9113600 1300
28494934 treasuryonly B July 13, 2017, 8:04 a.m. OK MS C# TESTS 22 46 9318400 1300
25958288 BLACK_X B March 30, 2017, 4:23 p.m. OK MS C# TESTS 22 61 11468800 1300
25860832 lionvs13 B March 27, 2017, 9:38 p.m. OK MS C# TESTS 22 61 11468800 1300
26397277 IleksaNott B April 15, 2017, 7:27 p.m. OK MS C# TESTS 22 62 8908800 1300
28165724 Vtz B June 30, 2017, 6:53 a.m. OK MS C# TESTS 22 62 9625600 1300
27703936 kapany3 B June 10, 2017, 10:02 a.m. OK MS C++ TESTS 22 15 0 1300
43431996 vjudge2 B Sept. 26, 2018, 2:15 a.m. OK MS C++ TESTS 22 15 0 1300
27703189 root23 B June 10, 2017, 9:15 a.m. OK MS C++ TESTS 22 15 102400 1300
27573975 waitzkin B June 5, 2017, 1:52 a.m. OK MS C++ TESTS 22 15 204800 1300
26404932 vjudge4 B April 16, 2017, 5:46 a.m. OK MS C++ TESTS 22 15 1945600 1300
26075681 phyljh B April 2, 2017, 10:41 a.m. OK MS C++ TESTS 22 15 1945600 1300
25876174 Iriskinn B March 28, 2017, 2:30 p.m. OK MS C++ TESTS 22 15 1945600 1300
25860865 CuriOusQuOkka B March 27, 2017, 9:40 p.m. OK MS C++ TESTS 22 15 1945600 1300
25850054 ARMACOTY B March 27, 2017, 3:52 p.m. OK MS C++ TESTS 22 15 1945600 1300
29372915 samele B Aug. 12, 2017, 8:42 a.m. OK MS C++ TESTS 22 15 2048000 1300
69706633 sql123 B Jan. 29, 2020, 4:58 a.m. OK MS C++ 2017 TESTS 22 30 0 1300
58386720 vjudge4 B Aug. 6, 2019, 12:14 p.m. OK MS C++ 2017 TESTS 22 30 0 1300
57607969 pseuda B July 23, 2019, 6:55 p.m. OK MS C++ 2017 TESTS 22 31 0 1300
65899882 NewLul B Nov. 28, 2019, 8:13 a.m. OK MS C++ 2017 TESTS 22 31 0 1300
62205601 marewolf B Oct. 9, 2019, 1:08 p.m. OK MS C++ 2017 TESTS 22 31 0 1300
58384531 vjudge3 B Aug. 6, 2019, 11:23 a.m. OK MS C++ 2017 TESTS 22 31 0 1300
69303593 sql123 B Jan. 22, 2020, 2:36 p.m. OK MS C++ 2017 TESTS 22 31 307200 1300
57089997 IbraheemJanajreh B July 15, 2019, 10:23 a.m. OK MS C++ 2017 TESTS 22 46 0 1300
25842109 alexey.shchepin B March 27, 2017, 2:45 p.m. OK Ocaml TESTS 22 15 4096000 1300
25881768 s_p B March 28, 2017, 6:53 p.m. OK Perl TESTS 22 31 2764800 1300
25860579 mayakin B March 27, 2017, 9:21 p.m. OK PHP TESTS 22 31 6041600 1300
25842656 masonsbro B March 27, 2017, 2:48 p.m. OK PyPy 2 TESTS 22 62 21913600 1300
26191797 T1024 B April 7, 2017, 11:53 a.m. OK PyPy 2 TESTS 22 62 21913600 1300
25972095 formicae B March 31, 2017, 9:01 a.m. OK PyPy 2 TESTS 22 62 21913600 1300
25971287 Grimmer B March 31, 2017, 8:24 a.m. OK PyPy 2 TESTS 22 62 21913600 1300
25860485 NourAlhadi B March 27, 2017, 9:14 p.m. OK PyPy 2 TESTS 22 62 21913600 1300
25888510 ryanr1230 B March 29, 2017, 6:10 a.m. OK PyPy 2 TESTS 22 62 22016000 1300
25866256 Yash_ B March 28, 2017, 6:09 a.m. OK PyPy 2 TESTS 22 62 22016000 1300
25864624 TangentOfA B March 28, 2017, 4 a.m. OK PyPy 2 TESTS 22 62 22016000 1300
25860303 ContentedChaos B March 27, 2017, 8:59 p.m. OK PyPy 2 TESTS 22 62 22016000 1300
25845984 malafeev B March 27, 2017, 3:12 p.m. OK PyPy 2 TESTS 22 77 21913600 1300
39071776 arsrivish2 B June 9, 2018, 2:35 p.m. OK PyPy 3 TESTS 22 108 0 1300
25853288 TheProgrammer256 B March 27, 2017, 4:28 p.m. OK PyPy 3 TESTS 22 108 23142400 1300
25845702 gestapolur B March 27, 2017, 3:09 p.m. OK PyPy 3 TESTS 22 109 23142400 1300
63346450 crazydoggo18 B Oct. 24, 2019, 7:29 p.m. OK PyPy 3 TESTS 22 124 0 1300
60850048 ashok123 B Sept. 19, 2019, 1:46 p.m. OK PyPy 3 TESTS 22 124 0 1300
57308523 BenL B July 19, 2019, 5:24 a.m. OK PyPy 3 TESTS 22 124 0 1300
38967869 nowyyz B June 5, 2018, 12:03 p.m. OK PyPy 3 TESTS 22 124 22630400 1300
25845515 Underwood_ B March 27, 2017, 3:08 p.m. OK PyPy 3 TESTS 22 124 23142400 1300
62161868 0x8b B Oct. 8, 2019, 6:28 p.m. OK PyPy 3 TESTS 22 139 0 1300
63924953 shiv1470 B Oct. 31, 2019, 12:47 p.m. OK PyPy 3 TESTS 22 140 0 1300
27448367 Ostkaka B May 30, 2017, 12:46 p.m. OK Python 2 TESTS 22 46 0 1300
26139755 akshat14132 B April 5, 2017, 9:56 a.m. OK Python 2 TESTS 22 46 4608000 1300
25891713 Gach B March 29, 2017, 9:15 a.m. OK Python 2 TESTS 22 46 4608000 1300
25853213 mshingote B March 27, 2017, 4:27 p.m. OK Python 2 TESTS 22 46 4608000 1300
25851726 parth_satodiya B March 27, 2017, 4:11 p.m. OK Python 2 TESTS 22 46 4608000 1300
25850301 ashwind112 B March 27, 2017, 3:55 p.m. OK Python 2 TESTS 22 46 4608000 1300
25845461 vaquan B March 27, 2017, 3:07 p.m. OK Python 2 TESTS 22 46 4608000 1300
25845051 anuj_shah B March 27, 2017, 3:04 p.m. OK Python 2 TESTS 22 46 4608000 1300
25841363 Lewin B March 27, 2017, 2:41 p.m. OK Python 2 TESTS 22 46 4608000 1300
27942465 franckmy B June 21, 2017, 9:42 a.m. OK Python 2 TESTS 22 46 4710400 1300
27480678 henryhuypham B June 1, 2017, 8:36 a.m. OK Python 3 TESTS 22 46 0 1300
25872875 grandeur19919 B March 28, 2017, 12:13 p.m. OK Python 3 TESTS 22 46 4608000 1300
26147586 Bumazhka B April 5, 2017, 3:51 p.m. OK Python 3 TESTS 22 46 5529600 1300
26088774 antonydeepak B April 3, 2017, 1:33 a.m. OK Python 3 TESTS 22 46 5529600 1300
25848682 sushantgupta4 B March 27, 2017, 3:38 p.m. OK Python 3 TESTS 22 46 5529600 1300
25846581 nanae1914 B March 27, 2017, 3:17 p.m. OK Python 3 TESTS 22 46 5529600 1300
25842754 nbasic B March 27, 2017, 2:49 p.m. OK Python 3 TESTS 22 46 5529600 1300
33895287 mola.mola B Jan. 4, 2018, 2:35 a.m. OK Python 3 TESTS 22 46 5632000 1300
31962871 yugle7 B Nov. 1, 2017, 8:46 p.m. OK Python 3 TESTS 22 61 0 1300
26883206 ntkien190496 B May 5, 2017, 2:48 p.m. OK Python 3 TESTS 22 61 0 1300
26652296 phirasit B April 25, 2017, 3:29 a.m. OK Ruby TESTS 22 62 6451200 1300
25845509 ATSTNG B March 27, 2017, 3:08 p.m. OK Ruby TESTS 22 78 6553600 1300
29967281 briansu B Sept. 1, 2017, 8:51 a.m. OK Ruby TESTS 22 92 204800 1300
25851881 thomtych B March 27, 2017, 4:13 p.m. OK Ruby TESTS 22 93 6553600 1300
30292117 Hillmouse B Sept. 12, 2017, 5:16 p.m. OK Rust TESTS 22 31 0 1300
25864704 kobae964 B March 28, 2017, 4:08 a.m. OK Rust TESTS 22 31 106598400 1300
25843664 odomontois B March 27, 2017, 2:54 p.m. OK Scala TESTS 22 311 24473600 1300

remove filters

Back to search problems