Codeforces Round 926 (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
1929 Codeforces Round 926 (Div. 2) FINISHED False 7200 23815499 Feb. 15, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15071 ) C Sasha and the Casino PROGRAMMING binary search brute force dp games greedy math

B'Sasha decided to give his girlfriend the best handbag, but unfortunately for Sasha, it is very expensive. Therefore, Sasha wants to earn it. After looking at earning tips on the internet, he decided to go to the casino. Sasha knows that the casino operates under the following rules. If Sasha places a bet of y coins (where y is a positive integer), then in case of winning, he will receive y cdot k coins (i.e., his number of coins will increase by y cdot (k - 1) ). And in case of losing, he will lose the entire bet amount (i.e., his number of coins will decrease by y ). Note that the bet amount must always be a positive ( > 0 ) integer and cannot exceed Sasha 's current number of coins. Sasha also knows that there is a promotion at the casino: he cannot lose more than x times in a row. Initially, Sasha has a coins. He wonders whether he can place bets such that he is guaranteed to win any number of coins. In other words, is it true that for any integer n , Sasha can make bets so that for any outcome that does not contradict the rules described above, at some moment of time he will have at least n coins. Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. The description of the test cases follows. The single line of each test case contains three integers k, x and a ( 2 <= q k <= q 30 , 1 <= q x <= q 100 , 1 <= q a <= q 10^9 ) -- the number of times the bet is increased in case of a win, the maximum number of consecutive losses, and the initial number of coins Sasha has. For each test case, output "YES" (without quotes) if Sasha can achieve it and "NO" (without quotes) otherwise. You can output "YES" and "NO" in any case (for example, the strings "yEs", "yes" and "Yes" will be recognized as a positive answer). In the first test case, Sasha can proceed as follows: Note that Sasha cannot'...

Tutorials

