Codeforces Round 957 (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
1992 Codeforces Round 957 (Div. 3) FINISHED False 8100 16471463 July 11, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9423 ) E Novice's Mistake PROGRAMMING brute force constructive algorithms math strings

B'One of the first programming problems by K1o0n looked like this: "Noobish_Monk has n (1 <= n <= 100) friends. Each of them gave him a (1 <= a <= 10000) apples for his birthday. Delighted with such a gift, Noobish_Monk returned b (1 <= b <= min(10000, a cdot n)) apples to his friends. How many apples are left with Noobish_Monk?" K1o0n wrote a solution, but accidentally considered the value of n as a string, so the value of n cdot a - b was calculated differently. Specifically: Learning about this, ErnKor became interested in how many pairs (a, b) exist for a given n , satisfying the constraints of the problem, on which K1o0n 's solution gives the correct answer. "The solution gives the correct answer" means that it outputs a non-empty string, and this string, when converted to an integer, equals the correct answer, i.e., the value of n cdot a - b . The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. For each test case, a single line of input contains an integer n ( 1 <= n <= 100 ). It is guaranteed that in all test cases, n is distinct. For each test case, output the answer in the following format: In the first line, output the integer x -- the number of bad tests for the given n . In the next x lines, output two integers a_i and b_i -- such integers that K1o0n 's solution on the test " n a_i b_i " gives the correct answer. In the first example, a = 20 , b = 18 are suitable, as " text{2} " cdot 20 - 18 = " text{22222222222222222222} " - 18 = 22 = 2 cdot 20 - 18 '...

Tutorials

