Codeforces Round 643 (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
1355 Codeforces Round 643 (Div. 2) FINISHED False 7200 147551063 May 16, 2020, 11:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 27005 ) A Sequence with Digits PROGRAMMING brute force implementation math 1200

B"Let's define the following recurrence: a_{n+1} = a_{n} + minDigit(a_{n}) cdot maxDigit(a_{n}). Here minDigit(x) and maxDigit(x) are the minimal and maximal digits in the decimal representation of x without leading zeroes. For examples refer to notes. Your task is calculate a_{K} for given a_{1} and K . The first line contains one integer t ( 1 <= t <= 1000 ) -- the number of independent test cases. Each test case consists of a single line containing two integers a_{1} and K ( 1 <= a_{1} <= 10^{18} , 1 <= K <= 10^{16} ) separated by a space. For each test case print one integer a_{K} on a separate line. a_{1} = 487 a_{2} = a_{1} + minDigit(a_{1}) cdot maxDigit(a_{1}) = 487 + min (4, 8, 7) cdot max (4, 8, 7) = 487 + 4 cdot 8 = 519 a_{3} = a_{2} + minDigit(a_{2}) cdot maxDigit(a_{2}) = 519 + min (5, 1, 9) cdot max (5, 1, 9) = 519 + 1 cdot 9 = 528 a_{4} = a_{3} + minDigit(a_{3}) cdot maxDigit(a_{3}) = 528 + min (5, 2, 8) cdot max (5, 2, 8) = 528 + 2 cdot 8 = 544 a_{5} = a_{4} + minDigit(a_{4}) cdot maxDigit(a_{4}) = 544 + min (5, 4, 4) cdot max (5, 4, 4) = 544 + 4 cdot 5 = 564 a_{6} = a_{5} + minDigit(a_{5}) cdot maxDigit(a_{5}) = 564 + min (5, 6, 4) cdot max (5, 6, 4) = 564 + 4 cdot 6 = 588 a_{7} = a_{6} + minDigit(a_{6}) cdot maxDigit(a_{6}) = 588 + min (5, 8, 8) cdot max (5, 8, 8) = 588 + 5 cdot 8 = 628 "...

Tutorials

