Educational Codeforces Round 75 (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
1251 Educational Codeforces Round 75 (Rated for Div. 2) FINISHED False 7200 165509687 Oct. 24, 2019, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12828 ) C Minimize The Integer PROGRAMMING greedy two pointers 1500

B"You are given a huge integer a consisting of n digits ( n is between 1 and 3 cdot 10^5 , inclusive). It may contain leading zeros. You can swap two digits on adjacent (neighboring) positions if the swapping digits are of different parity (that is, they have different remainders when divided by 2 ). For example, if a = 032867235 you can get the following integers in a single operation: Note, that you can't swap digits on positions 2 and 4 because the positions are not adjacent. Also, you can't swap digits on positions 3 and 4 because the digits have the same parity. You can perform any number (possibly, zero) of such operations. Find the minimum integer you can obtain. Note that the resulting integer also may contain leading zeros. The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases in the input. The only line of each test case contains the integer a , its length n is between 1 and 3 cdot 10^5 , inclusive. It is guaranteed that the sum of all values n does not exceed 3 cdot 10^5 . For each test case print line -- the minimum integer you can obtain. In the first test case, you can perform the following sequence of operations (the pair of swapped digits is highlighted): 0 underline{ textbf{70}} 9 rightarrow 0079 . In the second test case, the initial integer is optimal. In the third test case you can perform the following sequence of operations: 246 underline{ textbf{43}} 2 rightarrow 24 underline{ textbf{63}}42 rightarrow 2 underline{ textbf{43}} 642 rightarrow 234642 . "...

Tutorials

