Codeforces Round 567 (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
1181 Codeforces Round 567 (Div. 2) FINISHED False 7200 171145499 June 16, 2019, 9:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6323 ) B Split a Number PROGRAMMING greedy implementation strings 1500

B'Dima worked all day and wrote down on a long paper strip his favorite number n consisting of l digits. Unfortunately, the strip turned out to be so long that it didn 't fit in the Dima 's bookshelf. To solve the issue, Dima decided to split the strip into two non-empty parts so that each of them contains a positive integer without leading zeros. After that he will compute the sum of the two integers and write it down on a new strip. Dima wants the resulting integer to be as small as possible, because it increases the chances that the sum will fit it in the bookshelf. Help Dima decide what is the minimum sum he can obtain. The first line contains a single integer l ( 2 <= l <= 100 ,000 ) -- the length of the Dima 's favorite number. The second line contains the positive integer n initially written on the strip: the Dima 's favorite number. The integer n consists of exactly l digits and it does not contain leading zeros. Dima guarantees, that there is at least one valid way to split the strip. Print a single integer -- the smallest number Dima can obtain. In the first example Dima can split the number 1234567 into integers 1234 and 567 . Their sum is 1801 . In the second example Dima can split the number 101 into integers 10 and 1 . Their sum is 11 . Note that it is impossible to split the strip into "1" and "01" since the numbers can 't start with zeros. '...

Tutorials

