Codeforces Round 729 (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
1542 Codeforces Round 729 (Div. 2) FINISHED False 7200 111862463 July 3, 2021, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23740 ) B Plus and Multiply PROGRAMMING constructive algorithms math number theory

B'There is an infinite set generated as follows: For example, when a=3 and b=6 , the five smallest elements of the set are: Given positive integers a , b , n , determine if n is in this set. The input consists of multiple test cases. The first line contains an integer t ( 1 <= q t <= q 10^5 ) -- the number of test cases. The description of the test cases follows. The only line describing each test case contains three integers n , a , b ( 1 <= q n,a,b <= q 10^9 ) separated by a single space. For each test case, print "Yes" if n is in this set, and "No" otherwise. You can print each letter in any case. In the first test case, 24 is generated as follows: Thus we can see 24 is in this set. The five smallest elements of the set in the second test case is described in statements. We can see that 10 isn 't among them. '...

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
121274181 ssvb B July 4, 2021, 2:21 a.m. OK D TESTS 29 124 0
121262007 eastnman B July 3, 2021, 7:16 p.m. OK Delphi TESTS 29 124 102400
121261914 ruban B July 3, 2021, 7:14 p.m. OK FPC TESTS 29 374 26828800
121278624 psp_office365 B July 4, 2021, 4:19 a.m. OK GNU C11 TESTS 29 78 0
121278699 0Z0 B July 4, 2021, 4:20 a.m. OK GNU C11 TESTS 29 93 0
121280240 ms166 B July 4, 2021, 4:53 a.m. OK GNU C11 TESTS 29 390 0
121240662 MXR612 B July 3, 2021, 3 p.m. OK GNU C11 TESTS 29 390 0
121258355 H_a_c_kcode_gaurav B July 3, 2021, 6:14 p.m. OK GNU C11 TESTS 29 405 0
121253468 srinjoy_12 B July 3, 2021, 5:09 p.m. OK GNU C11 TESTS 29 420 0
121275535 Stern_des_Sudens B July 4, 2021, 3:04 a.m. OK GNU C++11 TESTS 29 46 0
121274868 vandoor B July 4, 2021, 2:44 a.m. OK GNU C++11 TESTS 29 46 0
121274302 Nyans2021 B July 4, 2021, 2:25 a.m. OK GNU C++11 TESTS 29 46 0
121273993 liuyike B July 4, 2021, 2:15 a.m. OK GNU C++11 TESTS 29 46 0
121273359 mao_zx B July 4, 2021, 1:55 a.m. OK GNU C++11 TESTS 29 46 0
121271454 Aestas16 B July 4, 2021, 12:37 a.m. OK GNU C++11 TESTS 29 46 0
121271422 wxg_Jay B July 4, 2021, 12:36 a.m. OK GNU C++11 TESTS 29 46 0
121271133 enhenh B July 4, 2021, 12:22 a.m. OK GNU C++11 TESTS 29 46 0
121270891 Refined_heart B July 4, 2021, 12:08 a.m. OK GNU C++11 TESTS 29 46 0
121281990 li_z B July 4, 2021, 5:27 a.m. OK GNU C++11 TESTS 29 46 0
121283503 feicheng_ B July 4, 2021, 5:53 a.m. OK GNU C++14 TESTS 29 46 1024000
121282435 potatoninja22 B July 4, 2021, 5:35 a.m. OK GNU C++14 TESTS 29 78 0
121262538 LONG__INT B July 3, 2021, 7:25 p.m. OK GNU C++14 TESTS 29 93 0
121261907 QAWIYY B July 3, 2021, 7:14 p.m. OK GNU C++14 TESTS 29 93 0
121259508 sk921815 B July 3, 2021, 6:31 p.m. OK GNU C++14 TESTS 29 93 0
121274429 augg1e B July 4, 2021, 2:29 a.m. OK GNU C++14 TESTS 29 93 0
121280552 newgate B July 4, 2021, 5 a.m. OK GNU C++14 TESTS 29 93 0
121272261 xjq B July 4, 2021, 1:14 a.m. OK GNU C++14 TESTS 29 93 0
121262954 B_iShu B July 3, 2021, 7:34 p.m. OK GNU C++14 TESTS 29 93 0
121272623 luyiming B July 4, 2021, 1:29 a.m. OK GNU C++14 TESTS 29 93 0
121280209 ms166 B July 4, 2021, 4:53 a.m. OK GNU C++17 TESTS 29 77 0
121252535 avinashtakhar B July 3, 2021, 4:57 p.m. OK GNU C++17 TESTS 29 78 0
121277351 hachuochuo. B July 4, 2021, 3:50 a.m. OK GNU C++17 TESTS 29 78 0
121266358 xyq B July 3, 2021, 8:58 p.m. OK GNU C++17 TESTS 29 78 0
121255579 NosichGrig B July 3, 2021, 5:37 p.m. OK GNU C++17 TESTS 29 78 0
121245294 SajibKC_19 B July 3, 2021, 3:46 p.m. OK GNU C++17 TESTS 29 78 0
121244994 medbar B July 3, 2021, 3:45 p.m. OK GNU C++17 TESTS 29 78 0
121283756 cwhao B July 4, 2021, 5:57 a.m. OK GNU C++17 TESTS 29 93 0
121280118 chinaN0.1 B July 4, 2021, 4:51 a.m. OK GNU C++17 TESTS 29 93 0
121278309 Touheed_SK B July 4, 2021, 4:12 a.m. OK GNU C++17 TESTS 29 93 0
121271354 ChenKaifeng B July 4, 2021, 12:34 a.m. OK GNU C++17 (64) TESTS 29 46 2150400
121254186 JohnSmith0081 B July 3, 2021, 5:18 p.m. OK GNU C++17 (64) TESTS 29 61 3788800
121250691 DreamingLeaf B July 3, 2021, 4:35 p.m. OK GNU C++17 (64) TESTS 29 62 0
121273129 TheAnmolMalik B July 4, 2021, 1:47 a.m. OK GNU C++17 (64) TESTS 29 62 7987200
121279617 simply_hooman B July 4, 2021, 4:41 a.m. OK GNU C++17 (64) TESTS 29 77 0
121279940 goatzyq B July 4, 2021, 4:48 a.m. OK GNU C++17 (64) TESTS 29 77 0
121279670 shivam_100 B July 4, 2021, 4:42 a.m. OK GNU C++17 (64) TESTS 29 77 0
121283759 jayanth_1 B July 4, 2021, 5:57 a.m. OK GNU C++17 (64) TESTS 29 77 0
121283993 RP_21 B July 4, 2021, 6:01 a.m. OK GNU C++17 (64) TESTS 29 77 0
121280870 Niloy_Das_19 B July 4, 2021, 5:06 a.m. OK GNU C++17 (64) TESTS 29 77 0
121239902 pohzipohzi B July 3, 2021, 2:58 p.m. OK Go TESTS 29 78 4608000
121267522 peakle B July 3, 2021, 9:38 p.m. OK Go TESTS 29 218 4608000
121268028 peakle B July 3, 2021, 9:57 p.m. OK Go TESTS 29 233 4608000
121266475 peakle B July 3, 2021, 9:02 p.m. OK Go TESTS 29 233 4608000
121267268 peakle B July 3, 2021, 9:28 p.m. OK Go TESTS 29 405 4608000
121273726 tranquyetthang281 B July 4, 2021, 2:07 a.m. OK Haskell TESTS 29 733 102400
121247346 nguyenkimphuongtrang B July 3, 2021, 4:01 p.m. OK Haskell TESTS 29 795 102400
121250136 codelegend B July 3, 2021, 4:29 p.m. OK Haskell TESTS 29 951 102400
121246958 Adi_7861 B July 3, 2021, 3:58 p.m. OK Java 11 TESTS 29 202 0
121279026 Anuj_Panchal B July 4, 2021, 4:28 a.m. OK Java 11 TESTS 29 202 0
121272844 bluesky111 B July 4, 2021, 1:37 a.m. OK Java 11 TESTS 29 202 0
121259315 sharnit B July 3, 2021, 6:28 p.m. OK Java 11 TESTS 29 202 0
121259160 deepaksach B July 3, 2021, 6:26 p.m. OK Java 11 TESTS 29 218 0
121280574 ypa B July 4, 2021, 5 a.m. OK Java 11 TESTS 29 233 0
121260927 FLORINNN B July 3, 2021, 6:55 p.m. OK Java 11 TESTS 29 249 0
121282174 Lelouch_1 B July 4, 2021, 5:31 a.m. OK Java 11 TESTS 29 249 0
121281985 ayush__1411 B July 4, 2021, 5:27 a.m. OK Java 11 TESTS 29 249 0
121261434 rohit_03012002 B July 3, 2021, 7:04 p.m. OK Java 11 TESTS 29 249 0
121267125 smahajan54842 B July 3, 2021, 9:24 p.m. OK Java 8 TESTS 29 124 0
121251334 tarun_sm B July 3, 2021, 4:43 p.m. OK Java 8 TESTS 29 124 0
121248171 Halix B July 3, 2021, 4:08 p.m. OK Java 8 TESTS 29 155 0
121247744 soato1405 B July 3, 2021, 4:04 p.m. OK Java 8 TESTS 29 171 0
121256865 zeyrox B July 3, 2021, 5:54 p.m. OK Java 8 TESTS 29 186 0
121283830 pgthebigshot B July 4, 2021, 5:58 a.m. OK Java 8 TESTS 29 186 0
121260942 pranavggupta06 B July 3, 2021, 6:55 p.m. OK Java 8 TESTS 29 186 0
121248101 soato1405 B July 3, 2021, 4:08 p.m. OK Java 8 TESTS 29 186 0
121253008 guru1603 B July 3, 2021, 5:03 p.m. OK Java 8 TESTS 29 187 0
121262644 Abdallah_Ragab00 B July 3, 2021, 7:27 p.m. OK Java 8 TESTS 29 187 0
121262670 sedenion B July 3, 2021, 7:28 p.m. OK JavaScript TESTS 29 764 1126400
121256819 ankurkayal B July 3, 2021, 5:53 p.m. OK Kotlin TESTS 29 234 512000
121248647 dandoh B July 3, 2021, 4:13 p.m. OK Kotlin TESTS 29 826 0
121275911 sniper97 B July 4, 2021, 3:14 a.m. OK Kotlin TESTS 29 904 716800
121250454 ShvarcstNeger B July 3, 2021, 4:33 p.m. OK MS C++ 2017 TESTS 29 265 0
121252257 cmj0922 B July 3, 2021, 4:54 p.m. OK MS C++ 2017 TESTS 29 280 0
121274495 swz B July 4, 2021, 2:31 a.m. OK MS C++ 2017 TESTS 29 280 0
121254230 proofer B July 3, 2021, 5:19 p.m. OK MS C++ 2017 TESTS 29 280 0
121278198 p_jun B July 4, 2021, 4:09 a.m. OK MS C++ 2017 TESTS 29 295 0
121257228 Tangerine B July 3, 2021, 5:59 p.m. OK MS C++ 2017 TESTS 29 561 0
121245991 suVrik B July 3, 2021, 3:51 p.m. OK MS C++ 2017 TESTS 29 561 0
121247014 UnHingedFrog B July 3, 2021, 3:58 p.m. OK MS C++ 2017 TESTS 29 576 0
121261192 adasanvin12345 B July 3, 2021, 6:59 p.m. OK MS C++ 2017 TESTS 29 592 0
121241887 Flyheck B July 3, 2021, 3:03 p.m. OK MS C++ 2017 TESTS 29 607 0
121257786 addabis B July 3, 2021, 6:06 p.m. OK .NET Core C# TESTS 29 467 4300800
121244744 Alexey B July 3, 2021, 3:43 p.m. OK Node.js TESTS 29 1154 12595200
121263402 ShashankZobb B July 3, 2021, 7:43 p.m. OK PyPy 2 TESTS 29 202 14643200
121257684 raj1307 B July 3, 2021, 6:05 p.m. OK PyPy 2 TESTS 29 218 14848000
121245622 1_2_3_4_5_9 B July 3, 2021, 3:48 p.m. OK PyPy 3 TESTS 29 233 15872000
121251353 bk_ B July 3, 2021, 4:43 p.m. OK PyPy 3 TESTS 29 249 15872000
121277988 AdvithDesu B July 4, 2021, 4:04 a.m. OK PyPy 3 TESTS 29 249 16486400
121259929 bravotango B July 3, 2021, 6:38 p.m. OK PyPy 3 TESTS 29 249 16486400
121258902 bravotango B July 3, 2021, 6:22 p.m. OK PyPy 3 TESTS 29 264 16384000
121250418 legend.ary_as B July 3, 2021, 4:32 p.m. OK PyPy 3 TESTS 29 264 16384000
121242281 jerinjoseantony B July 3, 2021, 3:04 p.m. OK PyPy 3 TESTS 29 265 16384000
121257511 gourav2001k B July 3, 2021, 6:02 p.m. OK PyPy 3 TESTS 29 265 16486400
121252486 PiKa_PiKaa_chuuu B July 3, 2021, 4:57 p.m. OK PyPy 3 TESTS 29 280 16384000
121257935 bravotango B July 3, 2021, 6:08 p.m. OK PyPy 3 TESTS 29 295 16588800
121277958 AdvithDesu B July 4, 2021, 4:04 a.m. OK Python 3 TESTS 29 607 6041600
121273806 mkawa2 B July 4, 2021, 2:09 a.m. OK Python 3 TESTS 29 623 0
121248957 hellohowareyou B July 3, 2021, 4:17 p.m. OK Python 3 TESTS 29 655 409600
121272713 M0u1ea5 B July 4, 2021, 1:33 a.m. OK Python 3 TESTS 29 670 716800
121246964 srijan.sarkar B July 3, 2021, 3:58 p.m. OK Python 3 TESTS 29 764 716800
121254779 praneethvasa B July 3, 2021, 5:26 p.m. OK Python 3 TESTS 29 780 716800
121280854 Munchy_1 B July 4, 2021, 5:06 a.m. OK Python 3 TESTS 29 795 716800
121283337 piSquared B July 4, 2021, 5:50 a.m. OK Python 3 TESTS 29 873 409600
121240538 frmdz B July 3, 2021, 2:59 p.m. OK Python 3 TESTS 29 904 716800
121245486 REDVED B July 3, 2021, 3:48 p.m. OK Python 3 TESTS 29 920 136806400
121280141 ryo_n B July 4, 2021, 4:51 a.m. OK Rust TESTS 29 46 0
121246324 p00f B July 3, 2021, 3:53 p.m. OK Rust TESTS 29 61 0
121280371 ryo_n B July 4, 2021, 4:56 a.m. OK Rust TESTS 29 62 0
121280298 ryo_n B July 4, 2021, 4:54 a.m. OK Rust TESTS 29 62 0
121278665 ryo_n B July 4, 2021, 4:19 a.m. OK Rust TESTS 29 950 0
121261460 ryo_n B July 3, 2021, 7:05 p.m. OK Rust TESTS 29 951 0
121265905 crazyboycjr0.1 B July 3, 2021, 8:45 p.m. OK Rust TESTS 29 967 0
121269948 IvanDyachenko B July 3, 2021, 11:19 p.m. OK Scala TESTS 29 1326 409600

remove filters

Back to search problems