Codeforces Round 427 (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
835 Codeforces Round 427 (Div. 2) FINISHED False 7200 236013923 July 31, 2017, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11104 ) B The number on the board PROGRAMMING greedy 1100

B"Some natural number was written on the board. Its sum of digits was not less than k. But you were distracted a bit, and someone changed this number to n, replacing some digits with others. It's known that the length of the number didn't change. You have to find the minimum number of digits in which these two numbers can differ. The first line contains integer k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The second line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89< xe2 x80 x8910100000). There are no leading zeros in n. It's guaranteed that this situation is possible. Print the minimum number of digits in which the initial number and n can differ. In the first example, the initial number could be 12. In the second example the sum of the digits of n is not less than k. The initial number could be equal to n. "...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
43385384 Albertofs95 B Sept. 24, 2018, 7:50 p.m. OK Clang++17 Diagnostics TESTS 48 46 4915200 1100
43387505 Albertofs95 B Sept. 24, 2018, 9:15 p.m. OK Clang++17 Diagnostics TESTS 48 46 4915200 1100
43392533 JacoboCruz B Sept. 25, 2018, 2:33 a.m. OK Clang++17 Diagnostics TESTS 48 93 16179200 1100
29376787 i1720.Hades B Aug. 12, 2017, 12:08 p.m. OK FPC TESTS 48 15 2150400 1100
29132893 tin_ibig B Aug. 2, 2017, 2:24 p.m. OK FPC TESTS 48 15 2150400 1100
32329392 Or1on B Nov. 15, 2017, 11:01 a.m. OK FPC TESTS 48 15 4608000 1100
29462444 Alex1s B Aug. 14, 2017, 4:24 p.m. OK FPC TESTS 48 15 6246400 1100
29237255 Akulyat B Aug. 6, 2017, 9:09 a.m. OK FPC TESTS 48 15 6246400 1100
29085169 Dzls.NGBA_Hoch B Aug. 1, 2017, 2:21 a.m. OK FPC TESTS 48 15 6246400 1100
29071497 GhostDrag B July 31, 2017, 4:06 p.m. OK FPC TESTS 48 30 2150400 1100
29077391 T-- B July 31, 2017, 5:51 p.m. OK FPC TESTS 48 30 2252800 1100
41270356 chaorenhaha B Aug. 6, 2018, 9:50 a.m. OK FPC TESTS 48 31 1331200 1100
29308948 Grom9941 B Aug. 9, 2017, 3:23 p.m. OK FPC TESTS 48 31 1638400 1100
31822393 Dragon_fxl B Oct. 28, 2017, 2:03 a.m. OK GNU C TESTS 48 15 0 1100
30970728 griez7 B Oct. 3, 2017, 2:54 p.m. OK GNU C TESTS 48 15 0 1100
30764148 kamelkholy B Sept. 26, 2017, 10:09 p.m. OK GNU C TESTS 48 15 0 1100
32118869 yigezhe B Nov. 7, 2017, 12:25 p.m. OK GNU C TESTS 48 15 102400 1100
29591378 CShinta B Aug. 19, 2017, 7:17 a.m. OK GNU C TESTS 48 15 102400 1100
29724537 vjudge5 B Aug. 24, 2017, 7:16 a.m. OK GNU C TESTS 48 15 1024000 1100
33461701 vib_iitk B Dec. 20, 2017, 4:51 p.m. OK GNU C TESTS 48 15 1843200 1100
34269235 aniket.shrimal B Jan. 18, 2018, 7:13 a.m. OK GNU C TESTS 48 15 1945600 1100
29318240 NoSoul B Aug. 10, 2017, 5:34 a.m. OK GNU C TESTS 48 15 1945600 1100
29278362 NaiMiaNaiMiaN B Aug. 8, 2017, 5:53 a.m. OK GNU C TESTS 48 15 1945600 1100
29699590 vjudge1 B Aug. 23, 2017, 6:46 a.m. OK GNU C++ TESTS 48 15 0 1100
32332056 Z1154990071 B Nov. 15, 2017, 12:49 p.m. OK GNU C++ TESTS 48 15 0 1100
29866603 pantw B Aug. 29, 2017, 1:09 p.m. OK GNU C++ TESTS 48 15 0 1100
29699628 vjudge1 B Aug. 23, 2017, 6:48 a.m. OK GNU C++ TESTS 48 15 0 1100
29697507 vjudge3 B Aug. 23, 2017, 4:11 a.m. OK GNU C++ TESTS 48 15 0 1100
29697414 vjudge3 B Aug. 23, 2017, 4:01 a.m. OK GNU C++ TESTS 48 15 0 1100
29600655 rhdmstjr B Aug. 19, 2017, 2:19 p.m. OK GNU C++ TESTS 48 15 0 1100
31713274 vjudge5 B Oct. 25, 2017, 2:20 p.m. OK GNU C++ TESTS 48 15 102400 1100
30798175 hustoj B Sept. 28, 2017, 7:58 a.m. OK GNU C++ TESTS 48 15 102400 1100
30331036 nhho B Sept. 14, 2017, 2:35 p.m. OK GNU C++ TESTS 48 15 102400 1100
30641360 Smarta B Sept. 23, 2017, 12:31 p.m. OK GNU C11 TESTS 48 15 0 1100
29947040 xiao-xiao B Aug. 31, 2017, 2:35 p.m. OK GNU C11 TESTS 48 15 102400 1100
30692180 Ahmedbally B Sept. 24, 2017, 11:23 p.m. OK GNU C11 TESTS 48 15 1024000 1100
29111445 smiley0 B Aug. 1, 2017, 9:16 p.m. OK GNU C11 TESTS 48 15 1945600 1100
66072433 Wolve_rine B Nov. 30, 2019, 8:18 p.m. OK GNU C11 TESTS 48 31 0 1100
30242002 hongjoon0805 B Sept. 10, 2017, 9:44 a.m. OK GNU C11 TESTS 48 31 0 1100
40659182 vjudge3 B July 23, 2018, 6:11 a.m. OK GNU C11 TESTS 48 31 0 1100
69436432 ndaidemf B Jan. 23, 2020, 7:10 p.m. OK GNU C11 TESTS 48 31 102400 1100
66319561 DevJewel B Dec. 5, 2019, 1:40 p.m. OK GNU C11 TESTS 48 31 102400 1100
40672566 vjudge3 B July 23, 2018, 1:26 p.m. OK GNU C11 TESTS 48 31 102400 1100
30576849 Mihneacaz B Sept. 21, 2017, 12:18 p.m. OK GNU C++11 TESTS 48 15 0 1100
30577094 MoodyFares B Sept. 21, 2017, 12:25 p.m. OK GNU C++11 TESTS 48 15 0 1100
29912984 nyan101 B Aug. 30, 2017, 9:18 a.m. OK GNU C++11 TESTS 48 15 0 1100
30025973 lyzpm B Sept. 3, 2017, 7:05 a.m. OK GNU C++11 TESTS 48 15 0 1100
30576810 MiricaMatei B Sept. 21, 2017, 12:17 p.m. OK GNU C++11 TESTS 48 15 0 1100
30609190 Druffbaum B Sept. 22, 2017, 8:23 a.m. OK GNU C++11 TESTS 48 15 0 1100
29913650 ltg2030 B Aug. 30, 2017, 9:48 a.m. OK GNU C++11 TESTS 48 15 0 1100
31165459 20164689 B Oct. 9, 2017, 11:22 a.m. OK GNU C++11 TESTS 48 15 102400 1100
30421618 ViniciusR B Sept. 17, 2017, 12:46 p.m. OK GNU C++11 TESTS 48 15 102400 1100
30561844 krijgertje B Sept. 20, 2017, 9:13 p.m. OK GNU C++11 TESTS 48 15 102400 1100
31049157 jaydutt_patel B Oct. 5, 2017, 11:58 p.m. OK GNU C++14 TESTS 48 15 0 1100
29954672 0x01 B Aug. 31, 2017, 4:16 p.m. OK GNU C++14 TESTS 48 15 0 1100
29528729 yashar_sb_sb B Aug. 17, 2017, 2:57 p.m. OK GNU C++14 TESTS 48 15 0 1100
29505152 y0l097 B Aug. 16, 2017, 12:35 p.m. OK GNU C++14 TESTS 48 15 0 1100
30943294 Jwtay B Oct. 2, 2017, 1:04 p.m. OK GNU C++14 TESTS 48 15 102400 1100
29838988 justHusam B Aug. 28, 2017, 5:32 a.m. OK GNU C++14 TESTS 48 15 102400 1100
29667890 xlk B Aug. 21, 2017, 8:22 p.m. OK GNU C++14 TESTS 48 15 102400 1100
31287577 Mr.Tree B Oct. 14, 2017, 2:24 a.m. OK GNU C++14 TESTS 48 15 102400 1100
30409762 The_Unbeatable B Sept. 17, 2017, 5:07 a.m. OK GNU C++14 TESTS 48 15 102400 1100
29913337 notetake B Aug. 30, 2017, 9:32 a.m. OK GNU C++14 TESTS 48 15 102400 1100
59949782 shubham_01 B Sept. 3, 2019, 2:08 p.m. OK GNU C++17 TESTS 48 15 307200 1100
38441447 _Weiss B May 19, 2018, 7:39 p.m. OK GNU C++17 TESTS 48 15 512000 1100
36249117 tuantuan B March 13, 2018, 12:56 p.m. OK GNU C++17 TESTS 48 15 2867200 1100
54913724 _XDD_ B June 1, 2019, 12:33 p.m. OK GNU C++17 TESTS 48 30 102400 1100
47301481 hdsingharora99 B Dec. 20, 2018, 2:25 p.m. OK GNU C++17 TESTS 48 30 102400 1100
54915004 vjudge4 B June 1, 2019, 1:14 p.m. OK GNU C++17 TESTS 48 30 102400 1100
69644078 rached13 B Jan. 27, 2020, 11:12 p.m. OK GNU C++17 TESTS 48 30 307200 1100
57269092 manhcuong99 B July 18, 2019, 8:15 a.m. OK GNU C++17 TESTS 48 30 307200 1100
60218085 int64_t B Sept. 7, 2019, 12:33 p.m. OK GNU C++17 TESTS 48 30 307200 1100
60379765 vjudge4 B Sept. 11, 2019, 8:31 a.m. OK GNU C++17 TESTS 48 30 307200 1100
33716035 243536998 B Dec. 28, 2017, 2:13 p.m. OK GNU C++17 Diagnostics TESTS 48 1170 110080000 1100
29249570 megaspazz B Aug. 6, 2017, 10:18 p.m. OK Go TESTS 48 31 23040000 1100
66280770 tnht95 B Dec. 4, 2019, 5:09 p.m. OK Go TESTS 48 46 0 1100
43380978 dtoledo B Sept. 24, 2018, 6:12 p.m. OK Go TESTS 48 311 0 1100
29078306 Leonardone B July 31, 2017, 6:18 p.m. OK Haskell TESTS 48 62 61849600 1100
29425093 euangjyugum B Aug. 13, 2017, 6:14 a.m. OK Haskell TESTS 48 93 58675200 1100
68943077 Avi_2506 B Jan. 16, 2020, 3:05 p.m. OK Java 8 TESTS 48 109 0 1100
52464899 catforce B April 7, 2019, 3:07 p.m. OK Java 8 TESTS 48 109 0 1100
52304715 CharlesDai B April 4, 2019, 11:27 a.m. OK Java 8 TESTS 48 109 0 1100
46192270 I.A.K.O.V B Nov. 25, 2018, 6:09 a.m. OK Java 8 TESTS 48 109 0 1100
30383709 AnDDen B Sept. 16, 2017, 1:04 p.m. OK Java 8 TESTS 48 109 0 1100
30366401 odinsonThorin B Sept. 15, 2017, 3:26 p.m. OK Java 8 TESTS 48 109 0 1100
29704992 martin3 B Aug. 23, 2017, 10:59 a.m. OK Java 8 TESTS 48 109 0 1100
29217283 NeSumHaker B Aug. 5, 2017, 11:29 a.m. OK Java 8 TESTS 48 109 20275200 1100
29092845 Mr.Awesome B Aug. 1, 2017, 8:24 a.m. OK Java 8 TESTS 48 109 20275200 1100
29164322 yunyansanjin B Aug. 3, 2017, 3:50 p.m. OK Java 8 TESTS 48 109 20377600 1100
43381068 ludovic.cyril B Sept. 24, 2018, 6:14 p.m. OK JavaScript TESTS 48 46 819200 1100
43384698 TheTeraBlitz B Sept. 24, 2018, 7:33 p.m. OK JavaScript TESTS 48 62 1331200 1100
34230596 adamjking3 B Jan. 16, 2018, 7:05 p.m. OK JavaScript TESTS 48 62 11264000 1100
31261929 HamzaSla B Oct. 12, 2017, 10:58 p.m. OK Kotlin TESTS 48 139 0 1100
31699604 SlavaG B Oct. 25, 2017, 5:40 a.m. OK Kotlin TESTS 48 155 0 1100
51211060 Satellite B March 12, 2019, 7:56 a.m. OK Kotlin TESTS 48 155 0 1100
42198938 Skndr801 B Aug. 28, 2018, 7:51 a.m. OK Mono C# TESTS 48 46 921600 1100
29361902 krazyduck B Aug. 11, 2017, 6:57 p.m. OK Mono C# TESTS 48 46 9625600 1100
43391694 A00817810 B Sept. 25, 2018, 1:49 a.m. OK Mono C# TESTS 48 62 716800 1100
43810775 nemars B Oct. 5, 2018, 12:16 a.m. OK Mono C# TESTS 48 62 4096000 1100
43810743 nemars B Oct. 5, 2018, 12:14 a.m. OK Mono C# TESTS 48 62 4096000 1100
29105332 artsin666 B Aug. 1, 2017, 3:33 p.m. OK MS C# TESTS 48 46 9625600 1100
29580713 alexander9123 B Aug. 18, 2017, 5:31 p.m. OK MS C# TESTS 48 62 409600 1100
30174004 Skndr B Sept. 7, 2017, 6:55 a.m. OK MS C# TESTS 48 62 1331200 1100
30863549 og.kostya B Sept. 30, 2017, 11:30 a.m. OK MS C# TESTS 48 62 3072000 1100
32138709 xaku B Nov. 8, 2017, 12:08 p.m. OK MS C# TESTS 48 62 4710400 1100
29339092 zazak B Aug. 10, 2017, 9:52 p.m. OK MS C# TESTS 48 62 11264000 1100
29154830 vitoshacademy B Aug. 3, 2017, 12:07 p.m. OK MS C# TESTS 48 62 11264000 1100
34291752 aceeca1 B Jan. 19, 2018, 4:39 a.m. OK MS C# TESTS 48 62 12288000 1100
33437956 andrei_toader B Dec. 19, 2017, 7:27 p.m. OK MS C# TESTS 48 93 17305600 1100
29710598 Jicote B Aug. 23, 2017, 2:56 p.m. OK MS C++ TESTS 48 15 102400 1100
29826976 vjudge5 B Aug. 27, 2017, 1 p.m. OK MS C++ TESTS 48 15 204800 1100
30034631 Milena_Bulkina B Sept. 3, 2017, 12:50 p.m. OK MS C++ TESTS 48 15 204800 1100
29554331 Felix_Mate B Aug. 18, 2017, 1:32 p.m. OK MS C++ TESTS 48 15 307200 1100
30321397 Karimbz B Sept. 14, 2017, 6:37 a.m. OK MS C++ TESTS 48 15 307200 1100
29845163 vjudge1 B Aug. 28, 2017, 12:25 p.m. OK MS C++ TESTS 48 15 307200 1100
29509664 JarikLag B Aug. 16, 2017, 4:17 p.m. OK MS C++ TESTS 48 15 307200 1100
32333203 scutvj_1 B Nov. 15, 2017, 1:37 p.m. OK MS C++ TESTS 48 15 409600 1100
32333192 scutvj_1 B Nov. 15, 2017, 1:36 p.m. OK MS C++ TESTS 48 15 409600 1100
29512827 Mii-chan B Aug. 16, 2017, 7:26 p.m. OK MS C++ TESTS 48 15 409600 1100
57629579 vjudge2 B July 24, 2019, 8:18 a.m. OK MS C++ 2017 TESTS 48 31 512000 1100
58159550 vjudge4 B Aug. 2, 2019, 6:56 a.m. OK MS C++ 2017 TESTS 48 31 1024000 1100
63734098 vjudge3 B Oct. 29, 2019, 2:49 p.m. OK MS C++ 2017 TESTS 48 31 1024000 1100
58163708 vjudge1 B Aug. 2, 2019, 8:19 a.m. OK MS C++ 2017 TESTS 48 46 512000 1100
66640539 HishamDroubi B Dec. 11, 2019, 2:34 p.m. OK MS C++ 2017 TESTS 48 46 512000 1100
57629468 vjudge3 B July 24, 2019, 8:16 a.m. OK MS C++ 2017 TESTS 48 46 716800 1100
55747266 Mad112233 B June 19, 2019, 10:44 a.m. OK MS C++ 2017 TESTS 48 46 1433600 1100
29155433 s_p B Aug. 3, 2017, 12:41 p.m. OK Perl TESTS 48 93 12185600 1100
36279552 mayakin B March 14, 2018, 2:51 p.m. OK PHP TESTS 48 61 6860800 1100
29969022 skamz B Sept. 1, 2017, 10:46 a.m. OK PHP TESTS 48 109 7884800 1100
29077781 NicolasK B July 31, 2017, 6:01 p.m. OK PyPy 2 TESTS 48 78 22425600 1100
29083056 sragavan B Aug. 1, 2017, 12:06 a.m. OK PyPy 2 TESTS 48 92 22425600 1100
29690896 pluristiq B Aug. 22, 2017, 6:23 p.m. OK PyPy 2 TESTS 48 93 3481600 1100
29223987 lagarwal B Aug. 5, 2017, 5:05 p.m. OK PyPy 2 TESTS 48 108 26419200 1100
29145873 Yash_ B Aug. 3, 2017, 5:12 a.m. OK PyPy 2 TESTS 48 124 25804800 1100
43384323 duncanista B Sept. 24, 2018, 7:23 p.m. OK PyPy 2 TESTS 48 140 3686400 1100
29276623 bluejay9676 B Aug. 8, 2017, 3:12 a.m. OK PyPy 2 TESTS 48 171 28876800 1100
30786078 KienMN B Sept. 27, 2017, 6:10 p.m. OK PyPy 3 TESTS 48 140 6144000 1100
29434969 gladiator228 B Aug. 13, 2017, 1:29 p.m. OK PyPy 3 TESTS 48 140 28979200 1100
29506164 madn B Aug. 16, 2017, 1:16 p.m. OK PyPy 3 TESTS 48 155 2764800 1100
66383198 admiralmeo B Dec. 6, 2019, 6:28 a.m. OK PyPy 3 TESTS 48 155 3788800 1100
54455541 iamprayush B May 21, 2019, 3:40 p.m. OK PyPy 3 TESTS 48 155 3993600 1100
52994460 SarveshDubey B April 19, 2019, 2:29 a.m. OK PyPy 3 TESTS 48 155 7168000 1100
29146298 xhae B Aug. 3, 2017, 5:35 a.m. OK PyPy 3 TESTS 48 155 29081600 1100
29176630 ilyakooo0 B Aug. 3, 2017, 7:40 p.m. OK PyPy 3 TESTS 48 156 27750400 1100
43390180 TRS B Sept. 25, 2018, 12:13 a.m. OK PyPy 3 TESTS 48 170 6860800 1100
43382215 pablodavila B Sept. 24, 2018, 6:35 p.m. OK PyPy 3 TESTS 48 171 2867200 1100
29992929 snusmumrik B Sept. 1, 2017, 4:42 p.m. OK Python 2 TESTS 48 109 1024000 1100
29351455 cjhahaha B Aug. 11, 2017, 11:23 a.m. OK Python 2 TESTS 48 109 5939200 1100
29104820 nealzane B Aug. 1, 2017, 3:13 p.m. OK Python 2 TESTS 48 124 5222400 1100
29289957 sidharth.sindhra B Aug. 8, 2017, 4:52 p.m. OK Python 2 TESTS 48 124 5427200 1100
34841906 Jsxft B Feb. 2, 2018, 2:22 p.m. OK Python 2 TESTS 48 124 5632000 1100
34232413 KaiTand B Jan. 16, 2018, 8:34 p.m. OK Python 2 TESTS 48 124 5632000 1100
29293415 danielfleischman B Aug. 8, 2017, 8:32 p.m. OK Python 2 TESTS 48 124 5734400 1100
29427244 formicae B Aug. 13, 2017, 7:41 a.m. OK Python 2 TESTS 48 124 5836800 1100
29079752 elistark B July 31, 2017, 7:19 p.m. OK Python 2 TESTS 48 124 5836800 1100
29140046 budylin B Aug. 2, 2017, 9:02 p.m. OK Python 2 TESTS 48 124 7270400 1100
29352056 flygrounder B Aug. 11, 2017, 11:55 a.m. OK Python 3 TESTS 48 77 5939200 1100
29938122 treasuryonly B Aug. 31, 2017, 8:41 a.m. OK Python 3 TESTS 48 93 204800 1100
29778786 hungry_sprog B Aug. 25, 2017, 12:18 p.m. OK Python 3 TESTS 48 93 614400 1100
33448847 ving.xia B Dec. 20, 2017, 7:46 a.m. OK Python 3 TESTS 48 93 5939200 1100
29097819 frozenOne B Aug. 1, 2017, 11:30 a.m. OK Python 3 TESTS 48 108 5939200 1100
29544855 luke0201 B Aug. 18, 2017, 6:46 a.m. OK Python 3 TESTS 48 109 1228800 1100
29295292 GabrielSiq B Aug. 9, 2017, 12:39 a.m. OK Python 3 TESTS 48 109 5939200 1100
29097424 agw02010 B Aug. 1, 2017, 11:17 a.m. OK Python 3 TESTS 48 109 6041600 1100
29184361 pandrei B Aug. 4, 2017, 5:26 a.m. OK Python 3 TESTS 48 109 6144000 1100
29123232 Artem2001Artem B Aug. 2, 2017, 8:32 a.m. OK Python 3 TESTS 48 109 6144000 1100
29072575 hogeover30 B July 31, 2017, 4:14 p.m. OK Ruby TESTS 48 124 15769600 1100
29373236 fine_ B Aug. 12, 2017, 8:58 a.m. OK Ruby TESTS 48 124 15872000 1100
29587293 palindrom615 B Aug. 19, 2017, 3:46 a.m. OK Rust TESTS 48 15 409600 1100
29476838 Hillmouse B Aug. 15, 2017, 8:34 a.m. OK Rust TESTS 48 15 1740800 1100
29240736 IvanDyachenko B Aug. 6, 2017, 12:05 p.m. OK Scala TESTS 48 264 23654400 1100
29071380 aitch_nu B July 31, 2017, 4:05 p.m. OK Scala TESTS 48 343 23552000 1100

remove filters

Back to search problems