Shayan's Video Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
270120927 aliaagheis E July 12, 2024, 5:36 a.m. OK C++14 (GCC 6-32) TESTS 2 30 0
270070837 toma12 E July 11, 2024, 6:30 p.m. OK C++14 (GCC 6-32) TESTS 2 30 0
270099353 hehe012 E July 12, 2024, 1:30 a.m. OK C++14 (GCC 6-32) TESTS 2 31 0
270096662 Sonders. E July 12, 2024, 12:50 a.m. OK C++14 (GCC 6-32) TESTS 2 31 0
270050751 tryandtryagain E July 11, 2024, 5:14 p.m. OK C++14 (GCC 6-32) TESTS 2 31 0
270119157 fuxuantong123 E July 12, 2024, 5:20 a.m. OK C++14 (GCC 6-32) TESTS 2 46 0
270113900 erehnrocinu E July 12, 2024, 4:21 a.m. OK C++14 (GCC 6-32) TESTS 2 46 0
270106451 LongCenhua E July 12, 2024, 3 a.m. OK C++14 (GCC 6-32) TESTS 2 46 0
270105552 zhaohaooo E July 12, 2024, 2:50 a.m. OK C++14 (GCC 6-32) TESTS 2 46 0
270094871 a20031030 E July 12, 2024, 12:17 a.m. OK C++14 (GCC 6-32) TESTS 2 46 0
270096326 Javaman01 E July 12, 2024, 12:44 a.m. OK C++17 (GCC 7-32) TESTS 2 15 0
270095842 Sahil_hussain E July 12, 2024, 12:36 a.m. OK C++17 (GCC 7-32) TESTS 2 15 0
270076874 Kenshi01 E July 11, 2024, 7:25 p.m. OK C++17 (GCC 7-32) TESTS 2 15 0
270098575 positivedelta2211 E July 12, 2024, 1:20 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0
270095467 Sahil_hussain E July 12, 2024, 12:29 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0
270094673 horiseun E July 12, 2024, 12:14 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0
270094033 a999999 E July 12, 2024, 12:02 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0
270093466 vulestamenkovic E July 11, 2024, 11:50 p.m. OK C++17 (GCC 7-32) TESTS 2 30 0
270092890 umimel E July 11, 2024, 11:37 p.m. OK C++17 (GCC 7-32) TESTS 2 30 0
270083913 jahid_hridoy E July 11, 2024, 8:47 p.m. OK C++17 (GCC 7-32) TESTS 2 30 0
270096188 Mifasuo E July 12, 2024, 12:42 a.m. OK C++20 (GCC 13-64) TESTS 2 15 0
270120308 iLLuSiOnZ E July 12, 2024, 5:31 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
270119039 KhoaVN2008 E July 12, 2024, 5:18 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
270117128 zoro_ar_k E July 12, 2024, 4:59 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
270109045 sound-medium521 E July 12, 2024, 3:26 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
270107135 MJSaif E July 12, 2024, 3:07 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
270103847 qqmy0220 E July 12, 2024, 2:31 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
270102468 daksh942 E July 12, 2024, 2:13 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
270088585 zajivoee E July 11, 2024, 10:02 p.m. OK C++20 (GCC 13-64) TESTS 2 30 0
270086526 ShikharS E July 11, 2024, 9:25 p.m. OK C++20 (GCC 13-64) TESTS 2 30 0
270079538 dzhi E July 11, 2024, 7:53 p.m. OK Java 21 TESTS 2 171 0
270051413 BlizGale E July 11, 2024, 5:17 p.m. OK Java 21 TESTS 2 186 0
270053555 iamdimonis E July 11, 2024, 5:30 p.m. OK Java 21 TESTS 2 187 204800
270051055 dzhi E July 11, 2024, 5:16 p.m. OK Java 21 TESTS 2 202 512000
270074449 vaibhav_1710 E July 11, 2024, 7:02 p.m. OK Java 21 TESTS 2 217 0
270074342 Mahakal_17 E July 11, 2024, 7:01 p.m. OK Java 21 TESTS 2 217 0
270095670 lyongwolf E July 12, 2024, 12:32 a.m. OK Java 21 TESTS 2 218 0
270121339 himneesh9 E July 12, 2024, 5:40 a.m. OK Java 21 TESTS 2 218 819200
270070353 ziad-abdou1 E July 11, 2024, 6:27 p.m. OK Java 21 TESTS 2 280 0
270050666 ApocJTL E July 11, 2024, 5:13 p.m. OK Java 21 TESTS 2 280 512000
270066698 tirthgohil1410 E July 11, 2024, 5:58 p.m. OK Java 8 TESTS 2 202 0
270080418 Sumitsingh7 E July 11, 2024, 8:02 p.m. OK Java 8 TESTS 2 327 6553600
270117929 RahulAhuja2901 E July 12, 2024, 5:07 a.m. OK Java 8 TESTS 2 421 0
270052648 Osris12 E July 11, 2024, 5:25 p.m. OK Java 8 TESTS 2 483 16998400
270102426 rujuldwivedi E July 12, 2024, 2:13 a.m. OK Java 8 TESTS 2 593 0
270091512 Safawt E July 11, 2024, 11:03 p.m. OK Java 8 TESTS 2 936 0
270109183 achyut88 E July 12, 2024, 3:27 a.m. OK Java 8 TESTS 2 1562 260096000
270112249 dorianyellow E July 12, 2024, 4 a.m. OK PyPy 3 TESTS 2 108 4096000
270120443 vaibhav245 E July 12, 2024, 5:32 a.m. OK PyPy 3 TESTS 2 124 3993600
270102198 omar1212nasser E July 12, 2024, 2:10 a.m. OK PyPy 3 TESTS 2 124 4096000
270102166 omar1212nasser E July 12, 2024, 2:09 a.m. OK PyPy 3 TESTS 2 124 4608000
270102086 omar1212nasser E July 12, 2024, 2:08 a.m. OK PyPy 3 TESTS 2 187 4710400
270102011 omar1212nasser E July 12, 2024, 2:07 a.m. OK PyPy 3 TESTS 2 202 5324800
270055922 Heartbeateffect E July 11, 2024, 5:46 p.m. OK PyPy 3 TESTS 2 312 8499200
270092922 random__person E July 11, 2024, 11:37 p.m. OK PyPy 3 TESTS 2 406 6246400
270102730 DEAD_TCT E July 12, 2024, 2:16 a.m. OK PyPy 3 TESTS 2 687 6348800
270101761 omar1212nasser E July 12, 2024, 2:04 a.m. OK PyPy 3 TESTS 2 2031 10444800
270062473 albara_taani E July 11, 2024, 5:49 p.m. OK PyPy 3-64 TESTS 2 77 2048000
270123275 conqueror_of_titia E July 12, 2024, 5:57 a.m. OK PyPy 3-64 TESTS 2 77 3072000
270082980 OutOfFuel E July 11, 2024, 8:34 p.m. OK PyPy 3-64 TESTS 2 77 3584000
270050506 mahiro_zcy E July 11, 2024, 5:13 p.m. OK PyPy 3-64 TESTS 2 77 3686400
270077464 mawo78 E July 11, 2024, 7:31 p.m. OK PyPy 3-64 TESTS 2 77 3788800
270066846 darknight_il E July 11, 2024, 5:59 p.m. OK PyPy 3-64 TESTS 2 77 3788800
270051475 imkindabad E July 11, 2024, 5:18 p.m. OK PyPy 3-64 TESTS 2 77 3891200
270094435 CodeCrusader488 E July 12, 2024, 12:09 a.m. OK PyPy 3-64 TESTS 2 92 2662400
270055966 Arcus1 E July 11, 2024, 5:47 p.m. OK PyPy 3-64 TESTS 2 92 2662400
270073605 janahmed E July 11, 2024, 6:54 p.m. OK PyPy 3-64 TESTS 2 92 3891200
270103699 Ecola E July 12, 2024, 2:29 a.m. OK Python 3 TESTS 2 61 0
270071631 nandhagk1729 E July 11, 2024, 6:37 p.m. OK Python 3 TESTS 2 62 0
270053237 adwmos E July 11, 2024, 5:28 p.m. OK Python 3 TESTS 2 77 1331200
270054289 dhruvdd8888 E July 11, 2024, 5:35 p.m. OK Python 3 TESTS 2 77 1536000
270052905 radhekrishna24 E July 11, 2024, 5:26 p.m. OK Python 3 TESTS 2 1046 1228800
270069842 CrazyWarlord E July 11, 2024, 6:22 p.m. OK Python 3 TESTS 2 1264 2150400
270104839 abhijit07cf E July 12, 2024, 2:42 a.m. OK Python 3 TESTS 2 1390 2355200
270050922 Rogue_Ningen E July 11, 2024, 5:15 p.m. OK Python 3 TESTS 2 1452 819200
270055482 Keerthiharan_A E July 11, 2024, 5:43 p.m. OK Python 3 TESTS 2 1671 1126400
270071198 Om_Singh_ E July 11, 2024, 6:33 p.m. OK Python 3 TESTS 2 1780 1740800
270081937 fieubat2x E July 11, 2024, 8:21 p.m. OK Rust 2021 TESTS 2 61 0
270053256 DeanMMenezes E July 11, 2024, 5:28 p.m. OK Rust 2021 TESTS 2 62 0
270073269 Cheshulko E July 11, 2024, 6:51 p.m. OK Rust 2021 TESTS 2 77 0

remove filters

Back to search problems