Educational Codeforces Round 66 (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
1175 Educational Codeforces Round 66 (Rated for Div. 2) FINISHED False 7200 172077899 June 5, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18322 ) A From Hero to Zero PROGRAMMING implementation math 1000

B'You are given an integer n and an integer k . In one step you can do one of the following moves: For example, if n = 27 and k = 3 you can do the following steps: 27 rightarrow 26 rightarrow 25 rightarrow 24 rightarrow 8 rightarrow 7 rightarrow 6 rightarrow 2 rightarrow 1 rightarrow 0 . You are asked to calculate the minimum number of steps to reach 0 from n . The first line contains one integer t ( 1 <= t <= 100 ) -- the number of queries. The only line of each query contains two integers n and k ( 1 <= n <= 10^{18} , 2 <= k <= 10^{18} ). For each query print the minimum number of steps to reach 0 from n in single line. Steps for the first test case are: 59 rightarrow 58 rightarrow 57 rightarrow 19 rightarrow 18 rightarrow 6 rightarrow 2 rightarrow 1 rightarrow 0 . In the second test case you have to divide n by k 18 times and then decrease n by 1 . '...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
55504662 asokol A June 12, 2019, 5:07 p.m. OK Clang++17 Diagnostics TESTS 11 46 0 1000
55180709 marewolf A June 5, 2019, 9:57 p.m. OK Clang++17 Diagnostics TESTS 11 46 0 1000
55230546 True1 A June 7, 2019, 5:20 a.m. OK Clang++17 Diagnostics TESTS 11 46 0 1000
55232702 jp_jp A June 7, 2019, 6:38 a.m. OK Clang++17 Diagnostics TESTS 11 46 0 1000
55239429 jiangly A June 7, 2019, 10:06 a.m. OK Clang++17 Diagnostics TESTS 11 46 0 1000
55268003 rlac A June 7, 2019, 3:10 p.m. OK Clang++17 Diagnostics TESTS 11 46 0 1000
55295352 Nodir_Bobiev A June 8, 2019, 9:38 a.m. OK Clang++17 Diagnostics TESTS 11 46 0 1000
55333815 quheyayaya A June 9, 2019, 12:33 p.m. OK Clang++17 Diagnostics TESTS 11 46 0 1000
61539694 MrCriss1 A Sept. 30, 2019, 8:13 a.m. OK FPC TESTS 11 15 0 1000
59953623 pascal_handle A Sept. 3, 2019, 3:21 p.m. OK FPC TESTS 11 15 0 1000
55301989 tuvidai2003 A June 8, 2019, 12:26 p.m. OK FPC TESTS 11 31 0 1000
56398529 Zeatea A July 1, 2019, 3:44 p.m. OK FPC TESTS 11 31 0 1000
55397528 VooLeeR A June 10, 2019, 12:27 p.m. OK FPC TESTS 11 31 0 1000
58164679 minhquaningenious A Aug. 2, 2019, 8:38 a.m. OK FPC TESTS 11 31 102400 1000
63072279 tranminhprvt01 A Oct. 21, 2019, 12:44 p.m. OK FPC TESTS 11 46 0 1000
61026530 vjudge3 A Sept. 21, 2019, 4:10 p.m. OK GNU C11 TESTS 11 15 0 1000
66954167 wrong_verdict A Dec. 15, 2019, 10:09 a.m. OK GNU C11 TESTS 11 15 0 1000
65312552 vjudge2 A Nov. 18, 2019, 3:54 p.m. OK GNU C11 TESTS 11 15 0 1000
61769252 Sourav_saha A Oct. 3, 2019, 9:36 a.m. OK GNU C11 TESTS 11 15 0 1000
61723953 vjudge2 A Oct. 2, 2019, 2:41 p.m. OK GNU C11 TESTS 11 15 0 1000
68921703 liuyuhao A Jan. 16, 2020, 9:32 a.m. OK GNU C11 TESTS 11 15 0 1000
56841607 Xetnys_Rorre A July 11, 2019, 11:45 a.m. OK GNU C11 TESTS 11 15 0 1000
56306833 mohitsethia A June 30, 2019, 12:22 p.m. OK GNU C11 TESTS 11 15 0 1000
56043350 luciferkingofthehell A June 25, 2019, 3:22 p.m. OK GNU C11 TESTS 11 15 0 1000
55702463 Iftekhar_Fahim_CoU12ICT9 A June 18, 2019, 5:33 a.m. OK GNU C11 TESTS 11 15 0 1000
69877604 vjudge5 A Jan. 31, 2020, 4:55 a.m. OK GNU C++11 TESTS 11 15 0 1000
66778746 resilience13 A Dec. 13, 2019, 11:09 a.m. OK GNU C++11 TESTS 11 15 0 1000
67068982 coderpractices A Dec. 17, 2019, 12:07 p.m. OK GNU C++11 TESTS 11 15 0 1000
67389952 mandivson A Dec. 21, 2019, 7:17 p.m. OK GNU C++11 TESTS 11 15 0 1000
67579622 AyDee A Dec. 25, 2019, 5:15 a.m. OK GNU C++11 TESTS 11 15 0 1000
68361611 Dope_StaR A Jan. 7, 2020, 2:18 p.m. OK GNU C++11 TESTS 11 15 0 1000
68622708 Farabi1122 A Jan. 11, 2020, 7:46 p.m. OK GNU C++11 TESTS 11 15 0 1000
68873588 pro_noobie A Jan. 15, 2020, 4:07 p.m. OK GNU C++11 TESTS 11 15 0 1000
69420654 hackerphobia A Jan. 23, 2020, 2:18 p.m. OK GNU C++11 TESTS 11 15 0 1000
69728926 hanshan1996 A Jan. 29, 2020, 1:02 p.m. OK GNU C++11 TESTS 11 15 0 1000
69892642 Oblivious__ A Jan. 31, 2020, 10:35 a.m. OK GNU C++14 TESTS 11 15 0 1000
69735807 hneenswai4 A Jan. 29, 2020, 2:36 p.m. OK GNU C++14 TESTS 11 15 0 1000
69524578 architgoku13 A Jan. 25, 2020, 2:29 p.m. OK GNU C++14 TESTS 11 15 0 1000
69378134 lani1akea A Jan. 22, 2020, 6:46 p.m. OK GNU C++14 TESTS 11 15 0 1000
69228190 Sankalan7 A Jan. 21, 2020, 8:17 a.m. OK GNU C++14 TESTS 11 15 0 1000
69205119 vjudge5 A Jan. 20, 2020, 5:46 p.m. OK GNU C++14 TESTS 11 15 0 1000
69063764 vjudge4 A Jan. 18, 2020, 5:42 p.m. OK GNU C++14 TESTS 11 15 0 1000
69063368 vjudge3 A Jan. 18, 2020, 5:31 p.m. OK GNU C++14 TESTS 11 15 0 1000
68980348 trespuntocatorce A Jan. 17, 2020, 10:28 a.m. OK GNU C++14 TESTS 11 15 0 1000
68948753 Robukhi A Jan. 16, 2020, 5:09 p.m. OK GNU C++14 TESTS 11 15 0 1000
68936717 Prem1802065p A Jan. 16, 2020, 1:05 p.m. OK GNU C++17 TESTS 11 15 0 1000
69937416 001-29090-Yeraly-7 A Feb. 1, 2020, 4:36 a.m. OK GNU C++17 TESTS 11 15 0 1000
69837305 Tyson_01 A Jan. 30, 2020, 12:11 p.m. OK GNU C++17 TESTS 11 15 0 1000
69649668 vjudge4 A Jan. 28, 2020, 4:22 a.m. OK GNU C++17 TESTS 11 15 0 1000
69603679 2wl2ntqa2 A Jan. 27, 2020, 8:53 a.m. OK GNU C++17 TESTS 11 15 0 1000
69539681 AAY_JAGGI A Jan. 25, 2020, 8:41 p.m. OK GNU C++17 TESTS 11 15 0 1000
69392010 zen_ksri A Jan. 23, 2020, 4:15 a.m. OK GNU C++17 TESTS 11 15 0 1000
69214487 pisucoya02 A Jan. 20, 2020, 10:45 p.m. OK GNU C++17 TESTS 11 15 0 1000
69068676 vjudge4 A Jan. 18, 2020, 8:02 p.m. OK GNU C++17 TESTS 11 15 0 1000
68965482 vjudge2 A Jan. 17, 2020, 4:34 a.m. OK GNU C++17 TESTS 11 15 0 1000
55282778 Lancern A June 8, 2019, 2:36 a.m. OK Go TESTS 11 15 0 1000
58928813 vchilikov A Aug. 16, 2019, 9:43 p.m. OK Go TESTS 11 31 0 1000
55321825 lcastillov A June 9, 2019, 5:19 a.m. OK Go TESTS 11 31 0 1000
58928721 vchilikov A Aug. 16, 2019, 9:37 p.m. OK Go TESTS 11 46 0 1000
57825359 sighduck A July 27, 2019, 2:43 a.m. OK Go TESTS 11 46 0 1000
55295067 marcos_16 A June 8, 2019, 9:30 a.m. OK Go TESTS 11 46 0 1000
55183886 sahiltiwari A June 6, 2019, 1:55 a.m. OK Haskell TESTS 11 30 102400 1000
57796756 jmazon A July 26, 2019, 11:42 a.m. OK Haskell TESTS 11 31 102400 1000
56288103 sashamc A June 29, 2019, 9:14 p.m. OK Haskell TESTS 11 31 102400 1000
67610110 suxrib A Dec. 25, 2019, 3:04 p.m. OK Java 11 TESTS 11 187 0 1000
67635662 nematov.ol2001 A Dec. 26, 2019, 6:48 a.m. OK Java 11 TESTS 11 202 0 1000
67610427 nematov.ol2001 A Dec. 25, 2019, 3:11 p.m. OK Java 11 TESTS 11 202 0 1000
66478405 Mirbek_aka A Dec. 7, 2019, 10:51 p.m. OK Java 11 TESTS 11 202 0 1000
65730378 DIPUU A Nov. 26, 2019, 4:37 a.m. OK Java 11 TESTS 11 202 0 1000
67610246 nematov.ol2001 A Dec. 25, 2019, 3:07 p.m. OK Java 11 TESTS 11 218 0 1000
57012264 Mustafa__ A July 14, 2019, 9:53 a.m. OK Java 8 TESTS 11 93 0 1000
56307314 -f00- A June 30, 2019, 12:39 p.m. OK Java 8 TESTS 11 93 0 1000
55658638 Sleeperino A June 16, 2019, 7:03 p.m. OK Java 8 TESTS 11 93 0 1000
55512674 danielaggarwal A June 13, 2019, 1:41 a.m. OK Java 8 TESTS 11 93 0 1000
55328498 darshan287 A June 9, 2019, 9:33 a.m. OK Java 8 TESTS 11 93 0 1000
55242204 hasan5788 A June 7, 2019, 11:40 a.m. OK Java 8 TESTS 11 93 0 1000
55222441 Mann_27__ A June 6, 2019, 8:42 p.m. OK Java 8 TESTS 11 93 0 1000
55218606 daniilzimin4 A June 6, 2019, 6:10 p.m. OK Java 8 TESTS 11 93 0 1000
55215020 __shangu__ A June 6, 2019, 4:18 p.m. OK Java 8 TESTS 11 93 0 1000
55177306 di_halt A June 5, 2019, 7:19 p.m. OK Java 8 TESTS 11 93 0 1000
56497649 I.A.K.O.V A July 4, 2019, 4:17 a.m. OK Kotlin TESTS 11 108 0 1000
55418000 Killer45 A June 11, 2019, 4:15 a.m. OK Kotlin TESTS 11 109 0 1000
55314727 shersuyarov A June 8, 2019, 8:27 p.m. OK Kotlin TESTS 11 139 0 1000
55187379 mendel_vv A June 6, 2019, 4:24 a.m. OK Kotlin TESTS 11 140 102400 1000
55986519 Spheniscine A June 24, 2019, 4:14 a.m. OK Kotlin TESTS 11 140 204800 1000
55314503 shersuyarov A June 8, 2019, 8:11 p.m. OK Kotlin TESTS 11 155 0 1000
55177256 MohammedAlaaMorsi A June 5, 2019, 7:18 p.m. OK Kotlin TESTS 11 155 102400 1000
55187623 KanhuKeNanu A June 6, 2019, 4:33 a.m. OK Kotlin TESTS 11 155 204800 1000
56479474 hawwyo A July 3, 2019, 3:18 p.m. OK Kotlin TESTS 11 217 102400 1000
55187791 QuantumKnight A June 6, 2019, 4:39 a.m. OK Mono C# TESTS 11 31 0 1000
55309320 barmaglot A June 8, 2019, 4:33 p.m. OK Mono C# TESTS 11 31 102400 1000
55569562 duronto A June 14, 2019, 5:46 p.m. OK Mono C# TESTS 11 46 0 1000
55591200 muo.cpp A June 15, 2019, 12:30 p.m. OK Mono C# TESTS 11 46 0 1000
58310355 nemars A Aug. 4, 2019, 10:04 p.m. OK Mono C# TESTS 11 46 0 1000
55279220 IleksaNott A June 7, 2019, 10:07 p.m. OK Mono C# TESTS 11 46 0 1000
58699765 zeinab A Aug. 13, 2019, 7:25 a.m. OK Mono C# TESTS 11 46 0 1000
59209517 ansergeyg A Aug. 21, 2019, 8:04 a.m. OK Mono C# TESTS 11 46 0 1000
58310447 ygtcnl A Aug. 4, 2019, 10:09 p.m. OK Mono C# TESTS 11 46 0 1000
55290114 SaurumanS lewasupaman A June 8, 2019, 7:16 a.m. OK Mono C# TESTS 11 46 0 1000
61528283 vjudge1 A Sept. 30, 2019, 12:51 a.m. OK MS C++ TESTS 11 15 0 1000
60569348 vjudge3 A Sept. 14, 2019, 3:20 p.m. OK MS C++ TESTS 11 15 0 1000
57777330 vjudge3 A July 26, 2019, 4:17 a.m. OK MS C++ TESTS 11 15 0 1000
57776965 vjudge5 A July 26, 2019, 4:06 a.m. OK MS C++ TESTS 11 15 0 1000
57453114 vjudge3 A July 21, 2019, 10:28 a.m. OK MS C++ TESTS 11 15 0 1000
57362480 vjudge1 A July 20, 2019, 8:12 a.m. OK MS C++ TESTS 11 15 0 1000
57361924 vjudge1 A July 20, 2019, 8:02 a.m. OK MS C++ TESTS 11 15 0 1000
57358855 vjudge1 A July 20, 2019, 7:09 a.m. OK MS C++ TESTS 11 15 0 1000
57358842 vjudge5 A July 20, 2019, 7:08 a.m. OK MS C++ TESTS 11 15 0 1000
57358815 vjudge1 A July 20, 2019, 7:08 a.m. OK MS C++ TESTS 11 15 0 1000
55297916 Moen1578 A June 8, 2019, 10:41 a.m. OK MS C++ 2017 TESTS 11 15 0 1000
55200378 AtomG A June 6, 2019, 10:19 a.m. OK MS C++ 2017 TESTS 11 15 0 1000
55318641 diegomez A June 9, 2019, 2:05 a.m. OK MS C++ 2017 TESTS 11 15 0 1000
55557486 RaduUku A June 14, 2019, 10:43 a.m. OK MS C++ 2017 TESTS 11 15 0 1000
55950093 Double228 A June 23, 2019, 12:43 a.m. OK MS C++ 2017 TESTS 11 15 0 1000
56814030 petr0205 A July 10, 2019, 5:58 p.m. OK MS C++ 2017 TESTS 11 15 0 1000
56814059 forest10 A July 10, 2019, 6 p.m. OK MS C++ 2017 TESTS 11 15 0 1000
57636970 FumeiYaziwa A July 24, 2019, 11:10 a.m. OK MS C++ 2017 TESTS 11 15 0 1000
60199859 GP26 A Sept. 7, 2019, 4:49 a.m. OK MS C++ 2017 TESTS 11 15 0 1000
62190527 hosein_bidaki A Oct. 9, 2019, 9:33 a.m. OK MS C++ 2017 TESTS 11 15 0 1000
55272282 aniket10051994 A June 7, 2019, 5:02 p.m. OK Node.js TESTS 11 187 3993600 1000
55272536 baaka_ani A June 7, 2019, 5:09 p.m. OK Node.js TESTS 11 187 3993600 1000
56170015 Gimber A June 27, 2019, 4:03 p.m. OK PascalABC.NET TESTS 11 296 0 1000
55197291 28Nik A June 6, 2019, 9:03 a.m. OK PascalABC.NET TESTS 11 296 102400 1000
56506669 Tofig_Aliev A July 4, 2019, 8:43 a.m. OK PascalABC.NET TESTS 11 312 0 1000
57704065 romanporsh A July 24, 2019, 7:05 p.m. OK PascalABC.NET TESTS 11 405 102400 1000
55200477 lostamok A June 6, 2019, 10:22 a.m. OK PHP TESTS 11 31 409600 1000
55571685 mayakin A June 14, 2019, 7:16 p.m. OK PHP TESTS 11 46 0 1000
58355571 chaudhary_19 A Aug. 5, 2019, 7:20 p.m. OK PyPy 2 TESTS 11 109 0 1000
64336389 vjudge4 A Nov. 5, 2019, 10:08 p.m. OK PyPy 2 TESTS 11 109 102400 1000
55183913 AWB29 A June 6, 2019, 1:57 a.m. OK PyPy 2 TESTS 11 109 204800 1000
56181823 vjudge3 A June 28, 2019, 12:39 a.m. OK PyPy 2 TESTS 11 124 0 1000
55496324 thuutin A June 12, 2019, 12:44 p.m. OK PyPy 2 TESTS 11 124 0 1000
55336231 ____...____ A June 9, 2019, 1:56 p.m. OK PyPy 2 TESTS 11 124 102400 1000
58852336 -Morass- A Aug. 15, 2019, 7:59 a.m. OK PyPy 2 TESTS 11 124 307200 1000
55317865 cherry_su A June 9, 2019, 12:59 a.m. OK PyPy 2 TESTS 11 139 1024000 1000
55384822 masonsbro A June 10, 2019, 1:45 a.m. OK PyPy 2 TESTS 11 140 0 1000
55190534 shafwanur010 A June 6, 2019, 6:15 a.m. OK PyPy 2 TESTS 11 140 1331200 1000
61857666 vjudge2 A Oct. 4, 2019, 2:29 p.m. OK PyPy 3 TESTS 11 124 0 1000
59659690 galim665 A Aug. 29, 2019, 11:57 a.m. OK PyPy 3 TESTS 11 124 0 1000
55663673 Diegogrc EliasMera A June 17, 2019, 12:50 a.m. OK PyPy 3 TESTS 11 124 0 1000
55542665 sonhuytranpython2 A June 13, 2019, 9:18 p.m. OK PyPy 3 TESTS 11 124 0 1000
55508696 freken-snork A June 12, 2019, 7:55 p.m. OK PyPy 3 TESTS 11 124 0 1000
55267980 vit_72 A June 7, 2019, 3:08 p.m. OK PyPy 3 TESTS 11 124 0 1000
55243133 satyam_jindal A June 7, 2019, 12:07 p.m. OK PyPy 3 TESTS 11 124 0 1000
58639634 zenithzyf A Aug. 12, 2019, 2:39 a.m. OK PyPy 3 TESTS 11 124 1126400 1000
61335054 kk_ban A Sept. 26, 2019, 4:10 p.m. OK PyPy 3 TESTS 11 124 1228800 1000
61179623 Rahul_Anand A Sept. 23, 2019, 7:19 p.m. OK PyPy 3 TESTS 11 124 1228800 1000
55314672 handsome_89244 A June 8, 2019, 8:23 p.m. OK Python 2 TESTS 11 155 0 1000
55219503 smunjal96 A June 6, 2019, 6:39 p.m. OK Python 2 TESTS 11 155 0 1000
55201468 aavrug A June 6, 2019, 10:47 a.m. OK Python 2 TESTS 11 155 0 1000
69288529 bsr011 A Jan. 22, 2020, 9:14 a.m. OK Python 2 TESTS 11 171 0 1000
58355552 chaudhary_19 A Aug. 5, 2019, 7:19 p.m. OK Python 2 TESTS 11 171 0 1000
56487967 vjudge2 A July 3, 2019, 7:29 p.m. OK Python 2 TESTS 11 171 0 1000
56446051 vjudge3 A July 2, 2019, 6:54 p.m. OK Python 2 TESTS 11 171 0 1000
56420906 vjudge4 A July 2, 2019, 7:16 a.m. OK Python 2 TESTS 11 171 0 1000
56420900 gabxx7 A July 2, 2019, 7:16 a.m. OK Python 2 TESTS 11 171 0 1000
56331067 vjudge3 A June 30, 2019, 3:48 p.m. OK Python 2 TESTS 11 171 0 1000
69831656 chauhan002 A Jan. 30, 2020, 10:40 a.m. OK Python 3 TESTS 11 93 0 1000
55855762 TangentDay A June 21, 2019, 6:55 a.m. OK Python 3 TESTS 11 93 0 1000
55831724 jvti A June 20, 2019, 1:28 p.m. OK Python 3 TESTS 11 93 0 1000
55572162 amarjeet_singh A June 14, 2019, 7:37 p.m. OK Python 3 TESTS 11 93 0 1000
55564292 shortmund09 A June 14, 2019, 2:28 p.m. OK Python 3 TESTS 11 93 0 1000
55547655 b_hus_ha_n A June 14, 2019, 4:34 a.m. OK Python 3 TESTS 11 93 0 1000
55547075 rexdu A June 14, 2019, 4:02 a.m. OK Python 3 TESTS 11 93 0 1000
55532850 ziddi A June 13, 2019, 2:34 p.m. OK Python 3 TESTS 11 93 0 1000
55390606 zopchur A June 10, 2019, 9:32 a.m. OK Python 3 TESTS 11 93 0 1000
55373282 Ravindra_Marada A June 9, 2019, 4:44 p.m. OK Python 3 TESTS 11 93 0 1000
55753117 gr3atwh173 A June 19, 2019, 1:51 p.m. OK Ruby TESTS 11 77 102400 1000
64379042 tuna_salad A Nov. 6, 2019, 3:17 p.m. OK Rust TESTS 11 30 0 1000
56529745 no__ A July 4, 2019, 6:59 p.m. OK Rust TESTS 11 30 0 1000
67629383 gearjack A Dec. 26, 2019, 2:13 a.m. OK Rust TESTS 11 31 0 1000
60253089 tpoeiras A Sept. 8, 2019, 7:56 a.m. OK Rust TESTS 11 31 0 1000
56780115 fanzhang A July 10, 2019, 5:47 a.m. OK Rust TESTS 11 31 0 1000
55476719 seongmin.kim A June 12, 2019, 12:47 a.m. OK Rust TESTS 11 31 0 1000
55394294 LowR A June 10, 2019, 11:07 a.m. OK Rust TESTS 11 31 0 1000
56560958 ichyo A July 5, 2019, 2:56 p.m. OK Rust TESTS 11 31 614400 1000

remove filters

Back to search problems