Educational Codeforces Round 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
598 Educational Codeforces Round 1 FINISHED False 7200 284396399 Nov. 13, 2015, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11224 ) B Queries on a String PROGRAMMING implementation strings 1400

B'You are given a string s and should process m queries. Each query is described by two 1-based indices li, ri and integer ki. It means that you should cyclically shift the substring s[li... ri] ki times. The queries should be processed one after another in the order they are given. One operation of a cyclic shift (rotation) is equivalent to moving the last character to the position of the first character and shifting all other characters one position to the right. For example, if the string s is abacaba and the query is l1 xe2 x80 x89= xe2 x80 x893, xe2 x80 x89r1 xe2 x80 x89= xe2 x80 x896, xe2 x80 x89k1 xe2 x80 x89= xe2 x80 x891 then the answer is abbacaa. If after that we would process the query l2 xe2 x80 x89= xe2 x80 x891, xe2 x80 x89r2 xe2 x80 x89= xe2 x80 x894, xe2 x80 x89k2 xe2 x80 x89= xe2 x80 x892 then we would get the string baabcaa. The first line of the input contains the string s (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910 xe2 x80 x89000) in its initial state, where |s| stands for the length of s. It contains only lowercase English letters. Second line contains a single integer m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89300) -- the number of queries. The i-th of the next m lines contains three integers li, ri and ki (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s|, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ki xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891 xe2 x80 x89000 xe2 x80 x89000) -- the description of the i-th query. Print the resulting string s after processing all m queries. The sample is described in problem statement.'...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56059517 klin21698 B June 26, 2019, 4:15 a.m. OK Clang++17 Diagnostics TESTS 24 140 9420800 1400
58461375 irfanabduhu B Aug. 8, 2019, 4:43 p.m. OK Clang++17 Diagnostics TESTS 24 140 9420800 1400
55183758 mahendra.2890 B June 6, 2019, 1:48 a.m. OK Clang++17 Diagnostics TESTS 24 249 26214400 1400
54732939 vjudge2 B May 28, 2019, 2:25 a.m. OK Clang++17 Diagnostics TESTS 24 280 15769600 1400
68655520 vjudge1 B Jan. 12, 2020, 12:06 p.m. OK Clang++17 Diagnostics TESTS 24 889 22016000 1400
27393736 The_Winners B May 27, 2017, 4:25 p.m. OK FPC TESTS 24 15 512000 1400
29092482 vjudge5 B Aug. 1, 2017, 8:12 a.m. OK FPC TESTS 24 15 1945600 1400
29091290 vjudge4 B Aug. 1, 2017, 7:31 a.m. OK FPC TESTS 24 15 1945600 1400
23523029 KGB_ist B Jan. 3, 2017, 7:09 p.m. OK FPC TESTS 24 15 2048000 1400
25693720 tkachenko_oo B March 21, 2017, 3:17 p.m. OK FPC TESTS 24 15 2048000 1400
25693750 pozhuev_va_s28 B March 21, 2017, 3:18 p.m. OK FPC TESTS 24 15 2048000 1400
29083913 vjudge1 B Aug. 1, 2017, 1:13 a.m. OK FPC TESTS 24 15 2150400 1400
29083869 vjudge1 B Aug. 1, 2017, 1:10 a.m. OK FPC TESTS 24 15 2150400 1400
69546569 stuzjk B Jan. 26, 2020, 3:19 a.m. OK FPC TESTS 24 31 307200 1400
44021184 luogu_bot2 B Oct. 9, 2018, 4:20 a.m. OK FPC TESTS 24 31 409600 1400
19103066 vjudge3 B July 14, 2016, 8:06 a.m. OK GNU C TESTS 24 15 0 1400
32672156 Kareactionbbc B Nov. 26, 2017, 1:04 p.m. OK GNU C TESTS 24 15 1843200 1400
28980987 changz B July 30, 2017, 2:29 a.m. OK GNU C TESTS 24 15 1945600 1400
21257128 vjudge1 B Oct. 7, 2016, 12:14 p.m. OK GNU C TESTS 24 15 1945600 1400
20070485 lbenicio B Aug. 22, 2016, 7:06 p.m. OK GNU C TESTS 24 15 1945600 1400
31251021 proy99 B Oct. 12, 2017, 3:22 p.m. OK GNU C TESTS 24 30 0 1400
20382728 vjudge1 B Sept. 4, 2016, 1:02 p.m. OK GNU C TESTS 24 30 0 1400
19951406 maratonando B Aug. 18, 2016, 6:08 p.m. OK GNU C TESTS 24 30 1945600 1400
19032760 A_Modern_Desperado B July 11, 2016, 3:01 p.m. OK GNU C TESTS 24 31 0 1400
40996039 junezriyaz B July 31, 2018, 3:56 a.m. OK GNU C TESTS 24 31 0 1400
30373670 vjudge5 B Sept. 15, 2017, 11:17 p.m. OK GNU C++ TESTS 24 15 0 1400
30363942 vjudge1 B Sept. 15, 2017, 1:23 p.m. OK GNU C++ TESTS 24 15 0 1400
30361521 vjudge3 B Sept. 15, 2017, 11:23 a.m. OK GNU C++ TESTS 24 15 0 1400
30176355 vjudge4 B Sept. 7, 2017, 8:40 a.m. OK GNU C++ TESTS 24 15 0 1400
30125178 vjudge3 B Sept. 6, 2017, 7:28 a.m. OK GNU C++ TESTS 24 15 0 1400
30124874 vjudge2 B Sept. 6, 2017, 7:09 a.m. OK GNU C++ TESTS 24 15 0 1400
30124794 vjudge5 B Sept. 6, 2017, 7:05 a.m. OK GNU C++ TESTS 24 15 0 1400
30124422 vjudge2 B Sept. 6, 2017, 6:44 a.m. OK GNU C++ TESTS 24 15 0 1400
30029220 vjudge1 B Sept. 3, 2017, 10:22 a.m. OK GNU C++ TESTS 24 15 0 1400
30373749 vjudge2 B Sept. 15, 2017, 11:30 p.m. OK GNU C++ TESTS 24 15 0 1400
27541688 shkarpa B June 3, 2017, 10:53 a.m. OK GNU C11 TESTS 24 15 0 1400
33742375 alexey.orlov B Dec. 28, 2017, 5:38 p.m. OK GNU C11 TESTS 24 15 1843200 1400
20422929 blacrow13 B Sept. 6, 2016, 5:43 p.m. OK GNU C11 TESTS 24 30 0 1400
65293155 torque_459 B Nov. 18, 2019, 10:32 a.m. OK GNU C11 TESTS 24 31 0 1400
63432302 rahulgoel B Oct. 26, 2019, 9:29 a.m. OK GNU C11 TESTS 24 31 0 1400
55559342 k_ankita B June 14, 2019, 11:44 a.m. OK GNU C11 TESTS 24 31 0 1400
44529465 vjudge3 B Oct. 19, 2018, 5:36 a.m. OK GNU C11 TESTS 24 31 0 1400
49970586 kaiboy B Feb. 16, 2019, 1:45 a.m. OK GNU C11 TESTS 24 31 0 1400
65624233 xudian B Nov. 24, 2019, 7:21 a.m. OK GNU C11 TESTS 24 31 0 1400
65482796 nihui B Nov. 21, 2019, 12:13 p.m. OK GNU C11 TESTS 24 31 0 1400
30766960 Guts B Sept. 27, 2017, 3:43 a.m. OK GNU C++11 TESTS 24 15 0 1400
45784628 Johnny23 B Nov. 15, 2018, 11:34 p.m. OK GNU C++11 TESTS 24 15 0 1400
41281989 AlirezaNa B Aug. 6, 2018, 5:05 p.m. OK GNU C++11 TESTS 24 15 0 1400
32499402 QiuSun B Nov. 20, 2017, 12:37 p.m. OK GNU C++11 TESTS 24 15 0 1400
32243657 644262163 B Nov. 12, 2017, 12:46 p.m. OK GNU C++11 TESTS 24 15 0 1400
32182441 gnatfatcat B Nov. 9, 2017, 10:20 p.m. OK GNU C++11 TESTS 24 15 0 1400
31932887 notnik B Oct. 31, 2017, 8:09 p.m. OK GNU C++11 TESTS 24 15 0 1400
31920372 BThero B Oct. 31, 2017, 12:08 p.m. OK GNU C++11 TESTS 24 15 0 1400
30495262 vjudge4 B Sept. 19, 2017, 11:28 a.m. OK GNU C++11 TESTS 24 15 0 1400
30362216 vjudge3 B Sept. 15, 2017, 11:57 a.m. OK GNU C++11 TESTS 24 15 0 1400
31155806 bradyawn B Oct. 8, 2017, 10:20 p.m. OK GNU C++14 TESTS 24 15 0 1400
31904174 Lord_Wilmore B Oct. 30, 2017, 7:35 p.m. OK GNU C++14 TESTS 24 15 0 1400
31905797 amoo.sooosis B Oct. 30, 2017, 9:06 p.m. OK GNU C++14 TESTS 24 15 0 1400
32039300 Julsan B Nov. 4, 2017, 12:10 a.m. OK GNU C++14 TESTS 24 15 0 1400
32145843 andreumat B Nov. 8, 2017, 7:56 p.m. OK GNU C++14 TESTS 24 15 0 1400
39285944 Arrias B June 16, 2018, 11:26 a.m. OK GNU C++14 TESTS 24 15 0 1400
40479078 borgishmorg B July 17, 2018, 1:12 p.m. OK GNU C++14 TESTS 24 15 0 1400
40694561 hopeAconce B July 24, 2018, 7:25 a.m. OK GNU C++14 TESTS 24 15 0 1400
41159656 SmallUnicorn B Aug. 3, 2018, 2:24 p.m. OK GNU C++14 TESTS 24 15 0 1400
56993415 No_CodeNoLifeSyy B July 13, 2019, 7:51 p.m. OK GNU C++14 TESTS 24 15 0 1400
51097454 mikroz B March 9, 2019, 5:11 p.m. OK GNU C++17 TESTS 24 15 0 1400
54693620 tenini13 B May 26, 2019, 6:09 p.m. OK GNU C++17 TESTS 24 15 0 1400
61029441 jeremy624lolz B Sept. 21, 2019, 5:10 p.m. OK GNU C++17 TESTS 24 15 0 1400
60769137 vjudge2 B Sept. 18, 2019, 12:04 p.m. OK GNU C++17 TESTS 24 15 0 1400
55409353 C4rlosVz B June 10, 2019, 6:36 p.m. OK GNU C++17 TESTS 24 15 0 1400
55408398 harshsurti B June 10, 2019, 5:59 p.m. OK GNU C++17 TESTS 24 15 0 1400
54863383 seven_triple B May 31, 2019, 4:21 a.m. OK GNU C++17 TESTS 24 15 0 1400
54731147 hbi1998 B May 28, 2019, 12:10 a.m. OK GNU C++17 TESTS 24 15 0 1400
46566253 ivan.v.gerasimov B Dec. 3, 2018, 11:53 p.m. OK GNU C++17 TESTS 24 15 0 1400
67609535 SoonRed B Dec. 25, 2019, 2:51 p.m. OK GNU C++17 TESTS 24 15 102400 1400
46509156 Flaker B Dec. 2, 2018, 12:29 p.m. OK Go TESTS 24 31 0 1400
25858649 dltw B March 27, 2017, 7:12 p.m. OK Go TESTS 24 61 23040000 1400
18983911 pavel.rosputko B July 9, 2016, 10:41 a.m. OK Haskell TESTS 24 561 126259200 1400
19678267 Levantiy B Aug. 7, 2016, 12:33 a.m. OK Haskell TESTS 24 701 171110400 1400
64643741 praverchaurasia B Nov. 10, 2019, 2:10 p.m. OK Java 11 TESTS 24 265 204800 1400
19438771 Mohamed_KHLY B July 27, 2016, 9:56 a.m. OK Java 7 TESTS 24 124 0 1400
19591493 inSaneSyntax B Aug. 3, 2016, 5:37 a.m. OK Java 7 TESTS 24 140 0 1400
46847992 jenish9599 B Dec. 10, 2018, 10:46 a.m. OK Java 8 TESTS 24 109 0 1400
58188639 adeepgarg13 B Aug. 2, 2019, 6:19 p.m. OK Java 8 TESTS 24 109 0 1400
31900275 joney_000 B Oct. 30, 2017, 4:52 p.m. OK Java 8 TESTS 24 109 0 1400
60842460 7dan B Sept. 19, 2019, 11:28 a.m. OK Java 8 TESTS 24 124 0 1400
68656613 vjudge5 B Jan. 12, 2020, 12:26 p.m. OK Java 8 TESTS 24 124 0 1400
67677717 sumiteshn B Dec. 27, 2019, 3:57 a.m. OK Java 8 TESTS 24 124 0 1400
66806721 vjudge1 B Dec. 13, 2019, 9:48 p.m. OK Java 8 TESTS 24 124 0 1400
66806700 T_Crow B Dec. 13, 2019, 9:47 p.m. OK Java 8 TESTS 24 124 0 1400
65886239 unicorn20141 B Nov. 27, 2019, 10:40 p.m. OK Java 8 TESTS 24 124 0 1400
64158995 an09mous B Nov. 3, 2019, 1:48 p.m. OK Java 8 TESTS 24 124 0 1400
56617058 Quaternion B July 6, 2019, 10:11 a.m. OK Kotlin TESTS 24 155 204800 1400
41632710 Slamur B Aug. 15, 2018, 7:35 p.m. OK Kotlin TESTS 24 156 0 1400
39589631 QuantumKnight B June 24, 2018, 4:50 a.m. OK Mono C# TESTS 24 46 3788800 1400
51050186 nemars B March 8, 2019, 8:36 p.m. OK Mono C# TESTS 24 78 102400 1400
60341465 NEvOl B Sept. 10, 2019, 11:02 a.m. OK Mono C# TESTS 24 78 3788800 1400
21571131 pomjuice B Oct. 18, 2016, 3:21 p.m. OK Mono C# TESTS 24 187 18636800 1400
19652558 Vareni4 B Aug. 5, 2016, 1:28 p.m. OK MS C# TESTS 24 46 11776000 1400
33620158 andrei_toader B Dec. 25, 2017, 3:04 p.m. OK MS C# TESTS 24 61 14950400 1400
20774156 Chubcheg B Sept. 20, 2016, 11:32 a.m. OK MS C# TESTS 24 62 5427200 1400
30567703 XelMed B Sept. 21, 2017, 5:44 a.m. OK MS C# TESTS 24 77 5529600 1400
22708104 balalaika B Dec. 5, 2016, 9:33 a.m. OK MS C# TESTS 24 77 5529600 1400
27765010 _Halim_ B June 14, 2017, 12:03 a.m. OK MS C++ TESTS 24 15 0 1400
27334547 Capitan B May 25, 2017, 11:05 a.m. OK MS C++ TESTS 24 15 0 1400
22026282 redimer B Nov. 4, 2016, 3:46 a.m. OK MS C++ TESTS 24 15 0 1400
22017556 redimer B Nov. 3, 2016, 4:24 p.m. OK MS C++ TESTS 24 15 0 1400
19075203 Alexicon B July 13, 2016, 2:32 p.m. OK MS C++ TESTS 24 15 0 1400
30630664 AIChannel B Sept. 23, 2017, 5:23 a.m. OK MS C++ TESTS 24 15 0 1400
32543468 Artem84 B Nov. 22, 2017, 7:55 a.m. OK MS C++ TESTS 24 15 0 1400
49042762 vjudge3 B Jan. 27, 2019, 7:16 a.m. OK MS C++ TESTS 24 15 0 1400
30247312 daniil.maltsev.md B Sept. 10, 2017, 2:10 p.m. OK MS C++ TESTS 24 15 102400 1400
27334942 Capitan B May 25, 2017, 11:25 a.m. OK MS C++ TESTS 24 15 102400 1400
58667935 vjudge2 B Aug. 12, 2019, 1:16 p.m. OK MS C++ 2017 TESTS 24 31 0 1400
54214203 Tarane_Jan B May 15, 2019, 7:02 p.m. OK MS C++ 2017 TESTS 24 31 0 1400
49201619 Husne_Matar B Jan. 30, 2019, 12:37 p.m. OK MS C++ 2017 TESTS 24 31 0 1400
49049559 eyesofgod123 B Jan. 27, 2019, 10:23 a.m. OK MS C++ 2017 TESTS 24 31 0 1400
62509685 MherKing B Oct. 13, 2019, 1:06 p.m. OK MS C++ 2017 TESTS 24 46 0 1400
50584441 4tis B Feb. 28, 2019, 1:50 a.m. OK MS C++ 2017 TESTS 24 623 0 1400
50584422 AmmarC-137 B Feb. 28, 2019, 1:49 a.m. OK MS C++ 2017 TESTS 24 624 0 1400
26768210 attiw B April 30, 2017, 1:07 p.m. OK PyPy 2 TESTS 24 77 22630400 1400
25960816 sid597 B March 30, 2017, 6:09 p.m. OK PyPy 2 TESTS 24 77 22732800 1400
28621655 sragavan B July 17, 2017, 12:09 a.m. OK PyPy 2 TESTS 24 93 22732800 1400
19593325 Yash_ B Aug. 3, 2016, 7:52 a.m. OK PyPy 2 TESTS 24 108 409600 1400
25960883 sid597 B March 30, 2017, 6:12 p.m. OK PyPy 2 TESTS 24 109 22732800 1400
45695064 icesin B Nov. 14, 2018, 2:08 a.m. OK PyPy 2 TESTS 24 140 3481600 1400
49604975 kal013 B Feb. 7, 2019, 6:59 p.m. OK PyPy 2 TESTS 24 156 2560000 1400
60494797 MouhcineTo1 B Sept. 13, 2019, 3:55 p.m. OK PyPy 2 TESTS 24 1231 10444800 1400
30617947 arknave B Sept. 22, 2017, 2:48 p.m. OK PyPy 3 TESTS 24 109 1331200 1400
49882420 meiniak B Feb. 13, 2019, 6:52 p.m. OK PyPy 3 TESTS 24 140 1024000 1400
49881486 meiniak B Feb. 13, 2019, 6:23 p.m. OK PyPy 3 TESTS 24 140 1536000 1400
51410575 cs1g B March 17, 2019, 11:53 a.m. OK PyPy 3 TESTS 24 140 1740800 1400
46562748 omarnvidia B Dec. 3, 2018, 7:31 p.m. OK PyPy 3 TESTS 24 140 2048000 1400
28103691 tskolm B June 27, 2017, 8:40 p.m. OK PyPy 3 TESTS 24 140 24371200 1400
56291071 alexara1123 B June 30, 2019, 12:57 a.m. OK PyPy 3 TESTS 24 155 716800 1400
53963791 ak9eight B May 10, 2019, 3:41 p.m. OK PyPy 3 TESTS 24 155 1536000 1400
51410503 cs1g B March 17, 2019, 11:52 a.m. OK PyPy 3 TESTS 24 155 1740800 1400
61537898 ILSM B Sept. 30, 2019, 7:22 a.m. OK PyPy 3 TESTS 24 155 5120000 1400
20334172 pulkit12083 B Sept. 2, 2016, 3:27 a.m. OK Python 2 TESTS 24 46 921600 1400
19216710 clarinet758 B July 18, 2016, 4:40 p.m. OK Python 2 TESTS 24 46 1126400 1400
23188949 Medallo B Dec. 21, 2016, 12:09 a.m. OK Python 2 TESTS 24 61 5324800 1400
19216612 clarinet758 B July 18, 2016, 4:35 p.m. OK Python 2 TESTS 24 62 1126400 1400
31316747 wwz B Oct. 14, 2017, 3:49 p.m. OK Python 2 TESTS 24 62 1228800 1400
20953282 vaibhav_wayne B Sept. 27, 2016, 5:58 p.m. OK Python 2 TESTS 24 62 1228800 1400
20953812 vaibhavakaburger B Sept. 27, 2016, 6:23 p.m. OK Python 2 TESTS 24 62 1331200 1400
23188832 Medallo B Dec. 20, 2016, 11:54 p.m. OK Python 2 TESTS 24 62 5222400 1400
23188899 Medallo B Dec. 21, 2016, 12:03 a.m. OK Python 2 TESTS 24 62 5324800 1400
23188938 Cranium B Dec. 21, 2016, 12:07 a.m. OK Python 2 TESTS 24 62 5324800 1400
35456707 vjudge4 B Feb. 18, 2018, 8:35 p.m. OK Python 3 TESTS 24 46 7270400 1400
30760877 nxblnd B Sept. 26, 2017, 7:06 p.m. OK Python 3 TESTS 24 62 1331200 1400
31211193 NemmilenHolnds B Oct. 11, 2017, 8:34 a.m. OK Python 3 TESTS 24 62 1433600 1400
31114415 poiuytrewq12345 B Oct. 7, 2017, 12:28 p.m. OK Python 3 TESTS 24 62 1433600 1400
31056538 123qwe123 B Oct. 6, 2017, 6:43 a.m. OK Python 3 TESTS 24 62 1433600 1400
29585862 lightning-bolt B Aug. 19, 2017, 2:24 a.m. OK Python 3 TESTS 24 62 1433600 1400
27513950 lavafalls B June 2, 2017, 2:58 a.m. OK Python 3 TESTS 24 62 1433600 1400
26242068 sandra.t B April 9, 2017, 5:26 p.m. OK Python 3 TESTS 24 62 6041600 1400
28153250 defunator01 B June 29, 2017, 5:03 p.m. OK Python 3 TESTS 24 62 6348800 1400
26592422 TISparta B April 22, 2017, 10:52 p.m. OK Python 3 TESTS 24 62 6656000 1400
28386655 Baklazan B July 9, 2017, 11:50 a.m. OK Ruby TESTS 24 78 14540800 1400
24788513 Grevozin B Feb. 18, 2017, 7:23 p.m. OK Rust TESTS 24 15 1638400 1400
22795132 techaddict B Dec. 7, 2016, 6:41 p.m. OK Scala TESTS 24 405 23552000 1400
40228079 cfeitong B July 12, 2018, 10:09 a.m. OK Scala TESTS 24 576 0 1400
40227856 cfeitong B July 12, 2018, 10 a.m. OK Scala TESTS 24 686 0 1400

remove filters

Back to search problems