70860

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66436849 vjudge4 C Dec. 7, 2019, 6:32 a.m. OK Clang++17 Diagnostics TESTS 16 514 18636800 1500
63339533 ruban C Oct. 24, 2019, 5:19 p.m. OK Delphi TESTS 16 124 11673600 1500
63436594 melery_kin C Oct. 26, 2019, 10:50 a.m. OK FPC TESTS 16 889 307200 1500
63396552 jschr C Oct. 25, 2019, 4:51 p.m. OK GNU C11 TESTS 16 31 614400 1500
65294106 KeremC C Nov. 18, 2019, 10:50 a.m. OK GNU C11 TESTS 16 31 921600 1500
64667824 Euphonium C Nov. 11, 2019, 3:49 a.m. OK GNU C11 TESTS 16 31 921600 1500
63335512 rainboy C Oct. 24, 2019, 4:54 p.m. OK GNU C11 TESTS 16 46 921600 1500
64583385 Romul C Nov. 9, 2019, 12:43 p.m. OK GNU C11 TESTS 16 62 1228800 1500
68418528 kaiboy C Jan. 8, 2020, 8:13 p.m. OK GNU C11 TESTS 16 62 2662400 1500
63322185 Chipe1 C Oct. 24, 2019, 3:56 p.m. OK GNU C11 TESTS 16 77 2662400 1500
63396792 DevJewel C Oct. 25, 2019, 4:56 p.m. OK GNU C11 TESTS 16 77 9011200 1500
64630588 torque_459 C Nov. 10, 2019, 10:02 a.m. OK GNU C11 TESTS 16 888 921600 1500
63730130 WooJeHyun C Oct. 29, 2019, 1:48 p.m. OK GNU C11 TESTS 16 904 2662400 1500
63710016 jangjie C Oct. 29, 2019, 9:42 a.m. OK GNU C++11 TESTS 16 30 614400 1500
63419148 fearlessgao C Oct. 26, 2019, 5:46 a.m. OK GNU C++11 TESTS 16 30 614400 1500
64279547 luogu_bot1 C Nov. 5, 2019, 12:35 a.m. OK GNU C++11 TESTS 16 30 1331200 1500
65892691 blak_dragon C Nov. 28, 2019, 4:22 a.m. OK GNU C++11 TESTS 16 30 1536000 1500
63325018 yanghhh C Oct. 24, 2019, 4:06 p.m. OK GNU C++11 TESTS 16 30 1536000 1500
63328435 xjhakioi C Oct. 24, 2019, 4:21 p.m. OK GNU C++11 TESTS 16 30 2969600 1500
63724513 vjudge3 C Oct. 29, 2019, 12:19 p.m. OK GNU C++11 TESTS 16 31 307200 1500
67319021 4790iop C Dec. 21, 2019, 7:16 a.m. OK GNU C++11 TESTS 16 31 614400 1500
64300513 Onno233 C Nov. 5, 2019, 9:53 a.m. OK GNU C++11 TESTS 16 31 614400 1500
63644612 FALLEN_GEMINI C Oct. 28, 2019, 9:15 a.m. OK GNU C++11 TESTS 16 31 614400 1500
63325555 Sciorz C Oct. 24, 2019, 4:08 p.m. OK GNU C++14 TESTS 16 30 1843200 1500
63343403 victor142 C Oct. 24, 2019, 6:22 p.m. OK GNU C++14 TESTS 16 30 2048000 1500
63327333 PauloMiranda98 C Oct. 24, 2019, 4:16 p.m. OK GNU C++14 TESTS 16 30 2048000 1500
63340554 tokitsukaze C Oct. 24, 2019, 5:32 p.m. OK GNU C++14 TESTS 16 30 2048000 1500
63326383 verma_ankit484 C Oct. 24, 2019, 4:12 p.m. OK GNU C++14 TESTS 16 30 2048000 1500
68775364 Rajprasad_dora C Jan. 14, 2020, 1:15 p.m. OK GNU C++14 TESTS 16 30 2048000 1500
63434193 dp_n_k C Oct. 26, 2019, 10:04 a.m. OK GNU C++14 TESTS 16 30 2252800 1500
63847193 nik1996 C Oct. 30, 2019, 3:07 p.m. OK GNU C++14 TESTS 16 30 2355200 1500
63326155 1718336603 C Oct. 24, 2019, 4:11 p.m. OK GNU C++14 TESTS 16 31 819200 1500
63380363 antguz C Oct. 25, 2019, 12:17 p.m. OK GNU C++14 TESTS 16 31 921600 1500
63382726 lukecavabarrett C Oct. 25, 2019, 12:56 p.m. OK GNU C++17 TESTS 16 15 921600 1500
63427279 cang_qiong C Oct. 26, 2019, 8:11 a.m. OK GNU C++17 TESTS 16 30 921600 1500
63371231 haruki_K C Oct. 25, 2019, 9:26 a.m. OK GNU C++17 TESTS 16 30 1024000 1500
63322727 cangfengzhs C Oct. 24, 2019, 3:57 p.m. OK GNU C++17 TESTS 16 30 1228800 1500
65263204 krijgertje C Nov. 17, 2019, 3:46 p.m. OK GNU C++17 TESTS 16 30 1228800 1500
65716609 smit_mandavia C Nov. 25, 2019, 4:54 p.m. OK GNU C++17 TESTS 16 30 1536000 1500
63324688 masalskyi C Oct. 24, 2019, 4:05 p.m. OK GNU C++17 TESTS 16 30 2048000 1500
63330595 mArGoThEqUeEn C Oct. 24, 2019, 4:31 p.m. OK GNU C++17 TESTS 16 30 2048000 1500
66493024 sjd0 C Dec. 8, 2019, 9:18 a.m. OK GNU C++17 TESTS 16 30 2048000 1500
68973767 zxcv_1 C Jan. 17, 2020, 8:02 a.m. OK GNU C++17 TESTS 16 30 2048000 1500
64065989 hasit.p.bhatt C Nov. 2, 2019, 5:48 a.m. OK Go TESTS 16 46 0 1500
64065912 hasit.p.bhatt C Nov. 2, 2019, 5:46 a.m. OK Go TESTS 16 46 4505600 1500
63335609 reanimatorzon C Oct. 24, 2019, 4:55 p.m. OK Go TESTS 16 62 13926400 1500
63324561 maguroguma C Oct. 24, 2019, 4:04 p.m. OK Go TESTS 16 77 9728000 1500
63325328 fruwajacybyk C Oct. 24, 2019, 4:07 p.m. OK Go TESTS 16 77 44646400 1500
64064624 hasit.p.bhatt C Nov. 2, 2019, 5:17 a.m. OK Go TESTS 16 842 4505600 1500
68430755 Recoder C Jan. 9, 2020, 6:42 a.m. OK Go TESTS 16 873 4505600 1500
68051235 MaxHeap C Jan. 1, 2020, 6:58 p.m. OK Java 11 TESTS 16 186 0 1500
63611594 serafimkoo C Oct. 27, 2019, 5:29 p.m. OK Java 11 TESTS 16 202 0 1500
63344253 Dukkha C Oct. 24, 2019, 6:40 p.m. OK Java 11 TESTS 16 218 0 1500
68320454 YahiaMostafa C Jan. 6, 2020, 2:45 p.m. OK Java 11 TESTS 16 233 6144000 1500
63364734 cribabby C Oct. 25, 2019, 7:03 a.m. OK Java 11 TESTS 16 234 204800 1500
64330525 Anonymous C Nov. 5, 2019, 7:07 p.m. OK Java 11 TESTS 16 249 0 1500
68942970 ammaarahmad1999 C Jan. 16, 2020, 3:03 p.m. OK Java 11 TESTS 16 265 0 1500
66735071 shsc C Dec. 12, 2019, 6:29 p.m. OK Java 11 TESTS 16 296 0 1500
63330161 r.zay699 C Oct. 24, 2019, 4:29 p.m. OK Java 11 TESTS 16 296 0 1500
63738328 TheSawan C Oct. 29, 2019, 4:03 p.m. OK Java 11 TESTS 16 358 18636800 1500
63354318 Clowyy C Oct. 25, 2019, 1:07 a.m. OK Java 8 TESTS 16 124 0 1500
63344882 p_unit C Oct. 24, 2019, 6:53 p.m. OK Java 8 TESTS 16 124 0 1500
63342629 phantom11 C Oct. 24, 2019, 6:08 p.m. OK Java 8 TESTS 16 124 0 1500
63339383 gaidash C Oct. 24, 2019, 5:18 p.m. OK Java 8 TESTS 16 124 0 1500
63338586 aminul C Oct. 24, 2019, 5:10 p.m. OK Java 8 TESTS 16 124 0 1500
63328799 elkadymohammed01 C Oct. 24, 2019, 4:22 p.m. OK Java 8 TESTS 16 139 0 1500
69543155 beginner1010 C Jan. 25, 2020, 11:16 p.m. OK Java 8 TESTS 16 139 0 1500
63731848 o.radwan C Oct. 29, 2019, 2:15 p.m. OK Java 8 TESTS 16 139 0 1500
63342000 prem_cse C Oct. 24, 2019, 5:56 p.m. OK Java 8 TESTS 16 139 0 1500
63335558 eng_hardik C Oct. 24, 2019, 4:55 p.m. OK Java 8 TESTS 16 139 0 1500
63389586 Android31 C Oct. 25, 2019, 2:47 p.m. OK JavaScript TESTS 16 248 28364800 1500
63356513 Spheniscine C Oct. 25, 2019, 3 a.m. OK Kotlin TESTS 16 140 0 1500
64581379 IsTinG C Nov. 9, 2019, 12:12 p.m. OK Kotlin TESTS 16 295 921600 1500
65614997 yuranich C Nov. 24, 2019, 2:51 a.m. OK Kotlin TESTS 16 312 204800 1500
65891982 treasuryonly C Nov. 28, 2019, 3:55 a.m. OK Mono C# TESTS 16 62 4096000 1500
65321979 tycyd C Nov. 18, 2019, 8:26 p.m. OK Mono C# TESTS 16 93 6553600 1500
69451533 mban259 C Jan. 24, 2020, 6:27 a.m. OK Mono C# TESTS 16 93 7577600 1500
63323234 chika0707 C Oct. 24, 2019, 3:59 p.m. OK Mono C# TESTS 16 124 11366400 1500
65167603 Tan42 C Nov. 16, 2019, 1:55 p.m. OK Mono C# TESTS 16 904 3788800 1500
69843918 ngtkana C Jan. 30, 2020, 1:52 p.m. OK Mono C# TESTS 16 1044 12902400 1500
64864182 vjudge4 C Nov. 14, 2019, 5:09 a.m. OK MS C++ TESTS 16 30 921600 1500
63785773 yanghuimin C Oct. 30, 2019, 12:17 p.m. OK MS C++ TESTS 16 31 1228800 1500
63417047 vjudge2 C Oct. 26, 2019, 4:49 a.m. OK MS C++ TESTS 16 46 2662400 1500
65624947 vjudge1 C Nov. 24, 2019, 7:38 a.m. OK MS C++ TESTS 16 46 4096000 1500
68842659 vjudge2 C Jan. 15, 2020, 6:21 a.m. OK MS C++ TESTS 16 61 1024000 1500
63533668 vjudge1 C Oct. 27, 2019, 7:27 a.m. OK MS C++ TESTS 16 61 1638400 1500
63420047 vjudge1 C Oct. 26, 2019, 6:05 a.m. OK MS C++ TESTS 16 61 1945600 1500
66439560 vjudge4 C Dec. 7, 2019, 7:28 a.m. OK MS C++ TESTS 16 61 1945600 1500
63516342 vjudge2 C Oct. 27, 2019, 12:46 a.m. OK MS C++ TESTS 16 62 921600 1500
63731385 vjudge4 C Oct. 29, 2019, 2:08 p.m. OK MS C++ TESTS 16 62 921600 1500
63701123 dbelov C Oct. 29, 2019, 7:22 a.m. OK MS C++ 2017 TESTS 16 31 2560000 1500
63962749 manofreality C Nov. 1, 2019, 5:58 a.m. OK MS C++ 2017 TESTS 16 46 614400 1500
69399259 scorpiowf C Jan. 23, 2020, 7:45 a.m. OK MS C++ 2017 TESTS 16 46 614400 1500
63492446 G_MIHAI C Oct. 26, 2019, 2:43 p.m. OK MS C++ 2017 TESTS 16 46 921600 1500
63978287 milutin_ C Nov. 1, 2019, 9:17 a.m. OK MS C++ 2017 TESTS 16 46 1126400 1500
68666158 vjudge5 C Jan. 12, 2020, 3:12 p.m. OK MS C++ 2017 TESTS 16 46 2150400 1500
63372022 pmitkov C Oct. 25, 2019, 9:42 a.m. OK MS C++ 2017 TESTS 16 46 2867200 1500
63720406 dbelov C Oct. 29, 2019, 11:12 a.m. OK MS C++ 2017 TESTS 16 61 1126400 1500
63920578 Still_Theory C Oct. 31, 2019, 11:35 a.m. OK MS C++ 2017 TESTS 16 61 1536000 1500
68612598 vjudge3 C Jan. 11, 2020, 4:16 p.m. OK MS C++ 2017 TESTS 16 61 1536000 1500
63645592 alex223 C Oct. 28, 2019, 9:33 a.m. OK PyPy 2 TESTS 16 218 21606400 1500
63644881 alex223 C Oct. 28, 2019, 9:20 a.m. OK PyPy 2 TESTS 16 218 22323200 1500
63643642 alex223 C Oct. 28, 2019, 8:55 a.m. OK PyPy 2 TESTS 16 233 20275200 1500
63645474 alex223 C Oct. 28, 2019, 9:31 a.m. OK PyPy 2 TESTS 16 249 21606400 1500
63644573 alex223 C Oct. 28, 2019, 9:14 a.m. OK PyPy 2 TESTS 16 264 23142400 1500
63329920 your_Daddy___ C Oct. 24, 2019, 4:28 p.m. OK PyPy 2 TESTS 16 265 15052800 1500
63644545 alex223 C Oct. 28, 2019, 9:13 a.m. OK PyPy 2 TESTS 16 265 23142400 1500
68755211 aaa_bbb_ccc C Jan. 14, 2020, 8:03 a.m. OK PyPy 2 TESTS 16 296 11264000 1500
63339776 raj1307 C Oct. 24, 2019, 5:22 p.m. OK PyPy 2 TESTS 16 327 22425600 1500
65908216 yumtam C Nov. 28, 2019, 11:53 a.m. OK PyPy 2 TESTS 16 342 8601600 1500
64777036 HarendraSingh22 C Nov. 13, 2019, 5:07 a.m. OK PyPy 3 TESTS 16 248 20070400 1500
64776960 HarendraSingh22 C Nov. 13, 2019, 5:04 a.m. OK PyPy 3 TESTS 16 249 20070400 1500
64776921 HarendraSingh22 C Nov. 13, 2019, 5:03 a.m. OK PyPy 3 TESTS 16 249 20582400 1500
63373920 pyduper C Oct. 25, 2019, 10:22 a.m. OK PyPy 3 TESTS 16 264 22732800 1500
63339649 rajat_2548 C Oct. 24, 2019, 5:20 p.m. OK PyPy 3 TESTS 16 265 22732800 1500
63326582 O_Ramanujan C Oct. 24, 2019, 4:13 p.m. OK PyPy 3 TESTS 16 280 19660800 1500
68771066 tamato C Jan. 14, 2020, 11:52 a.m. OK PyPy 3 TESTS 16 280 23040000 1500
63329365 syphon C Oct. 24, 2019, 4:25 p.m. OK PyPy 3 TESTS 16 295 16691200 1500
63328084 Akash_123 C Oct. 24, 2019, 4:19 p.m. OK PyPy 3 TESTS 16 295 25804800 1500
69867323 mitribunskiy C Jan. 30, 2020, 9:07 p.m. OK PyPy 3 TESTS 16 296 27340800 1500
64367802 Mike10 C Nov. 6, 2019, 1:29 p.m. OK Python 2 TESTS 16 389 4505600 1500
63325305 piyush.ravi C Oct. 24, 2019, 4:07 p.m. OK Python 2 TESTS 16 483 7577600 1500
63354795 ashashwat C Oct. 25, 2019, 1:35 a.m. OK Python 2 TESTS 16 561 10342400 1500
63322372 shubhankarsharma00 C Oct. 24, 2019, 3:56 p.m. OK Python 2 TESTS 16 592 9830400 1500
63395314 orailly C Oct. 25, 2019, 4:29 p.m. OK Python 3 TESTS 16 249 4300800 1500
64777048 HarendraSingh22 C Nov. 13, 2019, 5:08 a.m. OK Python 3 TESTS 16 327 7577600 1500
64777067 HarendraSingh22 C Nov. 13, 2019, 5:08 a.m. OK Python 3 TESTS 16 342 7577600 1500
64583839 shozy C Nov. 9, 2019, 12:50 p.m. OK Python 3 TESTS 16 358 2662400 1500
63690663 Salmonize C Oct. 29, 2019, 2:22 a.m. OK Python 3 TESTS 16 358 5529600 1500
68415784 vegetablesandwich C Jan. 8, 2020, 6:49 p.m. OK Python 3 TESTS 16 389 7065600 1500
64776933 HarendraSingh22 C Nov. 13, 2019, 5:03 a.m. OK Python 3 TESTS 16 389 7577600 1500
63512030 TheMisfits C Oct. 26, 2019, 9:05 p.m. OK Python 3 TESTS 16 404 6553600 1500
63336933 LaPatate C Oct. 24, 2019, 5:01 p.m. OK Python 3 TESTS 16 404 8908800 1500
63323367 duguqiubai3 C Oct. 24, 2019, 4 p.m. OK Python 3 TESTS 16 405 2150400 1500
63322591 old_boo C Oct. 24, 2019, 3:57 p.m. OK Ruby TESTS 16 202 21811200 1500
63323392 alpha_virginis C Oct. 24, 2019, 4 p.m. OK Rust TESTS 16 46 16384000 1500
69509652 akiradeveloper C Jan. 25, 2020, 10:02 a.m. OK Rust TESTS 16 78 15462400 1500
65426020 yuya178 C Nov. 20, 2019, 10:43 a.m. OK Rust TESTS 16 171 9728000 1500

remove filters

Back to search problems