Codeforces Global Round 28

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
2048 Codeforces Global Round 28 FINISHED False 10800 41786723 Dec. 19, 2024, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 22814 ) A Kevin and Combination Lock PROGRAMMING brute force implementation math number theory

Kevin is trapped in Lakeside Village by Grace. At the exit of the village, there is a combination lock that can only be unlocked if Kevin solves it. The combination lock starts with an integer (x). Kevin can perform one of the following two operations zero or more times: If (x \neq 33), he can select two consecutive digits (3) from (x) and remove them simultaneously. For example, if (x = 13\,323), he can remove the second and third (3), changing (x) to (123). If (x \geq 33), he can change (x) to (x - 33). For example, if (x = 99), he can choose this operation to change (x) to (99 - 33 = 66). When the value of (x) on the combination lock becomes (0), Kevin can unlock the lock and escape from Lakeside Village. Please determine whether it is possible for Kevin to unlock the combination lock and escape. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 10^4)). The only line of each test case contains a positive integer (x) ((1\leq x\leq 10^9)). For each test case, output "YES" or "NO" (without quotes) in one line, representing whether Kevin can unlock the combination lock and escape. You can output the answer in any case (upper or lower). For example, the strings " yEs ", " yes ", " Yes ", and " YES " will be recognized as positive responses. For the first test case, (165\xrightarrow{-33}132\xrightarrow{-33}99\xrightarrow{-33}66\xrightarrow{-33}33\xrightarrow{-33}0). For the second test case, (6369\xrightarrow{-33}6{\color{red}{33}}6\xrightarrow{\text{remove "33"}}66\xrightarrow{-33}33\xrightarrow{-33}0). For the third test case, it can be proven that, regardless of the operations performed, (666) cannot be transformed into (0).

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
297333791 mban259 A Dec. 19, 2024, 4:56 p.m. OK C# 10 TESTS 5 124 512000
297371467 mr_raj12 A Dec. 20, 2024, 12:19 a.m. OK C++17 (GCC 7-32) TESTS 5 30 0
297380717 MM756 A Dec. 20, 2024, 3:50 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
297378678 Xier A Dec. 20, 2024, 3:15 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
297376486 Serioton_codes A Dec. 20, 2024, 2:32 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
297391470 _Vengeance_ A Dec. 20, 2024, 6:06 a.m. OK C++17 (GCC 7-32) TESTS 5 46 0
297391426 New_Bie_21 A Dec. 20, 2024, 6:05 a.m. OK C++17 (GCC 7-32) TESTS 5 46 0
297391131 yashupd A Dec. 20, 2024, 6:03 a.m. OK C++17 (GCC 7-32) TESTS 5 46 0
297390728 theKnave A Dec. 20, 2024, 5:59 a.m. OK C++17 (GCC 7-32) TESTS 5 46 0
297390357 accismus_k A Dec. 20, 2024, 5:56 a.m. OK C++17 (GCC 7-32) TESTS 5 46 0
297390086 Krish_Kalola A Dec. 20, 2024, 5:53 a.m. OK C++17 (GCC 7-32) TESTS 5 46 0
297365270 AliEmadi A Dec. 19, 2024, 9:22 p.m. OK C++20 (GCC 13-64) TESTS 5 30 102400
297361485 Mahm2od A Dec. 19, 2024, 8:25 p.m. OK C++20 (GCC 13-64) TESTS 5 30 16076800
297383572 charanreddy.23 A Dec. 20, 2024, 4:35 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
297379090 StReLoK- A Dec. 20, 2024, 3:22 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
297367145 EduardoBrito A Dec. 19, 2024, 10:02 p.m. OK C++20 (GCC 13-64) TESTS 5 31 0
297365452 Salmanov_01 A Dec. 19, 2024, 9:26 p.m. OK C++20 (GCC 13-64) TESTS 5 31 0
297386444 sloppy_coder A Dec. 20, 2024, 5:13 a.m. OK C++20 (GCC 13-64) TESTS 5 31 102400
297373131 wakanda-forever A Dec. 20, 2024, 1:10 a.m. OK C++20 (GCC 13-64) TESTS 5 31 102400
297371184 wdnmdwrnmmp A Dec. 20, 2024, 12:10 a.m. OK C++20 (GCC 13-64) TESTS 5 31 102400
297391154 Dr.KeK A Dec. 20, 2024, 6:03 a.m. OK C++20 (GCC 13-64) TESTS 5 46 0
297387088 shubhayu.sarkar02 A Dec. 20, 2024, 5:21 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 30 0
297375023 signorino A Dec. 20, 2024, 2 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
297373669 Anonyme A Dec. 20, 2024, 1:25 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
297368147 brahma_afk A Dec. 19, 2024, 10:27 p.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
297361153 Christine_Davain A Dec. 19, 2024, 8:20 p.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
297378013 iliyian A Dec. 20, 2024, 3:03 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 102400
297356581 Alexander_07 A Dec. 19, 2024, 7:26 p.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 102400
297390834 Bambo0st A Dec. 20, 2024, 6 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 46 0
297390210 practice__A A Dec. 20, 2024, 5:54 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 46 0
297388584 shyamer3 A Dec. 20, 2024, 5:37 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 46 0
297336099 Hemakshi_k A Dec. 19, 2024, 5:03 p.m. OK GNU C11 TESTS 5 77 0
297389711 saklan A Dec. 20, 2024, 5:49 a.m. OK GNU C11 TESTS 5 77 102400
297387649 butterfly-- A Dec. 20, 2024, 5:27 a.m. OK GNU C11 TESTS 5 77 102400
297387102 butterfly-- A Dec. 20, 2024, 5:21 a.m. OK GNU C11 TESTS 5 77 102400
297356149 i_was_blind_now_i_c A Dec. 19, 2024, 7:22 p.m. OK GNU C11 TESTS 5 78 102400
297339557 CharlesLarose A Dec. 19, 2024, 5:15 p.m. OK GNU C11 TESTS 5 92 0
297391237 Akshara_Sarma A Dec. 20, 2024, 6:04 a.m. OK GNU C11 TESTS 5 92 102400
297358637 Noseferatu A Dec. 19, 2024, 7:48 p.m. OK GNU C11 TESTS 5 93 0
297340375 Manveer_Kaur A Dec. 19, 2024, 5:18 p.m. OK GNU C11 TESTS 5 93 0
297363508 sibatullahhosenrafi A Dec. 19, 2024, 8:52 p.m. OK GNU C11 TESTS 5 93 102400
297379806 amit_roy A Dec. 20, 2024, 3:34 a.m. OK Java 21 TESTS 5 218 307200
297354667 minimoh A Dec. 19, 2024, 7:05 p.m. OK Java 21 TESTS 5 218 716800
297359172 dan00ile A Dec. 19, 2024, 7:54 p.m. OK Java 21 TESTS 5 218 2150400
297335121 alibaba436 A Dec. 19, 2024, 5 p.m. OK Java 21 TESTS 5 250 1024000
297357137 RahulAhuja2901 A Dec. 19, 2024, 7:32 p.m. OK Java 21 TESTS 5 265 0
297383005 Armanda69 A Dec. 20, 2024, 4:26 a.m. OK Java 21 TESTS 5 265 307200
297365780 Avid.Angler A Dec. 19, 2024, 9:32 p.m. OK Java 21 TESTS 5 265 409600
297351144 DasVidanIya A Dec. 19, 2024, 6:39 p.m. OK Java 21 TESTS 5 265 614400
297385703 Code_era_yug A Dec. 20, 2024, 5:04 a.m. OK Java 21 TESTS 5 265 819200
297368733 carxOverly A Dec. 19, 2024, 10:46 p.m. OK Java 21 TESTS 5 265 2867200
297390914 dayyanulhaque2022 A Dec. 20, 2024, 6:01 a.m. OK Java 8 TESTS 5 218 0
297333733 iamcodebug A Dec. 19, 2024, 4:56 p.m. OK Java 8 TESTS 5 233 0
297356122 Akshat_Gupta._ A Dec. 19, 2024, 7:21 p.m. OK Java 8 TESTS 5 234 0
297354119 Ashank305 A Dec. 19, 2024, 7 p.m. OK Java 8 TESTS 5 234 0
297358279 average_coder_guy A Dec. 19, 2024, 7:44 p.m. OK Java 8 TESTS 5 249 0
297343896 nithin_2305 A Dec. 19, 2024, 5:29 p.m. OK Java 8 TESTS 5 265 0
297388320 dayyanulhaque2022 A Dec. 20, 2024, 5:34 a.m. OK Java 8 TESTS 5 452 0
297388759 dayyanulhaque2022 A Dec. 20, 2024, 5:39 a.m. OK Java 8 TESTS 5 561 0
297376641 YhuanDebeste A Dec. 20, 2024, 2:35 a.m. OK Perl TESTS 5 187 0
297386491 atharvwarade A Dec. 20, 2024, 5:14 a.m. OK PyPy 3 TESTS 5 202 5529600
297357422 WalrusRamen21 A Dec. 19, 2024, 7:35 p.m. OK PyPy 3 TESTS 5 218 4915200
297351509 SPARSH_EE1 A Dec. 19, 2024, 6:41 p.m. OK PyPy 3 TESTS 5 218 5120000
297366042 fredd224 A Dec. 19, 2024, 9:38 p.m. OK PyPy 3 TESTS 5 234 6553600
297380534 Qtnthinh2231 A Dec. 20, 2024, 3:47 a.m. OK PyPy 3-64 TESTS 5 92 2764800
297379126 Horse-chan A Dec. 20, 2024, 3:23 a.m. OK PyPy 3-64 TESTS 5 92 2867200
297358385 hon666 A Dec. 19, 2024, 7:45 p.m. OK PyPy 3-64 TESTS 5 93 2969600
297368356 e.moghisi A Dec. 19, 2024, 10:34 p.m. OK PyPy 3-64 TESTS 5 93 3072000
297339698 Superionsai A Dec. 19, 2024, 5:15 p.m. OK PyPy 3-64 TESTS 5 93 3072000
297354829 dxulet A Dec. 19, 2024, 7:07 p.m. OK PyPy 3-64 TESTS 5 93 3174400
297351271 DeathbringerY A Dec. 19, 2024, 6:40 p.m. OK PyPy 3-64 TESTS 5 108 2867200
297355382 jvatsal0709 A Dec. 19, 2024, 7:13 p.m. OK PyPy 3-64 TESTS 5 108 2969600
297380706 yui_hirasawa A Dec. 20, 2024, 3:50 a.m. OK PyPy 3-64 TESTS 5 108 3072000
297356873 ChillCpGuy A Dec. 19, 2024, 7:29 p.m. OK PyPy 3-64 TESTS 5 108 3174400
297379858 SuperDynamic346 A Dec. 20, 2024, 3:35 a.m. OK Python 3 TESTS 5 77 0
297334029 ChudiDhruv A Dec. 19, 2024, 4:57 p.m. OK Python 3 TESTS 5 77 0
297340708 hinabaina A Dec. 19, 2024, 5:19 p.m. OK Python 3 TESTS 5 77 102400
297383477 Epiclightfire A Dec. 20, 2024, 4:33 a.m. OK Python 3 TESTS 5 77 204800
297340377 shivakumarvanam27 A Dec. 19, 2024, 5:18 p.m. OK Python 3 TESTS 5 77 716800
297333571 Sper A Dec. 19, 2024, 4:55 p.m. OK Python 3 TESTS 5 92 0
297385250 ShiHaoHu A Dec. 20, 2024, 4:58 a.m. OK Python 3 TESTS 5 93 0
297375189 RUTHVIK0811 A Dec. 20, 2024, 2:04 a.m. OK Python 3 TESTS 5 93 0
297374607 saurabh_k1 A Dec. 20, 2024, 1:50 a.m. OK Python 3 TESTS 5 93 0
297371116 AryanGoel575 A Dec. 20, 2024, 12:08 a.m. OK Python 3 TESTS 5 93 0
297354822 abdulrahmanElfeky A Dec. 19, 2024, 7:07 p.m. OK Rust 2021 TESTS 5 46 0
297381495 mapcrafter2048 A Dec. 20, 2024, 4:03 a.m. OK Rust 2021 TESTS 5 77 0
297354520 urparvezali A Dec. 19, 2024, 7:04 p.m. OK Rust 2021 TESTS 5 77 0

remove filters

Back to search problems