Codeforces Round #926 (Div. 2) Editorial.

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
246556266 stupidnessplusplus C Feb. 15, 2024, 4:16 p.m. OK C# 10 TESTS 8 46 409600
246562628 naman_017 C Feb. 15, 2024, 4:32 p.m. OK GNU C11 TESTS 8 15 307200
246557909 Sayeed1207 C Feb. 15, 2024, 4:20 p.m. OK GNU C11 TESTS 8 15 307200
246609390 shuba247 C Feb. 16, 2024, 2:45 a.m. OK GNU C11 TESTS 8 15 307200
246563117 cseh.2100031490 C Feb. 15, 2024, 4:33 p.m. OK GNU C11 TESTS 8 15 307200
246561841 Geto C Feb. 15, 2024, 4:30 p.m. OK GNU C11 TESTS 8 30 0
246560806 suelheybatova C Feb. 15, 2024, 4:28 p.m. OK GNU C11 TESTS 8 30 307200
246559972 udaynsahu C Feb. 15, 2024, 4:25 p.m. OK GNU C11 TESTS 8 30 307200
246596351 uchiha_itachi_1308 C Feb. 15, 2024, 9:43 p.m. OK GNU C11 TESTS 8 31 204800
246557634 CMRIT25_21R01A05A2 C Feb. 15, 2024, 4:19 p.m. OK GNU C11 TESTS 8 31 204800
246617099 Mowendao C Feb. 16, 2024, 4:49 a.m. OK GNU C11 TESTS 8 31 307200
246607150 JustJelly C Feb. 16, 2024, 2 a.m. OK GNU C++17 TESTS 8 0 0
246604557 Tesla. C Feb. 16, 2024, 1:02 a.m. OK GNU C++17 TESTS 8 0 0
246621876 Mehedi_34 C Feb. 16, 2024, 5:51 a.m. OK GNU C++17 TESTS 8 0 0
246620102 dredd_ak47 C Feb. 16, 2024, 5:28 a.m. OK GNU C++17 TESTS 8 0 0
246619883 dtcf_1025 C Feb. 16, 2024, 5:25 a.m. OK GNU C++17 TESTS 8 0 0
246616572 Harshiv_27 C Feb. 16, 2024, 4:41 a.m. OK GNU C++17 TESTS 8 0 0
246615487 a1234b C Feb. 16, 2024, 4:25 a.m. OK GNU C++17 TESTS 8 0 0
246614167 yell_ C Feb. 16, 2024, 4:04 a.m. OK GNU C++17 TESTS 8 0 0
246608468 xinw84416 C Feb. 16, 2024, 2:25 a.m. OK GNU C++17 TESTS 8 0 0
246621945 lover_boy C Feb. 16, 2024, 5:51 a.m. OK GNU C++17 TESTS 8 0 0
246619273 nbgeshila C Feb. 16, 2024, 5:18 a.m. OK GNU C++17 (64) TESTS 8 0 0
246620283 SGColin C Feb. 16, 2024, 5:30 a.m. OK GNU C++17 (64) TESTS 8 0 0
246618518 imfw C Feb. 16, 2024, 5:09 a.m. OK GNU C++17 (64) TESTS 8 0 0
246618021 H_W_Y C Feb. 16, 2024, 5:02 a.m. OK GNU C++17 (64) TESTS 8 0 0
246615431 sslove C Feb. 16, 2024, 4:24 a.m. OK GNU C++17 (64) TESTS 8 0 0
246614546 MGN111 C Feb. 16, 2024, 4:10 a.m. OK GNU C++17 (64) TESTS 8 0 0
246613139 uchihaSasuke- C Feb. 16, 2024, 3:49 a.m. OK GNU C++17 (64) TESTS 8 0 0
246612336 Meng17 C Feb. 16, 2024, 3:36 a.m. OK GNU C++17 (64) TESTS 8 0 0
246612057 watcherrr C Feb. 16, 2024, 3:32 a.m. OK GNU C++17 (64) TESTS 8 0 0
246611909 BananaWolf C Feb. 16, 2024, 3:30 a.m. OK GNU C++17 (64) TESTS 8 0 0
246620614 coderstack C Feb. 16, 2024, 5:35 a.m. OK GNU C++20 (64) TESTS 8 0 0
246622602 notGlydon C Feb. 16, 2024, 5:59 a.m. OK GNU C++20 (64) TESTS 8 0 0
246622594 El-Metador C Feb. 16, 2024, 5:59 a.m. OK GNU C++20 (64) TESTS 8 0 0
246622563 abiramee C Feb. 16, 2024, 5:58 a.m. OK GNU C++20 (64) TESTS 8 0 0
246622366 CountingGroup C Feb. 16, 2024, 5:56 a.m. OK GNU C++20 (64) TESTS 8 0 0
246622309 BakievaShukrona C Feb. 16, 2024, 5:56 a.m. OK GNU C++20 (64) TESTS 8 0 0
246622185 Rahas C Feb. 16, 2024, 5:54 a.m. OK GNU C++20 (64) TESTS 8 0 0
246622023 Hasnat0006 C Feb. 16, 2024, 5:52 a.m. OK GNU C++20 (64) TESTS 8 0 0
246621016 PCxOM C Feb. 16, 2024, 5:40 a.m. OK GNU C++20 (64) TESTS 8 0 0
246620507 YakultGo C Feb. 16, 2024, 5:34 a.m. OK GNU C++20 (64) TESTS 8 0 0
246568187 ozz C Feb. 15, 2024, 5:08 p.m. OK Go TESTS 8 15 0
246568701 ajayg3059 C Feb. 15, 2024, 5:10 p.m. OK Go TESTS 8 15 102400
246567779 ajayg3059 C Feb. 15, 2024, 5:05 p.m. OK Go TESTS 8 15 102400
246569106 euclidstellar C Feb. 15, 2024, 5:12 p.m. OK Go TESTS 8 61 102400
246593073 giko C Feb. 15, 2024, 8:56 p.m. OK Java 21 TESTS 8 202 0
246584755 polsage C Feb. 15, 2024, 7:20 p.m. OK Java 21 TESTS 8 233 0
246578196 var_hash C Feb. 15, 2024, 6:18 p.m. OK Java 21 TESTS 8 233 0
246579086 Jagnath_Reddy C Feb. 15, 2024, 6:25 p.m. OK Java 21 TESTS 8 234 204800
246571547 minibin C Feb. 15, 2024, 5:28 p.m. OK Java 21 TESTS 8 234 512000
246611462 Ligh0x74 C Feb. 16, 2024, 3:22 a.m. OK Java 21 TESTS 8 248 0
246593816 giko C Feb. 15, 2024, 9:05 p.m. OK Java 21 TESTS 8 248 0
246567561 arnav_gupta C Feb. 15, 2024, 5:04 p.m. OK Java 21 TESTS 8 248 102400
246581401 AKhacks C Feb. 15, 2024, 6:47 p.m. OK Java 21 TESTS 8 249 0
246567409 arnav_gupta C Feb. 15, 2024, 5:04 p.m. OK Java 21 TESTS 8 249 0
246591646 RahulAhuja2901 C Feb. 15, 2024, 8:36 p.m. OK Java 8 TESTS 8 93 0
246573547 v3n1v1c11v1c1 C Feb. 15, 2024, 5:42 p.m. OK Java 8 TESTS 8 93 0
246616138 tirthgohil1410 C Feb. 16, 2024, 4:35 a.m. OK Java 8 TESTS 8 108 0
246565803 arutsudar C Feb. 15, 2024, 4:57 p.m. OK Java 8 TESTS 8 108 0
246608043 Khan_2020 C Feb. 16, 2024, 2:17 a.m. OK Java 8 TESTS 8 124 0
246620444 1229050383ZS C Feb. 16, 2024, 5:33 a.m. OK Java 8 TESTS 8 124 0
246561217 jinyiqiqi C Feb. 15, 2024, 4:29 p.m. OK Java 8 TESTS 8 124 0
246557640 ifajka C Feb. 15, 2024, 4:19 p.m. OK Java 8 TESTS 8 140 0
246567433 ankansad_003 C Feb. 15, 2024, 5:04 p.m. OK Java 8 TESTS 8 155 0
246560063 itrajeevranjan C Feb. 15, 2024, 4:26 p.m. OK Java 8 TESTS 8 155 0
246562129 Karthik28 C Feb. 15, 2024, 4:31 p.m. OK Kotlin 1.7 TESTS 8 452 10035200
246611246 wooooow C Feb. 16, 2024, 3:19 a.m. OK MS C++ 2017 TESTS 8 0 0
246589978 6ziv C Feb. 15, 2024, 8:16 p.m. OK MS C++ 2017 TESTS 8 15 0
246561000 wydwydwydwyd C Feb. 15, 2024, 4:28 p.m. OK MS C++ 2017 TESTS 8 15 0
246560057 Najmus_Sakib_Rashid C Feb. 15, 2024, 4:26 p.m. OK MS C++ 2017 TESTS 8 15 0
246559391 Kuzialakomkin228 C Feb. 15, 2024, 4:24 p.m. OK MS C++ 2017 TESTS 8 15 0
246582766 Devansh_Dhookia C Feb. 15, 2024, 7 p.m. OK MS C++ 2017 TESTS 8 30 0
246582618 zetiboom C Feb. 15, 2024, 6:58 p.m. OK MS C++ 2017 TESTS 8 30 0
246609647 aluckyboy C Feb. 16, 2024, 2:50 a.m. OK MS C++ 2017 TESTS 8 31 0
246583388 akhand8500 C Feb. 15, 2024, 7:06 p.m. OK MS C++ 2017 TESTS 8 31 0
246557479 clim_ber C Feb. 15, 2024, 4:19 p.m. OK MS C++ 2017 TESTS 8 78 0
246556402 karthik_2002 C Feb. 15, 2024, 4:16 p.m. OK PHP TESTS 8 30 0
246557433 OLOGY C Feb. 15, 2024, 4:19 p.m. OK PyPy 2 TESTS 8 124 819200
246585899 RedMinecrafter101 C Feb. 15, 2024, 7:31 p.m. OK PyPy 3 TESTS 8 124 2764800
246573562 plevande C Feb. 15, 2024, 5:42 p.m. OK PyPy 3 TESTS 8 124 2764800
246579656 RedMinecrafter101 C Feb. 15, 2024, 6:31 p.m. OK PyPy 3 TESTS 8 124 2867200
246577371 tiom4eg C Feb. 15, 2024, 6:12 p.m. OK PyPy 3 TESTS 8 124 4812800
246557361 Slowhorse_ C Feb. 15, 2024, 4:19 p.m. OK PyPy 3 TESTS 8 155 3584000
246561116 Starswap C Feb. 15, 2024, 4:28 p.m. OK PyPy 3 TESTS 8 155 4403200
246561278 Abdelrahman_Elhabal123 C Feb. 15, 2024, 4:29 p.m. OK PyPy 3 TESTS 8 170 5529600
246566190 shubhamgoel0711 C Feb. 15, 2024, 4:58 p.m. OK PyPy 3 TESTS 8 171 5120000
246560521 niha_1511 C Feb. 15, 2024, 4:27 p.m. OK PyPy 3 TESTS 8 171 6553600
246566412 Nhannghia2007 C Feb. 15, 2024, 4:59 p.m. OK PyPy 3 TESTS 8 186 4710400
246593018 gardengnome C Feb. 15, 2024, 8:55 p.m. OK PyPy 3-64 TESTS 8 62 1638400
246556526 _Malware_ C Feb. 15, 2024, 4:16 p.m. OK PyPy 3-64 TESTS 8 77 3072000
246615598 Remineva C Feb. 16, 2024, 4:27 a.m. OK PyPy 3-64 TESTS 8 77 3276800
246565766 InHng C Feb. 15, 2024, 4:57 p.m. OK PyPy 3-64 TESTS 8 77 3276800
246622780 cybsbbb C Feb. 16, 2024, 6:01 a.m. OK PyPy 3-64 TESTS 8 77 3584000
246578389 RobinFromTheHood C Feb. 15, 2024, 6:20 p.m. OK PyPy 3-64 TESTS 8 77 3891200
246573302 tan_delhi C Feb. 15, 2024, 5:40 p.m. OK PyPy 3-64 TESTS 8 77 3891200
246608953 liupengsay C Feb. 16, 2024, 2:36 a.m. OK PyPy 3-64 TESTS 8 77 5017600
246607158 Drought C Feb. 16, 2024, 2 a.m. OK PyPy 3-64 TESTS 8 77 5120000
246572834 tan_delhi C Feb. 15, 2024, 5:37 p.m. OK PyPy 3-64 TESTS 8 78 3993600
246566383 OLOGY C Feb. 15, 2024, 4:59 p.m. OK Python 2 TESTS 8 31 0
246609625 pkr1012 C Feb. 16, 2024, 2:50 a.m. OK Python 3 TESTS 8 46 0
246608548 -wabi_sabi C Feb. 16, 2024, 2:27 a.m. OK Python 3 TESTS 8 46 0
246595438 Rogue_Ningen C Feb. 15, 2024, 9:29 p.m. OK Python 3 TESTS 8 46 0
246591061 Slata C Feb. 15, 2024, 8:29 p.m. OK Python 3 TESTS 8 46 0
246584508 LastTryFr C Feb. 15, 2024, 7:17 p.m. OK Python 3 TESTS 8 46 0
246580627 rishabhxchoudhary C Feb. 15, 2024, 6:39 p.m. OK Python 3 TESTS 8 46 0
246580320 boomerr C Feb. 15, 2024, 6:36 p.m. OK Python 3 TESTS 8 46 0
246576784 Sabuj_arif C Feb. 15, 2024, 6:07 p.m. OK Python 3 TESTS 8 46 0
246575949 maj0rio C Feb. 15, 2024, 6:01 p.m. OK Python 3 TESTS 8 46 0
246575373 maherayari24 C Feb. 15, 2024, 5:56 p.m. OK Python 3 TESTS 8 46 0
246556895 sabbirahmeds877 C Feb. 15, 2024, 4:17 p.m. OK Ruby 3 TESTS 8 405 204800
246586686 0x81 C Feb. 15, 2024, 7:40 p.m. OK Ruby 3 TESTS 8 717 716800
246576783 vstiff C Feb. 15, 2024, 6:07 p.m. OK Rust 2021 TESTS 8 15 0
246570800 vstiff C Feb. 15, 2024, 5:23 p.m. OK Rust 2021 TESTS 8 15 0
246570555 Chalaghoram C Feb. 15, 2024, 5:21 p.m. OK Rust 2021 TESTS 8 15 0
246621262 snamy520 C Feb. 16, 2024, 5:43 a.m. OK Rust 2021 TESTS 8 30 0
246621027 snamy520 C Feb. 16, 2024, 5:40 a.m. OK Rust 2021 TESTS 8 30 0
246570604 r3kste C Feb. 15, 2024, 5:22 p.m. OK Rust 2021 TESTS 8 30 0
246613151 BobChuckyJoe C Feb. 16, 2024, 3:49 a.m. OK Rust 2021 TESTS 8 31 0
246568950 Chalaghoram C Feb. 15, 2024, 5:11 p.m. OK Rust 2021 TESTS 8 31 0
246563263 godzilla30 C Feb. 15, 2024, 4:33 p.m. OK Rust 2021 TESTS 8 31 0
246557652 ElectronApps C Feb. 15, 2024, 4:19 p.m. OK Rust 2021 TESTS 8 77 0

remove filters

Back to search problems