Codeforces Round 973 (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
2013 Codeforces Round 973 (Div. 2) FINISHED False 7200 49562723 Sept. 20, 2024, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 14481 ) C Password Cracking PROGRAMMING brute force constructive algorithms interactive strings

Dimash learned that Mansur wrote something very unpleasant about him to a friend, so he decided to find out his password at all costs and discover what exactly he wrote. Believing in the strength of his password, Mansur stated that his password — is a binary string of length (n). He is also ready to answer Dimash's questions of the following type: Dimash says a binary string (t), and Mansur replies whether it is true that (t) is a substring of his password. Help Dimash find out the password in no more than (2n) operations; otherwise, Mansur will understand the trick and stop communicating with him. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 100)). The description of the test cases follows. At the beginning of each test case, first read (n) ((1 \le n \le 100)) — the size of the binary string. Then proceed to guessing it. To guess each string (s), you can make no more than (2n) queries of the following type: " ? t ", where (t) is a binary string such that ((1 \le |t| \le n)). In response to this query, you will receive (1) if (t) is a substring of (s), and (0) otherwise. Once you receive the answer, output a single string in the following format: " ! s ", where (s) is a binary string of size (n). After that, proceed to solve the next test case. If you make an incorrect attempt or exceed the limit of (2n) attempts, you will receive (-1) instead of an answer and get the verdict Wrong answer . In this case, your program should terminate immediately to avoid undefined verdicts. After outputting the queries, do not forget to output a newline character and flush the output buffer. Otherwise, you will receive the verdict Solution "hung" . To flush the buffer, use: fflush(stdout) or cout.flush() in C++; System.out.flush() in Java; flush(output) in Pascal; stdout.flush() in Python; refer to the documentation for other languag

Tutorials