Editorial of Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
55648004 champion812r B June 16, 2019, 1:09 p.m. OK Clang++17 Diagnostics TESTS 24 61 15769600 1500
55709901 denkora B June 18, 2019, 9:45 a.m. OK Clang++17 Diagnostics TESTS 25 202 18022400 1500
55645376 jiangly B June 16, 2019, 12:06 p.m. OK Clang++17 Diagnostics TESTS 24 218 16076800 1500
57573667 asdfghjklqqq B July 23, 2019, 6:15 a.m. OK Clang++17 Diagnostics TESTS 25 233 16691200 1500
55686402 Gassa B June 17, 2019, 3:43 p.m. OK D TESTS 25 327 4198400 1500
55634345 tuziemon B June 16, 2019, 10:39 a.m. OK D TESTS 24 327 4198400 1500
55686230 Gassa B June 17, 2019, 3:38 p.m. OK D TESTS 25 343 4198400 1500
55633772 ZJH111111 B June 16, 2019, 10:35 a.m. OK FPC TESTS 24 217 4300800 1500
55637208 leedinh B June 16, 2019, 10:54 a.m. OK FPC TESTS 24 421 1228800 1500
55637104 TShT B June 16, 2019, 10:54 a.m. OK FPC TESTS 24 857 921600 1500
55679122 Mary_super_star B June 17, 2019, 12:05 p.m. OK GNU C11 TESTS 25 233 2048000 1500
55639403 kernel.bin B June 16, 2019, 11:08 a.m. OK GNU C11 TESTS 24 234 2764800 1500
61061952 nikhilreddy123 B Sept. 22, 2019, 9:45 a.m. OK GNU C11 TESTS 25 249 716800 1500
55635004 pengin_2000 B June 16, 2019, 10:42 a.m. OK GNU C11 TESTS 24 265 716800 1500
55864342 kpranjal2047 B June 21, 2019, 11:16 a.m. OK GNU C11 TESTS 25 1856 921600 1500
55638805 notdeatheater B June 16, 2019, 11:04 a.m. OK GNU C++11 TESTS 24 30 716800 1500
55640418 jainsiddhartha B June 16, 2019, 11:14 a.m. OK GNU C++11 TESTS 24 30 716800 1500
55638876 white_space B June 16, 2019, 11:04 a.m. OK GNU C++11 TESTS 24 30 716800 1500
55653991 kikoawesome B June 16, 2019, 4:07 p.m. OK GNU C++11 TESTS 24 30 819200 1500
55826018 bisht_please B June 20, 2019, 10:54 a.m. OK GNU C++11 TESTS 25 30 819200 1500
60217554 Prof_BL B Sept. 7, 2019, 12:22 p.m. OK GNU C++11 TESTS 25 30 1024000 1500
55646423 Andsc B June 16, 2019, 12:27 p.m. OK GNU C++11 TESTS 24 30 1126400 1500
55631378 Hash B June 16, 2019, 10:23 a.m. OK GNU C++11 TESTS 24 30 2355200 1500
55646947 FlyInTheSky B June 16, 2019, 12:41 p.m. OK GNU C++11 TESTS 24 30 2560000 1500
55630663 spacevortex B June 16, 2019, 10:19 a.m. OK GNU C++11 TESTS 24 30 2662400 1500
55633755 animalfarm B June 16, 2019, 10:35 a.m. OK GNU C++14 TESTS 24 15 409600 1500
56711880 abhi_1 B July 8, 2019, 1:02 p.m. OK GNU C++14 TESTS 25 15 409600 1500
55655181 0wner B June 16, 2019, 4:51 p.m. OK GNU C++14 TESTS 24 15 614400 1500
55690294 srinivas1999 B June 17, 2019, 5:47 p.m. OK GNU C++14 TESTS 25 15 716800 1500
55690106 custard_apple B June 17, 2019, 5:41 p.m. OK GNU C++14 TESTS 25 15 716800 1500
55691260 rocky_mars B June 17, 2019, 6:19 p.m. OK GNU C++14 TESTS 25 15 716800 1500
56058904 eidan B June 26, 2019, 3:35 a.m. OK GNU C++14 TESTS 25 15 716800 1500
58184237 Golden B Aug. 2, 2019, 4:27 p.m. OK GNU C++14 TESTS 25 15 716800 1500
58988401 rfpermen B Aug. 18, 2019, 8:09 a.m. OK GNU C++14 TESTS 25 15 716800 1500
69396062 vjudge3 B Jan. 23, 2020, 6:22 a.m. OK GNU C++14 TESTS 25 15 716800 1500
55665315 qsh17 B June 17, 2019, 3:02 a.m. OK GNU C++17 TESTS 25 15 307200 1500
63406793 Taaha B Oct. 25, 2019, 8:51 p.m. OK GNU C++17 TESTS 25 15 307200 1500
55645126 rebecacalazans B June 16, 2019, 12:03 p.m. OK GNU C++17 TESTS 24 15 307200 1500
55629626 Denchik888 B June 16, 2019, 10:14 a.m. OK GNU C++17 TESTS 24 15 409600 1500
59445840 RamJagannath B Aug. 25, 2019, 1:18 p.m. OK GNU C++17 TESTS 25 15 409600 1500
55695019 2bcn B June 17, 2019, 8:57 p.m. OK GNU C++17 TESTS 25 15 512000 1500
55667506 ramm21 B June 17, 2019, 5:17 a.m. OK GNU C++17 TESTS 25 15 512000 1500
55675238 Konsora B June 17, 2019, 10:02 a.m. OK GNU C++17 TESTS 25 15 614400 1500
55664679 vjudge4 B June 17, 2019, 2:18 a.m. OK GNU C++17 TESTS 25 15 614400 1500
55661860 ac517 B June 16, 2019, 10:02 p.m. OK GNU C++17 TESTS 24 15 614400 1500
60462768 sighduck B Sept. 12, 2019, 9:58 p.m. OK Go TESTS 25 109 7065600 1500
55651380 mikolaychuknn B June 16, 2019, 2:44 p.m. OK Go TESTS 24 530 0 1500
66668399 Shirley_lf B Dec. 12, 2019, 8:12 a.m. OK Java 11 TESTS 25 1903 307200 1500
66669116 Shirley_lf B Dec. 12, 2019, 8:30 a.m. OK Java 11 TESTS 25 1918 0 1500
55854758 arch_abs B June 21, 2019, 6:25 a.m. OK Java 8 TESTS 25 108 0 1500
55721253 4mda4mda B June 18, 2019, 3:24 p.m. OK Java 8 TESTS 25 108 0 1500
55677669 amolpratap007 B June 17, 2019, 11:21 a.m. OK Java 8 TESTS 25 109 0 1500
55633705 Drona1233 B June 16, 2019, 10:35 a.m. OK Java 8 TESTS 24 109 0 1500
68677923 Mahakarma B Jan. 12, 2020, 7:39 p.m. OK Java 8 TESTS 25 124 0 1500
55695176 Vishal_dhanani B June 17, 2019, 9:06 p.m. OK Java 8 TESTS 25 124 0 1500
55686956 aloogajar B June 17, 2019, 3:58 p.m. OK Java 8 TESTS 25 124 0 1500
55680493 puzink B June 17, 2019, 12:47 p.m. OK Java 8 TESTS 25 124 0 1500
55647714 beroul B June 16, 2019, 1:01 p.m. OK Java 8 TESTS 24 124 0 1500
55641889 -messi- B June 16, 2019, 11:23 a.m. OK Java 8 TESTS 24 124 0 1500
55643623 pavlo.liapota B June 16, 2019, 11:33 a.m. OK Kotlin TESTS 24 171 819200 1500
55664200 seirion B June 17, 2019, 1:41 a.m. OK Kotlin TESTS 25 1013 614400 1500
55672337 seirion B June 17, 2019, 8:23 a.m. OK Kotlin TESTS 25 1013 716800 1500
55631005 RenbouPufel B June 16, 2019, 10:21 a.m. OK Kotlin TESTS 24 1122 204800 1500
55685353 demon.machine B June 17, 2019, 3:12 p.m. OK Kotlin TESTS 25 1123 204800 1500
56063753 Spheniscine B June 26, 2019, 6:53 a.m. OK Kotlin TESTS 25 1138 716800 1500
56063659 Spheniscine B June 26, 2019, 6:50 a.m. OK Kotlin TESTS 25 1138 716800 1500
55717711 Antonioplay B June 18, 2019, 1:35 p.m. OK Kotlin TESTS 25 1153 512000 1500
55685877 demon.machine B June 17, 2019, 3:27 p.m. OK Kotlin TESTS 25 1154 204800 1500
55651202 seirion B June 16, 2019, 2:39 p.m. OK Kotlin TESTS 24 1326 204800 1500
55797732 maxkh B June 19, 2019, 6:14 p.m. OK Mono C# TESTS 25 62 3481600 1500
55647506 og.kostya B June 16, 2019, 12:55 p.m. OK Mono C# TESTS 24 62 3584000 1500
55635830 orloffm B June 16, 2019, 10:47 a.m. OK Mono C# TESTS 24 62 5632000 1500
55634359 eki B June 16, 2019, 10:39 a.m. OK Mono C# TESTS 24 654 7270400 1500
55651620 vjudge2 B June 16, 2019, 2:51 p.m. OK MS C++ TESTS 24 31 614400 1500
57366737 vjudge5 B July 20, 2019, 9:26 a.m. OK MS C++ TESTS 25 31 819200 1500
57362332 vjudge2 B July 20, 2019, 8:09 a.m. OK MS C++ TESTS 25 31 819200 1500
57362202 vjudge3 B July 20, 2019, 8:07 a.m. OK MS C++ TESTS 25 31 819200 1500
55647138 stephentao333 B June 16, 2019, 12:46 p.m. OK MS C++ TESTS 24 31 819200 1500
58385740 vjudge4 B Aug. 6, 2019, 11:53 a.m. OK MS C++ TESTS 25 31 921600 1500
57933558 scorpiowf B July 29, 2019, 9:37 a.m. OK MS C++ TESTS 25 31 921600 1500
55995901 vjudge2 B June 24, 2019, 10:24 a.m. OK MS C++ TESTS 25 31 1331200 1500
55667194 MrFog B June 17, 2019, 5 a.m. OK MS C++ TESTS 25 31 3788800 1500
55640110 UoU B June 16, 2019, 11:12 a.m. OK MS C++ TESTS 24 46 307200 1500
55850507 darkest358 B June 21, 2019, 3:13 a.m. OK MS C++ 2017 TESTS 25 15 512000 1500
55633487 hwangganzi B June 16, 2019, 10:34 a.m. OK MS C++ 2017 TESTS 24 30 409600 1500
55688868 CtrlAlt B June 17, 2019, 4:58 p.m. OK MS C++ 2017 TESTS 25 30 614400 1500
58372525 vjudge3 B Aug. 6, 2019, 7:07 a.m. OK MS C++ 2017 TESTS 25 30 614400 1500
57480466 vjudge4 B July 22, 2019, 2:04 a.m. OK MS C++ 2017 TESTS 25 31 307200 1500
55645783 Kniaz B June 16, 2019, 12:14 p.m. OK MS C++ 2017 TESTS 24 31 409600 1500
55653808 AbdelkareemEmara B June 16, 2019, 4:01 p.m. OK MS C++ 2017 TESTS 24 31 409600 1500
55642386 aahcbird B June 16, 2019, 11:26 a.m. OK MS C++ 2017 TESTS 24 31 512000 1500
55645669 Jiang142857 B June 16, 2019, 12:12 p.m. OK MS C++ 2017 TESTS 24 31 512000 1500
55753969 Laaahu_ B June 19, 2019, 2:19 p.m. OK MS C++ 2017 TESTS 25 31 614400 1500
56008089 lostamok B June 24, 2019, 4:38 p.m. OK PHP TESTS 25 62 512000 1500
56747592 N0cP B July 9, 2019, 10:30 a.m. OK PyPy 2 TESTS 25 436 4300800 1500
56238866 gatsko B June 28, 2019, 5:28 p.m. OK PyPy 2 TESTS 25 577 10342400 1500
55700907 HY2018_01 B June 18, 2019, 4:01 a.m. OK PyPy 2 TESTS 25 592 7372800 1500
55683200 AryaKnight B June 17, 2019, 2:07 p.m. OK PyPy 2 TESTS 25 592 7372800 1500
55661004 fortmax120 B June 16, 2019, 9:02 p.m. OK PyPy 2 TESTS 24 592 7372800 1500
55658750 pajenegod B June 16, 2019, 7:08 p.m. OK PyPy 2 TESTS 24 592 7372800 1500
55658607 pajenegod B June 16, 2019, 7:02 p.m. OK PyPy 2 TESTS 24 592 7372800 1500
56635711 atarw B July 6, 2019, 7:21 p.m. OK PyPy 2 TESTS 25 592 9932800 1500
55679821 shehebe B June 17, 2019, 12:27 p.m. OK PyPy 2 TESTS 25 607 7270400 1500
55658664 pajenegod B June 16, 2019, 7:05 p.m. OK PyPy 2 TESTS 24 607 7372800 1500
55630533 _rdv_ B June 16, 2019, 10:19 a.m. OK PyPy 3 TESTS 24 233 8806400 1500
55728128 Mr.Inconsistent B June 18, 2019, 6:59 p.m. OK PyPy 3 TESTS 25 264 10240000 1500
55727638 TomazGomes B June 18, 2019, 6:41 p.m. OK PyPy 3 TESTS 25 342 5427200 1500
55650027 evenharder B June 16, 2019, 2:06 p.m. OK PyPy 3 TESTS 24 342 5734400 1500
55632632 hank55663 B June 16, 2019, 10:29 a.m. OK PyPy 3 TESTS 24 343 5324800 1500
55633680 Ivan_Tea B June 16, 2019, 10:35 a.m. OK PyPy 3 TESTS 24 343 5529600 1500
55631195 vaibhav2303 B June 16, 2019, 10:22 a.m. OK PyPy 3 TESTS 24 343 5529600 1500
55645698 gwq2017 B June 16, 2019, 12:12 p.m. OK PyPy 3 TESTS 24 358 5836800 1500
55664713 __Wind__ B June 17, 2019, 2:20 a.m. OK PyPy 3 TESTS 25 373 7577600 1500
55660620 aryaman B June 16, 2019, 8:41 p.m. OK PyPy 3 TESTS 24 374 9830400 1500
55636353 ajinkya1p3 B June 16, 2019, 10:49 a.m. OK Python 2 TESTS 24 670 409600 1500
55641552 shubhankarsharma00 B June 16, 2019, 11:21 a.m. OK Python 2 TESTS 24 670 2150400 1500
56480873 AlainCartaya B July 3, 2019, 4 p.m. OK Python 2 TESTS 25 685 307200 1500
55630885 recurze B June 16, 2019, 10:20 a.m. OK Python 2 TESTS 24 748 614400 1500
55690103 shyamselvaraj B June 17, 2019, 5:41 p.m. OK Python 2 TESTS 25 748 921600 1500
55646526 Mindjolt B June 16, 2019, 12:30 p.m. OK Python 2 TESTS 24 764 307200 1500
55646435 pajenegod B June 16, 2019, 12:28 p.m. OK Python 2 TESTS 24 764 307200 1500
55629485 seido B June 16, 2019, 10:14 a.m. OK Python 2 TESTS 24 779 1228800 1500
55650101 dbest077 B June 16, 2019, 2:08 p.m. OK Python 2 TESTS 24 779 1331200 1500
55640850 Rohit0718 B June 16, 2019, 11:17 a.m. OK Python 2 TESTS 24 794 409600 1500
55632431 joe_joe B June 16, 2019, 10:28 a.m. OK Python 3 TESTS 24 202 3788800 1500
55643847 spellstaker B June 16, 2019, 11:34 a.m. OK Python 3 TESTS 24 202 4300800 1500
55672308 nguyenthaihocxm1999 B June 17, 2019, 8:21 a.m. OK Python 3 TESTS 25 217 614400 1500
55674000 WildArchmage B June 17, 2019, 9:22 a.m. OK Python 3 TESTS 25 233 512000 1500
55653414 Surya1231 B June 16, 2019, 3:47 p.m. OK Python 3 TESTS 24 233 4403200 1500
55642175 amis_v B June 16, 2019, 11:25 a.m. OK Python 3 TESTS 24 233 5120000 1500
55687149 strangerBoy B June 17, 2019, 4:05 p.m. OK Python 3 TESTS 25 234 614400 1500
55651329 wythend B June 16, 2019, 2:42 p.m. OK Python 3 TESTS 24 249 819200 1500
55667625 Cubgl B June 17, 2019, 5:22 a.m. OK Python 3 TESTS 25 280 3072000 1500
55873055 brosucks B June 21, 2019, 3:49 p.m. OK Python 3 TESTS 25 296 512000 1500
63082446 koikotya B Oct. 21, 2019, 3:32 p.m. OK Ruby TESTS 25 1263 2457600 1500
55630471 rinzu B June 16, 2019, 10:18 a.m. OK Ruby TESTS 24 1590 2457600 1500
55638585 fshuto B June 16, 2019, 11:03 a.m. OK Ruby TESTS 24 1856 1638400 1500
55681270 andreyrmg B June 17, 2019, 1:11 p.m. OK Rust TESTS 25 31 409600 1500
55708324 clrcldy B June 18, 2019, 8:53 a.m. OK Rust TESTS 25 31 1638400 1500
55662184 smas B June 16, 2019, 10:27 p.m. OK Scala TESTS 24 1606 307200 1500

remove filters

Back to search problems