Codeforces Round 929 (Div. 3)

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
1933 Codeforces Round 929 (Div. 3) FINISHED False 8100 28135463 Feb. 27, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23210 ) C Turtle Fingers: Count the Values of k PROGRAMMING brute force number theory

B'You are given three positive integers a , b and l ( a,b,l>0 ). It can be shown that there always exists a way to choose non-negative (i.e. ge 0 ) integers k , x , and y such that l = k cdot a^x cdot b^y . Your task is to find the number of distinct possible values of k across all such ways. The first line contains the integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The following t lines contain three integers, a , b and l ( 2 <= a, b <= 100 , 1 <= l <= 10^6 ) -- description of a test case. Output t lines, with the i -th ( 1 <= i <= t ) line containing an integer, the answer to the i -th test case. In the first test case, a=2, b=5, l=20 . The possible values of k (and corresponding x,y ) are as follows: In the second test case, a=2, b=5, l=21 . Note that l = 21 is not divisible by either a = 2 or b = 5 . Therefore, we can only set x = 0, y = 0 , which corresponds to k = 21 . In the third test case, a=4, b=6, l=48 . The possible values of k (and corresponding x,y ) are as follows: '...

Tutorials

Codeforces Round 929 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
248753638 justunderdog C Feb. 28, 2024, 1:20 p.m. OK C# 10 TESTS 31 109 4710400
248767803 MortalTurtle C Feb. 28, 2024, 2:55 p.m. OK C# 10 TESTS 31 140 3174400
248737193 threexsix C Feb. 28, 2024, 11:40 a.m. OK C# 10 TESTS 31 623 3686400
248814987 bluemegane C Feb. 28, 2024, 9:58 p.m. OK C# 8 TESTS 31 186 3481600
248775886 BuriBuriZymon C Feb. 28, 2024, 3:55 p.m. OK Clang++17 Diagnostics TESTS 31 3056 86220800
248716500 7Samuel77 C Feb. 28, 2024, 9:06 a.m. OK Clang++20 Diagnostics TESTS 31 1591 40960000
248781330 KalpeshJ C Feb. 28, 2024, 4:36 p.m. OK Clang++20 Diagnostics TESTS 31 1762 40960000
248744971 Vignesh_Pandi C Feb. 28, 2024, 12:27 p.m. OK Clang++20 Diagnostics TESTS 31 2152 40960000
248777168 mayankchuphal C Feb. 28, 2024, 4:05 p.m. OK Clang++20 Diagnostics TESTS 31 3681 86118400
248826465 khasevaolhp C Feb. 29, 2024, 2:26 a.m. OK FPC TESTS 31 77 7987200
248805443 uchiha_itachi_1308 C Feb. 28, 2024, 8:03 p.m. OK GNU C11 TESTS 31 78 307200
248805494 uchiha_itachi_1308 C Feb. 28, 2024, 8:04 p.m. OK GNU C11 TESTS 31 93 307200
248769478 XCRcn C Feb. 28, 2024, 3:09 p.m. OK GNU C11 TESTS 31 124 4300800
248758369 Njasoo C Feb. 28, 2024, 1:50 p.m. OK GNU C++17 TESTS 31 46 102400
248820656 k_balint C Feb. 29, 2024, 12:04 a.m. OK GNU C++17 TESTS 31 46 204800
248687616 gs20036 C Feb. 28, 2024, 4:02 a.m. OK GNU C++17 TESTS 31 46 8704000
248810597 herrscherofsentience C Feb. 28, 2024, 8:59 p.m. OK GNU C++17 TESTS 31 62 102400
248803719 Ahmed_Ismail7 C Feb. 28, 2024, 7:45 p.m. OK GNU C++17 TESTS 31 62 102400
248800163 saiteja_0712 C Feb. 28, 2024, 7:07 p.m. OK GNU C++17 TESTS 31 62 102400
248799551 larush C Feb. 28, 2024, 7:01 p.m. OK GNU C++17 TESTS 31 62 102400
248822572 dionysios C Feb. 29, 2024, 12:56 a.m. OK GNU C++17 TESTS 31 62 102400
248829119 singhmohit9868 C Feb. 29, 2024, 3:24 a.m. OK GNU C++17 TESTS 31 62 102400
248837065 ddss C Feb. 29, 2024, 5:24 a.m. OK GNU C++17 TESTS 31 62 102400
248759948 Zass11 C Feb. 28, 2024, 2 p.m. OK GNU C++17 (64) TESTS 31 46 0
248751836 shoshoshom C Feb. 28, 2024, 1:09 p.m. OK GNU C++17 (64) TESTS 31 46 0
248748362 YuAn.HR C Feb. 28, 2024, 12:49 p.m. OK GNU C++17 (64) TESTS 31 46 0
248742225 BingBing_CN C Feb. 28, 2024, 12:11 p.m. OK GNU C++17 (64) TESTS 31 46 0
248741602 LadyMaria C Feb. 28, 2024, 12:07 p.m. OK GNU C++17 (64) TESTS 31 46 0
248736875 Smile_laughter C Feb. 28, 2024, 11:38 a.m. OK GNU C++17 (64) TESTS 31 46 0
248736767 suqingchen C Feb. 28, 2024, 11:38 a.m. OK GNU C++17 (64) TESTS 31 46 0
248735997 Abhay5055 C Feb. 28, 2024, 11:33 a.m. OK GNU C++17 (64) TESTS 31 46 0
248732214 P_t_d C Feb. 28, 2024, 11:09 a.m. OK GNU C++17 (64) TESTS 31 46 0
248777603 imxiaoyan C Feb. 28, 2024, 4:09 p.m. OK GNU C++17 (64) TESTS 31 46 409600
248745256 3bkarm C Feb. 28, 2024, 12:29 p.m. OK GNU C++20 (64) TESTS 31 31 0
248749129 Srishti-j18 C Feb. 28, 2024, 12:53 p.m. OK GNU C++20 (64) TESTS 31 31 0
248774941 nitin_kumar_t_27 C Feb. 28, 2024, 3:49 p.m. OK GNU C++20 (64) TESTS 31 31 0
248746790 HHU_fl C Feb. 28, 2024, 12:39 p.m. OK GNU C++20 (64) TESTS 31 31 102400
248783552 RandSeed C Feb. 28, 2024, 4:53 p.m. OK GNU C++20 (64) TESTS 31 31 1228800
248774784 hoangnoobpro C Feb. 28, 2024, 3:48 p.m. OK GNU C++20 (64) TESTS 31 31 250470400
248825633 lan_10 C Feb. 29, 2024, 2:11 a.m. OK GNU C++20 (64) TESTS 31 46 0
248827766 142 C Feb. 29, 2024, 2:54 a.m. OK GNU C++20 (64) TESTS 31 46 0
248838288 Pratyu111 C Feb. 29, 2024, 5:40 a.m. OK GNU C++20 (64) TESTS 31 46 0
248838164 EchizenRyoma C Feb. 29, 2024, 5:38 a.m. OK GNU C++20 (64) TESTS 31 46 0
248718382 jiangxiaoju C Feb. 28, 2024, 9:20 a.m. OK Go TESTS 31 109 5017600
248691598 ajayg3059 C Feb. 28, 2024, 4:54 a.m. OK Go TESTS 31 140 5017600
248755690 vijay_panwar12 C Feb. 28, 2024, 1:32 p.m. OK Java 21 TESTS 31 327 307200
248724562 bashkort C Feb. 28, 2024, 10:10 a.m. OK Java 21 TESTS 31 327 409600
248822472 xin2002 C Feb. 29, 2024, 12:54 a.m. OK Java 21 TESTS 31 342 0
248714358 rras C Feb. 28, 2024, 8:51 a.m. OK Java 21 TESTS 31 343 307200
248803652 _ShenHua_ C Feb. 28, 2024, 7:44 p.m. OK Java 21 TESTS 31 373 409600
248722779 Aniket87 C Feb. 28, 2024, 9:57 a.m. OK Java 21 TESTS 31 374 102400
248827660 fabiowg C Feb. 29, 2024, 2:52 a.m. OK Java 21 TESTS 31 374 204800
248723039 Aniket87 C Feb. 28, 2024, 9:58 a.m. OK Java 21 TESTS 31 389 204800
248688465 anitya C Feb. 28, 2024, 4:15 a.m. OK Java 21 TESTS 31 389 409600
248723148 Aniket87 C Feb. 28, 2024, 9:59 a.m. OK Java 21 TESTS 31 405 102400
248747411 Yousef_Badr C Feb. 28, 2024, 12:43 p.m. OK Java 8 TESTS 31 202 0
248780574 FireBlade C Feb. 28, 2024, 4:31 p.m. OK Java 8 TESTS 31 249 0
248834453 gdax C Feb. 29, 2024, 4:51 a.m. OK Java 8 TESTS 31 280 0
248783532 Rinaaaa C Feb. 28, 2024, 4:53 p.m. OK Java 8 TESTS 31 280 0
248684622 wuhu_ac C Feb. 28, 2024, 3:16 a.m. OK Java 8 TESTS 31 295 0
248725600 like_even C Feb. 28, 2024, 10:18 a.m. OK Java 8 TESTS 31 296 0
248813631 roydurgesh C Feb. 28, 2024, 9:38 p.m. OK Java 8 TESTS 31 296 0
248684644 bhargavputti C Feb. 28, 2024, 3:16 a.m. OK Java 8 TESTS 31 296 0
248828415 joycelalalayaa C Feb. 29, 2024, 3:08 a.m. OK Java 8 TESTS 31 311 0
248827713 SecondThread C Feb. 29, 2024, 2:53 a.m. OK Java 8 TESTS 31 358 0
248727304 younijiuhao C Feb. 28, 2024, 10:32 a.m. OK MS C++ 2017 TESTS 31 109 0
248684824 xMartina C Feb. 28, 2024, 3:19 a.m. OK MS C++ 2017 TESTS 31 109 0
248755397 w010086 C Feb. 28, 2024, 1:30 p.m. OK MS C++ 2017 TESTS 31 140 0
248780480 sameerv314 C Feb. 28, 2024, 4:30 p.m. OK MS C++ 2017 TESTS 31 140 204800
248689102 Eagle2.00 C Feb. 28, 2024, 4:24 a.m. OK MS C++ 2017 TESTS 31 171 0
248738623 ammar007 C Feb. 28, 2024, 11:49 a.m. OK MS C++ 2017 TESTS 31 171 409600
248741588 Darling_siddu_06 C Feb. 28, 2024, 12:07 p.m. OK MS C++ 2017 TESTS 31 280 204800
248747013 bhujbalaniket2003 C Feb. 28, 2024, 12:40 p.m. OK MS C++ 2017 TESTS 31 312 409600
248739601 starone123 C Feb. 28, 2024, 11:55 a.m. OK MS C++ 2017 TESTS 31 312 409600
248819155 bkifhr10 C Feb. 28, 2024, 11:24 p.m. OK MS C++ 2017 TESTS 31 389 40345600
248792150 maximzasorin C Feb. 28, 2024, 5:58 p.m. OK PHP TESTS 31 202 0
248805457 ErikUs C Feb. 28, 2024, 8:03 p.m. OK PyPy 3 TESTS 31 326 7987200
248754541 Kintsugi C Feb. 28, 2024, 1:25 p.m. OK PyPy 3 TESTS 31 343 6451200
248756026 jiddoly C Feb. 28, 2024, 1:35 p.m. OK PyPy 3 TESTS 31 404 5836800
248802799 _vijay_rubesh213 C Feb. 28, 2024, 7:34 p.m. OK PyPy 3 TESTS 31 405 7475200
248827846 _vijay_rubesh213 C Feb. 29, 2024, 2:56 a.m. OK PyPy 3 TESTS 31 405 9728000
248780008 harryfloppa C Feb. 28, 2024, 4:27 p.m. OK PyPy 3 TESTS 31 420 7065600
248823053 Khatarnak_Khandu C Feb. 29, 2024, 1:08 a.m. OK PyPy 3 TESTS 31 452 6656000
248722795 barbaadbachchi C Feb. 28, 2024, 9:57 a.m. OK PyPy 3 TESTS 31 717 9318400
248778003 EgorQwerty C Feb. 28, 2024, 4:12 p.m. OK PyPy 3 TESTS 31 2043 8294400
248832351 __Sheldon__ C Feb. 29, 2024, 4:20 a.m. OK PyPy 3 TESTS 31 2542 6348800
248832981 Taymyr C Feb. 29, 2024, 4:29 a.m. OK PyPy 3-64 TESTS 31 140 9318400
248691431 Youarenotgood C Feb. 28, 2024, 4:52 a.m. OK PyPy 3-64 TESTS 31 171 9523200
248768631 N1664 C Feb. 28, 2024, 3:02 p.m. OK PyPy 3-64 TESTS 31 186 9113600
248717283 kefolen C Feb. 28, 2024, 9:12 a.m. OK PyPy 3-64 TESTS 31 217 10342400
248803876 demony C Feb. 28, 2024, 7:46 p.m. OK PyPy 3-64 TESTS 31 218 10035200
248722151 Shangguanyunxiao C Feb. 28, 2024, 9:52 a.m. OK PyPy 3-64 TESTS 31 233 11878400
248728725 khalit7 C Feb. 28, 2024, 10:43 a.m. OK PyPy 3-64 TESTS 31 249 7987200
248688695 YuVaRaAj C Feb. 28, 2024, 4:18 a.m. OK PyPy 3-64 TESTS 31 265 9011200
248685802 Sam_Jiang C Feb. 28, 2024, 3:36 a.m. OK PyPy 3-64 TESTS 31 265 12185600
248688675 kyleluo C Feb. 28, 2024, 4:18 a.m. OK PyPy 3-64 TESTS 31 280 8192000
248772238 boogeymanJW C Feb. 28, 2024, 3:29 p.m. OK Python 2 TESTS 31 779 204800
248832155 starpacker C Feb. 29, 2024, 4:17 a.m. OK Python 3 TESTS 31 358 409600
248816061 Bispo C Feb. 28, 2024, 10:17 p.m. OK Python 3 TESTS 31 514 409600
248687648 rajesh_sv C Feb. 28, 2024, 4:03 a.m. OK Python 3 TESTS 31 545 921600
248803699 demony C Feb. 28, 2024, 7:45 p.m. OK Python 3 TESTS 31 561 512000
248756214 A.Beir C Feb. 28, 2024, 1:36 p.m. OK Python 3 TESTS 31 920 102400
248770086 zzfflmt C Feb. 28, 2024, 3:13 p.m. OK Python 3 TESTS 31 1154 102400
248719311 CF_Soumyajit C Feb. 28, 2024, 9:28 a.m. OK Python 3 TESTS 31 1403 614400
248769977 danilbondarev362 C Feb. 28, 2024, 3:13 p.m. OK Python 3 TESTS 31 1777 409600
248762499 Sabuj_arif C Feb. 28, 2024, 2:17 p.m. OK Python 3 TESTS 31 1887 409600
248750153 Obaidat C Feb. 28, 2024, 12:59 p.m. OK Python 3 TESTS 31 1980 204800
248719857 Hyrulia C Feb. 28, 2024, 9:33 a.m. OK Rust 2021 TESTS 31 77 1024000
248713914 Hyrulia C Feb. 28, 2024, 8:48 a.m. OK Rust 2021 TESTS 31 78 921600
248687574 snamy520 C Feb. 28, 2024, 4:02 a.m. OK Rust 2021 TESTS 31 140 512000
248746309 vjudge.3 C Feb. 28, 2024, 12:36 p.m. OK Rust 2021 TESTS 31 171 512000
248729228 DreadedHippy C Feb. 28, 2024, 10:47 a.m. OK Rust 2021 TESTS 31 171 512000
248703659 twhice C Feb. 28, 2024, 7:12 a.m. OK Rust 2021 TESTS 31 217 512000

remove filters

Back to search problems