134298

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
282128683 m1_k3 C Sept. 20, 2024, 8:43 p.m. OK C# 10 TESTS 7 155 2662400
282117546 G9jr C Sept. 20, 2024, 6:50 p.m. OK C# 10 TESTS 7 171 2764800
282154843 Elysia_chan C Sept. 21, 2024, 4:39 a.m. OK C# 10 TESTS 7 187 2560000
282151729 poat C Sept. 21, 2024, 3:59 a.m. OK C++17 (GCC 7-32) TESTS 7 62 102400
282145084 strikerrr C Sept. 21, 2024, 2:22 a.m. OK C++17 (GCC 7-32) TESTS 7 77 0
282153355 daulet.sabden C Sept. 21, 2024, 4:17 a.m. OK C++17 (GCC 7-32) TESTS 7 77 102400
282145330 TwinklerCHN C Sept. 21, 2024, 2:26 a.m. OK C++17 (GCC 7-32) TESTS 7 77 102400
282125008 cpismayilmmdv985 C Sept. 20, 2024, 8 p.m. OK C++17 (GCC 7-32) TESTS 7 92 0
282122127 Roll_no_68 C Sept. 20, 2024, 7:30 p.m. OK C++17 (GCC 7-32) TESTS 7 92 0
282160494 harshal02 C Sept. 21, 2024, 5:47 a.m. OK C++17 (GCC 7-32) TESTS 7 92 102400
282146621 notSoEzPz C Sept. 21, 2024, 2:47 a.m. OK C++17 (GCC 7-32) TESTS 7 92 102400
282144129 DavidCopperfield C Sept. 21, 2024, 2:07 a.m. OK C++17 (GCC 7-32) TESTS 7 92 102400
282108979 smamm C Sept. 20, 2024, 5:50 p.m. OK C++17 (GCC 7-32) TESTS 7 92 102400
282149732 Alonso_zz C Sept. 21, 2024, 3:33 a.m. OK C++20 (GCC 13-64) TESTS 7 62 102400
282141775 syxy1107 C Sept. 21, 2024, 1:24 a.m. OK C++20 (GCC 13-64) TESTS 7 77 0
282162421 b_i_b C Sept. 21, 2024, 6:06 a.m. OK C++20 (GCC 13-64) TESTS 7 77 102400
282149834 YoussefMorad1 C Sept. 21, 2024, 3:34 a.m. OK C++20 (GCC 13-64) TESTS 7 77 102400
282148554 Joigca C Sept. 21, 2024, 3:17 a.m. OK C++20 (GCC 13-64) TESTS 7 77 102400
282144072 jeremyjy C Sept. 21, 2024, 2:06 a.m. OK C++20 (GCC 13-64) TESTS 7 77 102400
282140235 Rating_10101010 C Sept. 21, 2024, 12:50 a.m. OK C++20 (GCC 13-64) TESTS 7 77 102400
282138348 Alasco C Sept. 21, 2024, 12:03 a.m. OK C++20 (GCC 13-64) TESTS 7 77 102400
282115383 tHeQuiEtWoLf C Sept. 20, 2024, 6:32 p.m. OK C++20 (GCC 13-64) TESTS 7 77 102400
282108239 hzk_cpp C Sept. 20, 2024, 5:47 p.m. OK C++20 (GCC 13-64) TESTS 7 77 102400
282159656 chaserxJ C Sept. 21, 2024, 5:38 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 77 102400
282147801 Linver C Sept. 21, 2024, 3:06 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 77 102400
282143410 zzulky C Sept. 21, 2024, 1:55 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 77 102400
282101591 DiyorbekX C Sept. 20, 2024, 4:33 p.m. OK C++23 (GCC 14-64, msys2) TESTS 7 77 102400
282154009 KisuraOP C Sept. 21, 2024, 4:27 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 92 0
282140357 Souture C Sept. 21, 2024, 12:53 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 92 0
282149707 arahant C Sept. 21, 2024, 3:33 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 92 102400
282113111 Rish106 C Sept. 20, 2024, 6:16 p.m. OK C++23 (GCC 14-64, msys2) TESTS 7 93 0
282161959 vishxx C Sept. 21, 2024, 6:02 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 93 102400
282152529 Saif_Ahmed008 C Sept. 21, 2024, 4:07 a.m. OK C++23 (GCC 14-64, msys2) TESTS 7 93 102400
282102215 ruban C Sept. 20, 2024, 4:34 p.m. OK FPC TESTS 7 140 0
282102385 frocemetocode C Sept. 20, 2024, 4:34 p.m. OK GNU C11 TESTS 7 203 8294400
282149175 moranzi74 C Sept. 21, 2024, 3:25 a.m. OK GNU C11 TESTS 7 233 8294400
282110298 bierbauch C Sept. 20, 2024, 5:57 p.m. OK Go TESTS 7 233 3379200
282153147 someone311 C Sept. 21, 2024, 4:14 a.m. OK Java 21 TESTS 7 374 204800
282116350 Ati_3 C Sept. 20, 2024, 6:40 p.m. OK Java 21 TESTS 7 406 2457600
282111387 brksfsrt C Sept. 20, 2024, 6:04 p.m. OK Java 21 TESTS 7 421 0
282117535 Sarvjeet619 C Sept. 20, 2024, 6:50 p.m. OK Java 21 TESTS 7 421 1945600
282121213 amit_roy C Sept. 20, 2024, 7:22 p.m. OK Java 21 TESTS 7 468 512000
282153286 someone311 C Sept. 21, 2024, 4:16 a.m. OK Java 21 TESTS 7 468 614400
282111567 Nagendravarma C Sept. 20, 2024, 6:05 p.m. OK Java 21 TESTS 7 483 512000
282116116 Ati_3 C Sept. 20, 2024, 6:38 p.m. OK Java 21 TESTS 7 483 1228800
282135273 zoexue C Sept. 20, 2024, 10:40 p.m. OK Java 21 TESTS 7 484 614400
282135140 sagbis C Sept. 20, 2024, 10:37 p.m. OK Java 21 TESTS 7 484 716800
282120674 RahulAhuja2901 C Sept. 20, 2024, 7:17 p.m. OK Java 8 TESTS 7 296 0
282126261 sefifer C Sept. 20, 2024, 8:14 p.m. OK Java 8 TESTS 7 342 0
282142587 duyipeng C Sept. 21, 2024, 1:40 a.m. OK Java 8 TESTS 7 359 0
282100732 MaroMaxor C Sept. 20, 2024, 4:32 p.m. OK Java 8 TESTS 7 374 0
282153492 lanby C Sept. 21, 2024, 4:19 a.m. OK Java 8 TESTS 7 437 0
282156148 parad512 C Sept. 21, 2024, 4:57 a.m. OK Java 8 TESTS 7 483 0
282101993 pranavpatil9876 C Sept. 20, 2024, 4:34 p.m. OK Java 8 TESTS 7 499 0
282154543 Mr_A C Sept. 21, 2024, 4:35 a.m. OK Java 8 TESTS 7 515 0
282148939 xsmoker C Sept. 21, 2024, 3:22 a.m. OK Java 8 TESTS 7 515 0
282121954 tejas_5 C Sept. 20, 2024, 7:28 p.m. OK Java 8 TESTS 7 843 0
282122623 sparklesoumen C Sept. 20, 2024, 7:35 p.m. OK Mono C# TESTS 7 202 2969600
282109087 CLown1331 C Sept. 20, 2024, 5:51 p.m. OK PyPy 3 TESTS 7 468 3891200
282137724 Mostafa_Alaa99 C Sept. 20, 2024, 11:45 p.m. OK PyPy 3 TESTS 7 484 7987200
282119719 rasheed_ashen_one C Sept. 20, 2024, 7:09 p.m. OK PyPy 3 TESTS 7 499 5939200
282119605 rasheed_ashen_one C Sept. 20, 2024, 7:08 p.m. OK PyPy 3 TESTS 7 499 5939200
282121298 SuperMax33 C Sept. 20, 2024, 7:23 p.m. OK PyPy 3 TESTS 7 515 9420800
282101807 Artistic_code C Sept. 20, 2024, 4:33 p.m. OK PyPy 3 TESTS 7 577 9420800
282136955 lawang24 C Sept. 20, 2024, 11:22 p.m. OK PyPy 3-64 TESTS 7 265 3584000
282155538 maruf_khan96 C Sept. 21, 2024, 4:49 a.m. OK PyPy 3-64 TESTS 7 280 3993600
282156046 maruf_khan96 C Sept. 21, 2024, 4:56 a.m. OK PyPy 3-64 TESTS 7 312 4505600
282133575 abhaumik24 C Sept. 20, 2024, 10:02 p.m. OK PyPy 3-64 TESTS 7 312 7168000
282109117 CLown1331 C Sept. 20, 2024, 5:51 p.m. OK PyPy 3-64 TESTS 7 327 3379200
282108152 Mazga C Sept. 20, 2024, 5:47 p.m. OK PyPy 3-64 TESTS 7 327 3481600
282108547 xenonide C Sept. 20, 2024, 5:48 p.m. OK PyPy 3-64 TESTS 7 327 4710400
282156304 Euphoriababy C Sept. 21, 2024, 4:59 a.m. OK PyPy 3-64 TESTS 7 327 4915200
282158731 ibraheemkureshi C Sept. 21, 2024, 5:28 a.m. OK PyPy 3-64 TESTS 7 328 3891200
282155949 maruf_khan96 C Sept. 21, 2024, 4:54 a.m. OK PyPy 3-64 TESTS 7 328 4096000
282109278 CLown1331 C Sept. 20, 2024, 5:52 p.m. OK Python 3 TESTS 7 186 0
282161949 def337485 C Sept. 21, 2024, 6:02 a.m. OK Python 3 TESTS 7 218 0
282153229 Googler437 C Sept. 21, 2024, 4:16 a.m. OK Python 3 TESTS 7 234 0
282133766 HARSHdeep1234 C Sept. 20, 2024, 10:06 p.m. OK Python 3 TESTS 7 234 0
282111147 gautamb1a2b C Sept. 20, 2024, 6:02 p.m. OK Python 3 TESTS 7 234 0
282145226 adipuli_2004 C Sept. 21, 2024, 2:24 a.m. OK Python 3 TESTS 7 249 0
282102439 gdrw_long C Sept. 20, 2024, 4:34 p.m. OK Python 3 TESTS 7 249 0
282108232 MTA9402 C Sept. 20, 2024, 5:47 p.m. OK Python 3 TESTS 7 249 204800
282113237 altruistic99 C Sept. 20, 2024, 6:16 p.m. OK Python 3 TESTS 7 250 0
282113186 undercovers23 C Sept. 20, 2024, 6:16 p.m. OK Python 3 TESTS 7 250 0
282161255 0x81 C Sept. 21, 2024, 5:55 a.m. OK Ruby 3 TESTS 7 546 2355200
282134437 vstiff C Sept. 20, 2024, 10:20 p.m. OK Rust 2021 TESTS 7 109 0
282124622 DreadedHippy C Sept. 20, 2024, 7:56 p.m. OK Rust 2021 TESTS 7 124 0
282153940 Spheniscine C Sept. 21, 2024, 4:26 a.m. OK Rust 2021 TESTS 7 124 102400
282121648 fieubat2x C Sept. 20, 2024, 7:26 p.m. OK Rust 2021 TESTS 7 139 102400
282148354 Nullptrs C Sept. 21, 2024, 3:14 a.m. OK Rust 2021 TESTS 7 140 102400
282125883 DreadedHippy C Sept. 20, 2024, 8:10 p.m. OK Rust 2021 TESTS 7 140 102400
282149812 bao_do C Sept. 21, 2024, 3:34 a.m. OK Rust 2021 TESTS 7 155 102400
282136106 SnowballSH C Sept. 20, 2024, 10:59 p.m. OK Rust 2021 TESTS 7 233 102400

remove filters

Back to search problems