Codeforces Round #643 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
80752093 vjudge3 A May 20, 2020, 7:59 a.m. OK Clang++17 Diagnostics TESTS 84 62 0 1200
80764617 vjudge2 A May 20, 2020, 10:52 a.m. OK Clang++17 Diagnostics TESTS 84 93 0 1200
80766213 vjudge3 A May 20, 2020, 11:13 a.m. OK Clang++17 Diagnostics TESTS 84 93 0 1200
80781285 Satarin A May 20, 2020, 2:31 p.m. OK GNU C11 TESTS 84 31 0 1200
81164588 vjudge4 A May 24, 2020, 10:03 a.m. OK GNU C11 TESTS 84 31 0 1200
81057275 vjudge2 A May 24, 2020, 3:13 a.m. OK GNU C11 TESTS 84 31 0 1200
81458137 Banty A May 26, 2020, 10:01 a.m. OK GNU C11 TESTS 84 31 0 1200
80649995 vjudge4 A May 19, 2020, 2:54 a.m. OK GNU C11 TESTS 84 31 0 1200
80650538 vjudge1 A May 19, 2020, 3:08 a.m. OK GNU C11 TESTS 84 31 204800 1200
81646497 Deb_Neek A May 27, 2020, 6:08 p.m. OK GNU C11 TESTS 84 31 204800 1200
80649139 vjudge2 A May 19, 2020, 2:31 a.m. OK GNU C11 TESTS 84 31 204800 1200
80740677 AB_Turjo A May 20, 2020, 4:47 a.m. OK GNU C11 TESTS 84 31 307200 1200
80742532 sushmitap247 A May 20, 2020, 5:29 a.m. OK GNU C11 TESTS 84 31 307200 1200
81473200 18380120126 A May 26, 2020, 1:08 p.m. OK GNU C++11 TESTS 84 31 0 1200
81466319 Khale_2002 A May 26, 2020, 11:50 a.m. OK GNU C++11 TESTS 84 31 0 1200
81466304 vjudge3 A May 26, 2020, 11:50 a.m. OK GNU C++11 TESTS 84 31 0 1200
81465303 vjudge5 A May 26, 2020, 11:37 a.m. OK GNU C++11 TESTS 84 31 0 1200
81712115 its_iman99 A May 28, 2020, 2 p.m. OK GNU C++11 TESTS 84 31 0 1200
81670750 cghtxdy A May 28, 2020, 5:07 a.m. OK GNU C++11 TESTS 84 31 0 1200
81661101 Moonflower A May 28, 2020, 12:50 a.m. OK GNU C++11 TESTS 84 31 0 1200
81592057 u_yan A May 27, 2020, 7:20 a.m. OK GNU C++11 TESTS 84 31 0 1200
81576162 invtronx A May 27, 2020, 3:14 a.m. OK GNU C++11 TESTS 84 31 0 1200
81516836 gulati_harsh_ A May 26, 2020, 3:26 p.m. OK GNU C++11 TESTS 84 31 0 1200
81358145 htijsa A May 25, 2020, 7:28 a.m. OK GNU C++14 TESTS 84 31 0 1200
81469277 atifsufyaan17 A May 26, 2020, 12:28 p.m. OK GNU C++14 TESTS 84 31 0 1200
81582537 Xsource A May 27, 2020, 5:15 a.m. OK GNU C++14 TESTS 84 31 0 1200
81582367 JayK007 A May 27, 2020, 5:13 a.m. OK GNU C++14 TESTS 84 31 0 1200
81357894 htijsa A May 25, 2020, 7:24 a.m. OK GNU C++14 TESTS 84 31 0 1200
81354084 18tin_nntan A May 25, 2020, 6:34 a.m. OK GNU C++14 TESTS 84 31 0 1200
81352974 vjudge1 A May 25, 2020, 6:19 a.m. OK GNU C++14 TESTS 84 31 0 1200
81345876 black__ A May 25, 2020, 4:22 a.m. OK GNU C++14 TESTS 84 31 0 1200
81343843 vjudge2 A May 25, 2020, 3:24 a.m. OK GNU C++14 TESTS 84 31 0 1200
81202272 samprita14 A May 24, 2020, 1:30 p.m. OK GNU C++14 TESTS 84 31 0 1200
81559116 imcoder_tarunag A May 26, 2020, 7:17 p.m. OK GNU C++17 TESTS 84 31 0 1200
81704529 saurxbh A May 28, 2020, 12:28 p.m. OK GNU C++17 TESTS 84 31 0 1200
81698414 farazradfar A May 28, 2020, 11:10 a.m. OK GNU C++17 TESTS 84 31 0 1200
81697577 avinashtakhar A May 28, 2020, 10:59 a.m. OK GNU C++17 TESTS 84 31 0 1200
81676946 ripsaboteur_9211 A May 28, 2020, 6:37 a.m. OK GNU C++17 TESTS 84 31 0 1200
81675964 Joo_KS A May 28, 2020, 6:24 a.m. OK GNU C++17 TESTS 84 31 0 1200
81672657 coder_monkey A May 28, 2020, 5:41 a.m. OK GNU C++17 TESTS 84 31 0 1200
81638543 ds1354586 A May 27, 2020, 4:21 p.m. OK GNU C++17 TESTS 84 31 0 1200
81405676 thummarm097 A May 25, 2020, 5:13 p.m. OK GNU C++17 TESTS 84 31 0 1200
81402764 edenooo A May 25, 2020, 4:34 p.m. OK GNU C++17 TESTS 84 31 0 1200
80988467 vjudge2 A May 23, 2020, 6:16 a.m. OK GNU C++17 (64) TESTS 84 31 0 1200
80991342 vjudge5 A May 23, 2020, 6:59 a.m. OK GNU C++17 (64) TESTS 84 31 0 1200
80996982 vjudge4 A May 23, 2020, 8:25 a.m. OK GNU C++17 (64) TESTS 84 31 0 1200
81008741 idontknoww A May 23, 2020, 11:13 a.m. OK GNU C++17 (64) TESTS 84 31 0 1200
81014052 tirthankarmittra A May 23, 2020, 12:26 p.m. OK GNU C++17 (64) TESTS 84 31 0 1200
81014252 tirthankarmittra A May 23, 2020, 12:29 p.m. OK GNU C++17 (64) TESTS 84 31 0 1200
81059197 Evane A May 24, 2020, 4:12 a.m. OK GNU C++17 (64) TESTS 84 31 0 1200
81173073 gibberish A May 24, 2020, noon OK GNU C++17 (64) TESTS 84 31 0 1200
81349116 chunjie A May 25, 2020, 5:21 a.m. OK GNU C++17 (64) TESTS 84 31 0 1200
81470383 hardiksh0512 A May 26, 2020, 12:34 p.m. OK GNU C++17 (64) TESTS 84 31 0 1200
81586162 hoangtl A May 27, 2020, 6:06 a.m. OK Go TESTS 84 46 102400 1200
80433676 dblokhin A May 17, 2020, 5:15 a.m. OK Go TESTS 84 46 10649600 1200
80430163 amarjeetanand A May 17, 2020, 4:13 a.m. OK Go TESTS 84 46 10649600 1200
80431773 nsaeki A May 17, 2020, 4:44 a.m. OK Go TESTS 84 108 10649600 1200
80867628 Fraction_Period A May 21, 2020, 3:37 p.m. OK Go TESTS 84 109 102400 1200
80421719 Russell_Emerine A May 17, 2020, 12:12 a.m. OK Haskell TESTS 84 139 13926400 1200
80566229 avijit_agarwal A May 18, 2020, 3:39 a.m. OK Java 11 TESTS 84 171 23859200 1200
80618317 Anonymous A May 18, 2020, 3:40 p.m. OK Java 11 TESTS 84 186 23859200 1200
80614450 alaska1234 A May 18, 2020, 3:02 p.m. OK Java 11 TESTS 84 186 23859200 1200
80410745 Mann_27__ A May 16, 2020, 7:34 p.m. OK Java 11 TESTS 84 186 23961600 1200
81469309 yuruiyin A May 26, 2020, 12:28 p.m. OK Java 11 TESTS 84 187 0 1200
80907264 zhupeijun A May 22, 2020, 6:27 a.m. OK Java 11 TESTS 84 187 0 1200
80894972 LvnG A May 22, 2020, 1:52 a.m. OK Java 11 TESTS 84 187 0 1200
80732123 anhpp A May 20, 2020, 12:41 a.m. OK Java 11 TESTS 84 187 0 1200
80566189 avijit_agarwal A May 18, 2020, 3:38 a.m. OK Java 11 TESTS 84 187 23859200 1200
80437396 kgcode A May 17, 2020, 6:06 a.m. OK Java 11 TESTS 84 187 23859200 1200
80655181 walter_white2 A May 19, 2020, 4:59 a.m. OK Java 8 TESTS 84 109 0 1200
81343346 AnandOza A May 25, 2020, 3:14 a.m. OK Java 8 TESTS 84 124 0 1200
81052047 O_E A May 23, 2020, 11:15 p.m. OK Java 8 TESTS 84 124 0 1200
81014672 nidhigoel A May 23, 2020, 12:36 p.m. OK Java 8 TESTS 84 124 0 1200
81014643 The_Hidden_Man A May 23, 2020, 12:35 p.m. OK Java 8 TESTS 84 124 0 1200
80955760 kareem3id A May 22, 2020, 5:04 p.m. OK Java 8 TESTS 84 124 0 1200
80871441 nandit A May 21, 2020, 4:26 p.m. OK Java 8 TESTS 84 124 0 1200
80862835 htvu A May 21, 2020, 2:42 p.m. OK Java 8 TESTS 84 124 0 1200
80862689 lizhijian A May 21, 2020, 2:41 p.m. OK Java 8 TESTS 84 124 0 1200
80817119 Nirav A May 21, 2020, 3:21 a.m. OK Java 8 TESTS 84 124 0 1200
80412240 DeadInsideOnTest993 A May 16, 2020, 7:58 p.m. OK Kotlin TESTS 84 140 20582400 1200
80963368 Fortin A May 22, 2020, 6:49 p.m. OK Kotlin TESTS 84 155 0 1200
80451606 yh1224 A May 17, 2020, 8:51 a.m. OK Kotlin TESTS 84 155 21299200 1200
81329766 TheConfessor A May 24, 2020, 7:55 p.m. OK Kotlin TESTS 84 171 0 1200
81313468 a11eca A May 24, 2020, 4:09 p.m. OK Kotlin TESTS 84 171 0 1200
81152977 Ceaser A May 24, 2020, 9:12 a.m. OK Kotlin TESTS 84 171 0 1200
80388216 mt_kuma A May 16, 2020, 3:34 p.m. OK Kotlin TESTS 83 171 21811200 1200
80667245 razdeep A May 19, 2020, 8:10 a.m. OK Kotlin TESTS 84 186 0 1200
81329917 TheConfessor A May 24, 2020, 7:58 p.m. OK Kotlin TESTS 84 187 0 1200
81022104 UD_xlinsist A May 23, 2020, 2:28 p.m. OK Kotlin TESTS 84 187 0 1200
81018093 jankmet A May 23, 2020, 1:31 p.m. OK Mono C# TESTS 84 62 307200 1200
80440777 ellip A May 17, 2020, 6:45 a.m. OK Mono C# TESTS 84 62 12390400 1200
80715183 anish.1922 A May 19, 2020, 5:48 p.m. OK Mono C# TESTS 84 77 2867200 1200
80399663 jdms A May 16, 2020, 5:21 p.m. OK Mono C# TESTS 83 77 12902400 1200
80420553 uske1 A May 16, 2020, 11:25 p.m. OK Mono C# TESTS 84 77 12902400 1200
80420473 uske1 A May 16, 2020, 11:22 p.m. OK Mono C# TESTS 84 78 12902400 1200
80549724 kranthi333 A May 17, 2020, 7:18 p.m. OK Mono C# TESTS 84 78 15052800 1200
80420113 uske1 A May 16, 2020, 11:07 p.m. OK Mono C# TESTS 84 92 12902400 1200
80780973 _Trung_Nguyen A May 20, 2020, 2:27 p.m. OK Mono C# TESTS 84 109 6860800 1200
81162787 m1_k3 A May 24, 2020, 9:40 a.m. OK Mono C# TESTS 84 124 6758400 1200
80648079 vjudge2 A May 19, 2020, 1:55 a.m. OK MS C++ TESTS 84 31 0 1200
81006449 vjudge2 A May 23, 2020, 10:44 a.m. OK MS C++ TESTS 84 31 0 1200
80768196 vjudge2 A May 20, 2020, 11:39 a.m. OK MS C++ TESTS 84 31 0 1200
80692867 vjudge4 A May 19, 2020, 1:37 p.m. OK MS C++ TESTS 84 31 0 1200
80649831 vjudge1 A May 19, 2020, 2:50 a.m. OK MS C++ TESTS 84 31 0 1200
80648344 vjudge3 A May 19, 2020, 2:04 a.m. OK MS C++ TESTS 84 46 0 1200
80651277 vjudge5 A May 19, 2020, 3:25 a.m. OK MS C++ TESTS 84 46 0 1200
80999490 vjudge2 A May 23, 2020, 9:03 a.m. OK MS C++ TESTS 84 46 0 1200
81200173 vjudge3 A May 24, 2020, 1:01 p.m. OK MS C++ TESTS 84 46 0 1200
81575002 vjudge5 A May 27, 2020, 2:52 a.m. OK MS C++ TESTS 84 46 0 1200
81478518 vjudge4 A May 26, 2020, 2:12 p.m. OK MS C++ 2017 TESTS 84 31 0 1200
80651258 vjudge2 A May 19, 2020, 3:25 a.m. OK MS C++ 2017 TESTS 84 31 0 1200
80692889 EmilSardaryan A May 19, 2020, 1:37 p.m. OK MS C++ 2017 TESTS 84 31 0 1200
80697399 guanyin1433223 A May 19, 2020, 2:24 p.m. OK MS C++ 2017 TESTS 84 31 0 1200
80843540 vjudge4 A May 21, 2020, 10:47 a.m. OK MS C++ 2017 TESTS 84 31 0 1200
80649242 vjudge4 A May 19, 2020, 2:34 a.m. OK MS C++ 2017 TESTS 84 31 0 1200
80648881 vjudge5 A May 19, 2020, 2:23 a.m. OK MS C++ 2017 TESTS 84 31 0 1200
80647995 vjudge5 A May 19, 2020, 1:52 a.m. OK MS C++ 2017 TESTS 84 31 0 1200
80565158 x_y A May 18, 2020, 3:13 a.m. OK MS C++ 2017 TESTS 84 31 3686400 1200
80443287 zstu19lcb A May 17, 2020, 7:15 a.m. OK MS C++ 2017 TESTS 84 31 4096000 1200
80390825 gleb032 A May 16, 2020, 3:55 p.m. OK PascalABC.NET TESTS 83 373 24064000 1200
80908221 yumtam A May 22, 2020, 6:41 a.m. OK PyPy 2 TESTS 84 171 1945600 1200
80417410 kit.shiron A May 16, 2020, 9:43 p.m. OK PyPy 2 TESTS 84 171 25395200 1200
80901292 vbhayana A May 22, 2020, 4:37 a.m. OK PyPy 2 TESTS 84 186 1331200 1200
80730698 beethoven97 A May 19, 2020, 11:37 p.m. OK PyPy 2 TESTS 84 186 2355200 1200
80425240 thenewcomer A May 17, 2020, 2:14 a.m. OK PyPy 2 TESTS 84 218 26112000 1200
80580574 EM1NEM A May 18, 2020, 7:50 a.m. OK PyPy 2 TESTS 84 233 26009600 1200
80411719 alon276 A May 16, 2020, 7:50 p.m. OK PyPy 2 TESTS 84 233 27340800 1200
80390221 Anuranjan_Pandey A May 16, 2020, 3:50 p.m. OK PyPy 3 TESTS 83 171 23654400 1200
80780850 code5753 A May 20, 2020, 2:25 p.m. OK PyPy 3 TESTS 84 186 3276800 1200
80625693 tomoyaatcoder A May 18, 2020, 5:07 p.m. OK PyPy 3 TESTS 84 186 3788800 1200
80402223 apoorvwatsky A May 16, 2020, 5:50 p.m. OK PyPy 3 TESTS 83 186 22732800 1200
80399995 TheMisfits A May 16, 2020, 5:25 p.m. OK PyPy 3 TESTS 83 186 23244800 1200
80399293 TheMisfits A May 16, 2020, 5:17 p.m. OK PyPy 3 TESTS 83 186 23449600 1200
80389903 Dewangee A May 16, 2020, 3:48 p.m. OK PyPy 3 TESTS 83 186 23859200 1200
81593529 tycyd A May 27, 2020, 7:39 a.m. OK PyPy 3 TESTS 84 187 3072000 1200
80980928 NSPS A May 23, 2020, 3:46 a.m. OK PyPy 3 TESTS 84 187 3481600 1200
81201154 Venom_007 A May 24, 2020, 1:14 p.m. OK PyPy 3 TESTS 84 187 3891200 1200
80416836 elistark A May 16, 2020, 9:28 p.m. OK Python 2 TESTS 84 218 6451200 1200
80428130 13048047792 A May 17, 2020, 3:25 a.m. OK Python 2 TESTS 84 264 6451200 1200
80527067 kmd99 A May 17, 2020, 2:09 p.m. OK Python 2 TESTS 84 265 6451200 1200
80971406 sedramerkhan A May 22, 2020, 9:37 p.m. OK Python 3 TESTS 84 140 0 1200
80785794 orailly A May 20, 2020, 3:29 p.m. OK Python 3 TESTS 84 140 0 1200
80771919 daxia A May 20, 2020, 12:27 p.m. OK Python 3 TESTS 84 140 0 1200
80807558 abod.hi.5 A May 20, 2020, 9:14 p.m. OK Python 3 TESTS 84 140 307200 1200
80590655 RapTvin A May 18, 2020, 10:13 a.m. OK Python 3 TESTS 84 140 6656000 1200
80534654 Janhavi_S A May 17, 2020, 3:39 p.m. OK Python 3 TESTS 84 140 6656000 1200
80453337 chinu1712 A May 17, 2020, 9:11 a.m. OK Python 3 TESTS 84 140 6963200 1200
80392799 rummansadik A May 16, 2020, 4:13 p.m. OK Python 3 TESTS 83 140 6963200 1200
81695133 sarkershimul38 A May 28, 2020, 10:26 a.m. OK Python 3 TESTS 84 155 0 1200
81693055 safeers A May 28, 2020, 9:59 a.m. OK Python 3 TESTS 84 155 0 1200
81426309 LeoRiether A May 26, 2020, 12:10 a.m. OK Rust TESTS 84 31 0 1200
80816376 itsnotme A May 21, 2020, 2:59 a.m. OK Rust TESTS 84 31 307200 1200
80448503 quickn_babo A May 17, 2020, 8:17 a.m. OK Rust TESTS 84 46 3788800 1200
80402385 cotton100pc A May 16, 2020, 5:52 p.m. OK Rust TESTS 83 46 4300800 1200
80395475 userCodeForces A May 16, 2020, 4:39 p.m. OK Rust TESTS 83 62 4096000 1200
80783736 pkrzemin A May 20, 2020, 3:02 p.m. OK Scala TESTS 84 499 0 1200
80540039 sharvin2187 A May 17, 2020, 4:51 p.m. OK Scala TESTS 84 592 39628800 1200
80785744 fr3ak A May 20, 2020, 3:28 p.m. OK Scala TESTS 84 608 1024000 1200

remove filters

Back to search problems