Divide by Zero 2021 and Codeforces Round 714 (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
1513 Divide by Zero 2021 and Codeforces Round 714 (Div. 2) FINISHED False 7200 119028263 April 11, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14553 ) C Add One PROGRAMMING dp matrices

B'You are given an integer n . You have to apply m operations to it. In a single operation, you must replace every digit d of the number with the decimal representation of integer d + 1 . For example, 1912 becomes 21023 after applying the operation once. You have to find the length of n after applying m operations. Since the answer can be very large, print it modulo 10^9+7 . The first line contains a single integer t ( 1 <= t <= 2 cdot 10^5 ) -- the number of test cases. The only line of each test case contains two integers n ( 1 <= n <= 10^9 ) and m ( 1 <= m <= 2 cdot 10^5 ) -- the initial number and the number of operations. For each test case output the length of the resulting number modulo 10^9+7 . For the first test, 1912 becomes 21023 after 1 operation which is of length 5 . For the second test, 5 becomes 21 after 6 operations which is of length 2 . For the third test, 999 becomes 101010 after 1 operation which is of length 6 . For the fourth test, 88 becomes 1010 after 2 operations which is of length 4 . '...

Tutorials

Divide by Zero 2021 and Codeforces Round #714 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
112727949 eastnman C April 11, 2021, 9:10 p.m. OK Delphi TESTS 21 826 161177600
112733021 ruban C April 12, 2021, 1:01 a.m. OK FPC TESTS 21 997 130560000
112726962 zeust C April 11, 2021, 8:44 p.m. OK GNU C11 TESTS 21 841 8806400
112741479 fishcathu. C April 12, 2021, 3:18 a.m. OK GNU C++11 TESTS 21 93 8806400
112740642 fishcathu. C April 12, 2021, 2:56 a.m. OK GNU C++11 TESTS 21 109 8806400
112731807 18Michael C April 11, 2021, 11:59 p.m. OK GNU C++11 TESTS 21 124 614400
112749821 lalahanhan C April 12, 2021, 5:53 a.m. OK GNU C++11 TESTS 21 124 819200
112743461 yue_guang C April 12, 2021, 4:01 a.m. OK GNU C++11 TESTS 21 124 819200
112740886 prodipdatta7 C April 12, 2021, 3:02 a.m. OK GNU C++11 TESTS 21 124 819200
112740267 Epiphanyi C April 12, 2021, 2:46 a.m. OK GNU C++11 TESTS 21 124 1433600
112732161 xuchi C April 12, 2021, 12:18 a.m. OK GNU C++11 TESTS 21 124 3276800
112740932 cloudmood C April 12, 2021, 3:04 a.m. OK GNU C++11 TESTS 21 140 819200
112713831 ljzsky C April 11, 2021, 5:22 p.m. OK GNU C++11 TESTS 21 140 819200
112736695 George1123 C April 12, 2021, 1:58 a.m. OK GNU C++14 TESTS 21 140 819200
112741060 martinezdiego C April 12, 2021, 3:07 a.m. OK GNU C++14 TESTS 21 155 819200
112711599 cwc-cwc C April 11, 2021, 5:07 p.m. OK GNU C++14 TESTS 21 155 819200
112747129 aadi786 C April 12, 2021, 5:12 a.m. OK GNU C++14 TESTS 21 156 819200
112744222 masud458 C April 12, 2021, 4:17 a.m. OK GNU C++14 TESTS 21 156 819200
112736886 byteeplus C April 12, 2021, 2:05 a.m. OK GNU C++14 TESTS 21 156 1638400
112733423 carre C April 12, 2021, 1:19 a.m. OK GNU C++14 TESTS 21 170 7987200
112729557 Ola.Abdallah C April 11, 2021, 10:04 p.m. OK GNU C++14 TESTS 21 171 819200
112743450 yue_guang C April 12, 2021, 4:01 a.m. OK GNU C++14 TESTS 21 171 819200
112731610 rupa6 C April 11, 2021, 11:48 p.m. OK GNU C++14 TESTS 21 171 819200
112726479 ChNBSQNF C April 11, 2021, 8:32 p.m. OK GNU C++17 TESTS 21 62 10137600
112748604 ORZWSL C April 12, 2021, 5:35 a.m. OK GNU C++17 TESTS 21 140 819200
112732961 PaceMak1r C April 12, 2021, 12:58 a.m. OK GNU C++17 TESTS 21 140 819200
112732901 PaceMak1r C April 12, 2021, 12:56 a.m. OK GNU C++17 TESTS 21 140 819200
112717687 harshsri2807 C April 11, 2021, 6:05 p.m. OK GNU C++17 TESTS 21 140 819200
112713985 jakubd C April 11, 2021, 5:24 p.m. OK GNU C++17 TESTS 21 140 819200
112713663 jakubd C April 11, 2021, 5:21 p.m. OK GNU C++17 TESTS 21 140 819200
112725575 yagnesh_gehlot C April 11, 2021, 8:11 p.m. OK GNU C++17 TESTS 21 155 819200
112714524 jlallas384 C April 11, 2021, 5:29 p.m. OK GNU C++17 TESTS 21 155 819200
112712959 RobinPH C April 11, 2021, 5:15 p.m. OK GNU C++17 TESTS 21 155 819200
112721596 Masum_Billa_19 C April 11, 2021, 7 p.m. OK GNU C++17 (64) TESTS 21 109 1638400
112739945 lPADORUlPADORUlPADORU C April 12, 2021, 2:36 a.m. OK GNU C++17 (64) TESTS 21 109 7987200
112750015 nomad_heart C April 12, 2021, 5:56 a.m. OK GNU C++17 (64) TESTS 21 124 819200
112741532 lPADORUlPADORUlPADORU C April 12, 2021, 3:20 a.m. OK GNU C++17 (64) TESTS 21 124 819200
112716516 ScarletS C April 11, 2021, 5:51 p.m. OK GNU C++17 (64) TESTS 21 124 819200
112712079 _DaNeK_ C April 11, 2021, 5:10 p.m. OK GNU C++17 (64) TESTS 21 124 819200
112742673 dev05 C April 12, 2021, 3:45 a.m. OK GNU C++17 (64) TESTS 21 124 1638400
112706400 7oSkaaa C April 11, 2021, 4:26 p.m. OK GNU C++17 (64) TESTS 21 124 3072000
112725786 iimmortal C April 11, 2021, 8:15 p.m. OK GNU C++17 (64) TESTS 21 124 9113600
112746972 raghhavdturki C April 12, 2021, 5:09 a.m. OK GNU C++17 (64) TESTS 21 124 17612800
112703623 hulk_man C April 11, 2021, 4:17 p.m. OK Java 11 TESTS 21 280 0
112731224 iamavalon C April 11, 2021, 11:28 p.m. OK Java 11 TESTS 21 280 5529600
112742757 pathakbaba C April 12, 2021, 3:46 a.m. OK Java 11 TESTS 21 343 921600
112726988 Andwerp C April 11, 2021, 8:45 p.m. OK Java 11 TESTS 21 358 0
112701726 devil_the_coder C April 11, 2021, 4:11 p.m. OK Java 11 TESTS 21 374 0
112743507 Lelouch_1 C April 12, 2021, 4:02 a.m. OK Java 11 TESTS 21 390 17715200
112706870 decoder_1671 C April 11, 2021, 4:27 p.m. OK Java 11 TESTS 21 421 50585600
112707818 vineet16 C April 11, 2021, 4:30 p.m. OK Java 11 TESTS 21 436 17920000
112720140 saurabh_kl C April 11, 2021, 6:38 p.m. OK Java 11 TESTS 21 482 5222400
112729478 BlueBirdie C April 11, 2021, 10:01 p.m. OK Java 11 TESTS 21 530 18534400
112744538 sharma.arjit07 C April 12, 2021, 4:24 a.m. OK Java 8 TESTS 21 202 0
112741526 aggarwalanshul01 C April 12, 2021, 3:19 a.m. OK Java 8 TESTS 21 265 0
112718689 naveenkant227 C April 11, 2021, 6:18 p.m. OK Java 8 TESTS 21 265 0
112717591 This_is_the_one C April 11, 2021, 6:04 p.m. OK Java 8 TESTS 21 280 0
112715104 rhl_punia C April 11, 2021, 5:35 p.m. OK Java 8 TESTS 21 280 4096000
112736607 Zahid_Hasan_Sahin C April 12, 2021, 1:55 a.m. OK Java 8 TESTS 21 280 10854400
112709604 guru1603 C April 11, 2021, 4:34 p.m. OK Java 8 TESTS 21 296 0
112730106 mareshkau C April 11, 2021, 10:28 p.m. OK Java 8 TESTS 21 296 6963200
112730079 mareshkau C April 11, 2021, 10:27 p.m. OK Java 8 TESTS 21 296 6963200
112748212 yashpandey73 C April 12, 2021, 5:29 a.m. OK Java 8 TESTS 21 296 12492800
112742076 pallav12 C April 12, 2021, 3:32 a.m. OK Kotlin TESTS 21 373 17920000
112702402 DMN C April 11, 2021, 4:13 p.m. OK Mono C# TESTS 21 405 20275200
112716231 zhangminchen C April 11, 2021, 5:48 p.m. OK MS C++ 2017 TESTS 21 218 8806400
112719713 svr2kos2 C April 11, 2021, 6:32 p.m. OK MS C++ 2017 TESTS 21 234 3584000
112744684 Bulysky C April 12, 2021, 4:27 a.m. OK MS C++ 2017 TESTS 21 249 1638400
112711993 Gravekper C April 11, 2021, 5:09 p.m. OK MS C++ 2017 TESTS 21 452 13516800
112703985 UlookE C April 11, 2021, 4:18 p.m. OK MS C++ 2017 TESTS 21 577 16076800
112711779 dingzhao777 C April 11, 2021, 5:08 p.m. OK MS C++ 2017 TESTS 21 592 48128000
112711332 Izeytee C April 11, 2021, 5:05 p.m. OK MS C++ 2017 TESTS 21 670 15974400
112741055 porridge_tl C April 12, 2021, 3:07 a.m. OK MS C++ 2017 TESTS 21 685 177971200
112716459 zhangminchen C April 11, 2021, 5:50 p.m. OK MS C++ 2017 TESTS 21 810 16281600
112743102 FLself C April 12, 2021, 3:53 a.m. OK MS C++ 2017 TESTS 21 904 819200
112706868 Yupiteru C April 11, 2021, 4:27 p.m. OK .NET Core C# TESTS 21 218 14438400
112705725 tennisru C April 11, 2021, 4:23 p.m. OK Node.js TESTS 21 998 55910400
112718157 Darooha C April 11, 2021, 6:11 p.m. OK Ocaml TESTS 21 951 112332800
112743771 shiviDON C April 12, 2021, 4:07 a.m. OK PyPy 2 TESTS 21 249 13414400
112730352 kagu C April 11, 2021, 10:41 p.m. OK PyPy 2 TESTS 21 577 48332800
112705109 Gaurav1 C April 11, 2021, 4:22 p.m. OK PyPy 2 TESTS 21 592 22118400
112730289 kagu C April 11, 2021, 10:38 p.m. OK PyPy 2 TESTS 21 639 49254400
112712442 beethoven97 C April 11, 2021, 5:12 p.m. OK PyPy 2 TESTS 21 763 42905600
112732327 nitish420 C April 12, 2021, 12:28 a.m. OK PyPy 3 TESTS 21 280 15155200
112743058 uttharapally.chandra C April 12, 2021, 3:52 a.m. OK PyPy 3 TESTS 21 296 15564800
112746401 ___dreamer__ C April 12, 2021, 4:59 a.m. OK PyPy 3 TESTS 21 326 27545600
112703722 Terryobeyes C April 11, 2021, 4:17 p.m. OK PyPy 3 TESTS 21 327 15564800
112728957 vvedant99 C April 11, 2021, 9:42 p.m. OK PyPy 3 TESTS 21 342 14950400
112711491 not_tehlka C April 11, 2021, 5:06 p.m. OK PyPy 3 TESTS 21 342 26316800
112746302 ___dreamer__ C April 12, 2021, 4:57 a.m. OK PyPy 3 TESTS 21 374 27545600
112712526 ZoeCUR C April 11, 2021, 5:13 p.m. OK PyPy 3 TESTS 21 389 35225600
112719890 reddevil100 C April 11, 2021, 6:35 p.m. OK PyPy 3 TESTS 21 420 15564800
112723066 ksd_3 C April 11, 2021, 7:24 p.m. OK PyPy 3 TESTS 21 452 40857600

remove filters

Back to search problems