Educational Codeforces Round 96 (Rated for 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
1430 Educational Codeforces Round 96 (Rated for Div. 2) FINISHED False 7200 134859263 Oct. 11, 2020, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6628 ) E String Reversal PROGRAMMING data structures greedy strings

B'You are given a string s . You have to reverse it -- that is, the first letter should become equal to the last letter before the reversal, the second letter should become equal to the second-to-last letter before the reversal -- and so on. For example, if your goal is to reverse the string "abddea", you should get the string "aeddba". To accomplish your goal, you can swap the neighboring elements of the string. Your task is to calculate the minimum number of swaps you have to perform to reverse the given string. The first line contains one integer n ( 2 <= n <= 200 ,000 ) -- the length of s . The second line contains s -- a string consisting of n lowercase Latin letters. Print one integer -- the minimum number of swaps of neighboring elements you have to perform to reverse the string. In the first example, you have to swap the third and the fourth elements, so the string becomes "aazaa". Then you have to swap the second and the third elements, so the string becomes "azaaa". So, it is possible to reverse the string in two swaps. Since the string in the second example is a palindrome, you don 't have to do anything to reverse it. '...

Tutorials

Educational Codeforces Round 96 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
95249976 siumai E Oct. 11, 2020, 11:01 a.m. OK GNU C11 TESTS 46 93 35020800
95261792 lyslys E Oct. 11, 2020, 12:40 p.m. OK GNU C++11 TESTS 46 31 2867200
95290997 denkendoemeer E Oct. 11, 2020, 5:58 p.m. OK GNU C++11 TESTS 46 31 3379200
95258682 wddmahe E Oct. 11, 2020, 12:04 p.m. OK GNU C++11 TESTS 46 31 3584000
95282883 arkob E Oct. 11, 2020, 4:17 p.m. OK GNU C++11 TESTS 46 31 3584000
95263725 KagamineRin E Oct. 11, 2020, 1:03 p.m. OK GNU C++11 TESTS 46 31 4403200
95261030 jy1lnz E Oct. 11, 2020, 12:31 p.m. OK GNU C++11 TESTS 46 31 5120000
95263331 Appreciate E Oct. 11, 2020, 12:59 p.m. OK GNU C++11 TESTS 46 31 5222400
95260282 STORMGATE078 E Oct. 11, 2020, 12:22 p.m. OK GNU C++11 TESTS 46 31 5529600
95306776 tdpencil E Oct. 12, 2020, 1:55 a.m. OK GNU C++11 TESTS 46 46 204800
95258502 fr200110217102 E Oct. 11, 2020, 12:02 p.m. OK GNU C++11 TESTS 46 46 1843200
95293513 Paradox512 E Oct. 11, 2020, 6:41 p.m. OK GNU C++14 TESTS 46 31 2252800
95282644 caoash E Oct. 11, 2020, 4:14 p.m. OK GNU C++14 TESTS 46 31 3686400
95263828 loulingli E Oct. 11, 2020, 1:05 p.m. OK GNU C++14 TESTS 46 31 4403200
95251930 huanggs E Oct. 11, 2020, 11:06 a.m. OK GNU C++14 TESTS 46 31 4608000
95260151 elitedj E Oct. 11, 2020, 12:21 p.m. OK GNU C++14 TESTS 46 31 4710400
95269542 BTSprathampatel E Oct. 11, 2020, 2:14 p.m. OK GNU C++14 TESTS 46 31 7168000
95277314 zhltao E Oct. 11, 2020, 3:05 p.m. OK GNU C++14 TESTS 46 31 7168000
95253398 bichsonnhat E Oct. 11, 2020, 11:14 a.m. OK GNU C++14 TESTS 46 46 204800
95254082 A.Rishabh.A E Oct. 11, 2020, 11:19 a.m. OK GNU C++14 TESTS 46 46 204800
95250443 shukun E Oct. 11, 2020, 11:02 a.m. OK GNU C++14 TESTS 46 46 2150400
95253589 manag E Oct. 11, 2020, 11:16 a.m. OK GNU C++17 TESTS 46 31 3276800
95299746 georgejsh E Oct. 11, 2020, 8:54 p.m. OK GNU C++17 TESTS 46 31 3584000
95269818 2qbingxuan E Oct. 11, 2020, 2:17 p.m. OK GNU C++17 TESTS 46 31 3891200
95260811 Gajowy E Oct. 11, 2020, 12:29 p.m. OK GNU C++17 TESTS 46 31 4403200
95271892 Kenton1989 E Oct. 11, 2020, 2:42 p.m. OK GNU C++17 TESTS 46 46 1433600
95308802 HeHao147989 E Oct. 12, 2020, 3:01 a.m. OK GNU C++17 TESTS 46 46 2150400
95309096 DYf3244 E Oct. 12, 2020, 3:09 a.m. OK GNU C++17 TESTS 46 46 2150400
95285127 khoabright E Oct. 11, 2020, 4:45 p.m. OK GNU C++17 TESTS 46 46 2252800
95270375 couplefire E Oct. 11, 2020, 2:25 p.m. OK GNU C++17 TESTS 46 46 2252800
95297566 abdulrahman_aj E Oct. 11, 2020, 8:01 p.m. OK GNU C++17 TESTS 46 46 2252800
95305351 Mohammad_Yasser E Oct. 12, 2020, 12:56 a.m. OK GNU C++17 (64) TESTS 46 31 2355200
95260623 keepers E Oct. 11, 2020, 12:26 p.m. OK GNU C++17 (64) TESTS 46 31 3481600
95278308 Thallium_is_Vegetable E Oct. 11, 2020, 3:18 p.m. OK GNU C++17 (64) TESTS 46 31 3686400
95254765 Alex_Lorintz E Oct. 11, 2020, 11:25 a.m. OK GNU C++17 (64) TESTS 46 31 4096000
95264301 Golden E Oct. 11, 2020, 1:10 p.m. OK GNU C++17 (64) TESTS 46 31 4505600
95259307 hitonanode E Oct. 11, 2020, 12:12 p.m. OK GNU C++17 (64) TESTS 46 31 4505600
95247523 Sakhiya07 E Oct. 11, 2020, 10:54 a.m. OK GNU C++17 (64) TESTS 46 31 6348800
95284417 kal013 E Oct. 11, 2020, 4:36 p.m. OK GNU C++17 (64) TESTS 46 31 7168000
95293424 anupamshah_ E Oct. 11, 2020, 6:39 p.m. OK GNU C++17 (64) TESTS 46 31 11059200
95278231 galen_colin E Oct. 11, 2020, 3:16 p.m. OK GNU C++17 (64) TESTS 46 31 28160000
95262252 maguroguma E Oct. 11, 2020, 12:46 p.m. OK Go TESTS 46 249 15155200
95314327 nirvana_rsc E Oct. 12, 2020, 5:23 a.m. OK Java 11 TESTS 46 218 0
95285381 akman10 E Oct. 11, 2020, 4:49 p.m. OK Java 11 TESTS 46 233 5017600
95281384 Dukkha E Oct. 11, 2020, 3:57 p.m. OK Java 11 TESTS 46 248 0
95269242 CCS_Covenant E Oct. 11, 2020, 2:10 p.m. OK Java 11 TESTS 46 249 5836800
95269397 yuruiyin E Oct. 11, 2020, 2:12 p.m. OK Java 11 TESTS 46 327 18636800
95248075 glider.g E Oct. 11, 2020, 10:56 a.m. OK Java 11 TESTS 46 342 5734400
95262706 MartyByrde E Oct. 11, 2020, 12:51 p.m. OK Java 8 TESTS 46 140 0
95293623 practice99 E Oct. 11, 2020, 6:43 p.m. OK Java 8 TESTS 46 155 204800
95248515 Aabhas99 E Oct. 11, 2020, 10:57 a.m. OK Java 8 TESTS 46 155 4608000
95301890 Akash_kunwar E Oct. 11, 2020, 10:04 p.m. OK Java 8 TESTS 46 155 4710400
95290989 mr_coder1 E Oct. 11, 2020, 5:58 p.m. OK Java 8 TESTS 46 156 3686400
95285949 2020akadaver E Oct. 11, 2020, 4:57 p.m. OK Java 8 TESTS 46 171 2457600
95250403 xwchen E Oct. 11, 2020, 11:02 a.m. OK Java 8 TESTS 46 186 4198400
95248036 flyman3046 E Oct. 11, 2020, 10:56 a.m. OK Java 8 TESTS 46 186 4505600
95247435 subhamdtu E Oct. 11, 2020, 10:54 a.m. OK Java 8 TESTS 46 233 4505600
95314914 StayAwayFromBitches E Oct. 12, 2020, 5:35 a.m. OK Java 8 TESTS 46 248 27136000
95256920 koboshi E Oct. 11, 2020, 11:45 a.m. OK Kotlin TESTS 46 343 20787200
95284756 little_lion E Oct. 11, 2020, 4:40 p.m. OK MS C++ 2017 TESTS 46 46 4812800
95250626 AleksanderBalobanov E Oct. 11, 2020, 11:02 a.m. OK MS C++ 2017 TESTS 46 109 8396800
95265366 beethoven97 E Oct. 11, 2020, 1:22 p.m. OK PyPy 2 TESTS 46 545 9625600
95264844 beethoven97 E Oct. 11, 2020, 1:16 p.m. OK PyPy 2 TESTS 46 545 9625600
95288119 beethoven97 E Oct. 11, 2020, 5:13 p.m. OK PyPy 2 TESTS 46 545 9830400
95288393 beethoven97 E Oct. 11, 2020, 5:18 p.m. OK PyPy 2 TESTS 46 561 9932800
95301061 june_waves E Oct. 11, 2020, 9:36 p.m. OK PyPy 3 TESTS 46 171 10240000
95260821 naughtyb0y E Oct. 11, 2020, 12:29 p.m. OK PyPy 3 TESTS 46 202 8704000
95298424 Bovniova E Oct. 11, 2020, 8:20 p.m. OK PyPy 3 TESTS 46 234 10342400
95288571 reddevil100 E Oct. 11, 2020, 5:20 p.m. OK PyPy 3 TESTS 46 249 8704000
95262769 a0976531005 E Oct. 11, 2020, 12:52 p.m. OK PyPy 3 TESTS 46 295 30105600
95281861 a0976531005 E Oct. 11, 2020, 4:04 p.m. OK PyPy 3 TESTS 46 436 34611200
95310226 keroru E Oct. 12, 2020, 3:40 a.m. OK PyPy 3 TESTS 46 670 19558400
95247958 socha E Oct. 11, 2020, 10:55 a.m. OK PyPy 3 TESTS 46 732 25292800
95251190 recuraki E Oct. 11, 2020, 11:03 a.m. OK PyPy 3 TESTS 46 763 19660800
95249275 recuraki E Oct. 11, 2020, 10:59 a.m. OK PyPy 3 TESTS 46 1028 22425600
95269299 sh1194 E Oct. 11, 2020, 2:11 p.m. OK Python 3 TESTS 46 1497 6144000
95260857 naughtyb0y E Oct. 11, 2020, 12:29 p.m. OK Python 3 TESTS 46 1497 6553600
95269463 sh1194 E Oct. 11, 2020, 2:13 p.m. OK Python 3 TESTS 46 1528 6144000
95269243 sh1194 E Oct. 11, 2020, 2:10 p.m. OK Python 3 TESTS 46 1559 6144000

remove filters

Back to search problems