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 |
---|---|---|---|---|---|---|
1684 | Codeforces Round 792 (Div. 1 + Div. 2) | FINISHED | False | 7200 | 84295463 | May 19, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 21148 ) | B | Z mod X = C | PROGRAMMING | constructive algorithms math | 800 |
B'You are given three positive integers a , b , c ( a < b < c ). You have to find three positive integers x , y , z such that: x bmod y = a, y bmod z = b, z bmod x = c. Here p bmod q denotes the remainder from dividing p by q . It is possible to show that for such constraints the answer always exists. The input consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 10 ,000 ) -- the number of test cases. Description of the test cases follows. Each test case contains a single line with three integers a , b , c ( 1 <= a < b < c <= 10^8 ). For each test case output three positive integers x , y , z ( 1 <= x, y, z <= 10^{18} ) such that x bmod y = a , y bmod z = b , z bmod x = c . You can output any correct answer. In the first test case: x bmod y = 12 bmod 11 = 1; y bmod z = 11 bmod 4 = 3; z bmod x = 4 bmod 12 = 4. '... |
Codeforces Round #792 (Div. 1 + Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
157733267 | sayemsub15 | B | May 19, 2022, 5:44 p.m. | OK | GNU C11 | TESTS | 10 | 46 | 3686400 | 800 | |
157741622 | Gold_Dragon | B | May 19, 2022, 6:58 p.m. | OK | GNU C11 | TESTS | 10 | 62 | 3686400 | 800 | |
157733102 | huanyingxiang | B | May 19, 2022, 5:44 p.m. | OK | GNU C11 | TESTS | 10 | 77 | 3686400 | 800 | |
157765458 | suyiheng | B | May 20, 2022, 4:42 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 800 | |
157765007 | navi_here | B | May 20, 2022, 4:34 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 800 | |
157763863 | Briaares | B | May 20, 2022, 4:13 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 800 | |
157763751 | yiwadaodi | B | May 20, 2022, 4:11 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 800 | |
157767371 | TekinaC | B | May 20, 2022, 5:13 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 800 | |
157766743 | toriqul07 | B | May 20, 2022, 5:03 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 800 | |
157765594 | yeshuchen | B | May 20, 2022, 4:44 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 800 | |
157770001 | rajsrivastava | B | May 20, 2022, 5:53 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 800 | |
157770302 | Kiri_to | B | May 20, 2022, 5:57 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 800 | |
157769501 | yadarj120 | B | May 20, 2022, 5:45 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 800 | |
157756092 | DerekFeng | B | May 20, 2022, 1:18 a.m. | OK | GNU C++17 | TESTS | 10 | 0 | 0 | 800 | |
157768959 | pratyaksh_khurana | B | May 20, 2022, 5:38 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 800 | |
157768867 | kshitiz.614 | B | May 20, 2022, 5:36 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 800 | |
157768740 | abhishek_090802 | B | May 20, 2022, 5:34 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 800 | |
157768352 | KD_GameDemon | B | May 20, 2022, 5:28 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 800 | |
157768014 | manusingh5oct | B | May 20, 2022, 5:23 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 800 | |
157767382 | Coder_abhi07 | B | May 20, 2022, 5:13 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 800 | |
157770476 | abhipatel1331 | B | May 20, 2022, 5:59 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 800 | |
157769321 | guptaji_30 | B | May 20, 2022, 5:43 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 800 | |
157769957 | abhinav_lv | B | May 20, 2022, 5:52 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 800 | |
157770187 | priyansh_34 | B | May 20, 2022, 5:55 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 800 | |
157770398 | LimboMaster | B | May 20, 2022, 5:58 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 800 | |
157769290 | leo-sis | B | May 20, 2022, 5:43 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 800 | |
157767289 | codelegend | B | May 20, 2022, 5:11 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 800 | |
157764176 | Introvert_1827 | B | May 20, 2022, 4:19 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 800 | |
157763381 | codevader13 | B | May 20, 2022, 4:04 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 800 | |
157762571 | Vijay | B | May 20, 2022, 3:47 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 800 | |
157760943 | suta | B | May 20, 2022, 3:14 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 800 | |
157760673 | errorgorn | B | May 20, 2022, 3:08 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 800 | |
157758911 | tditya_aeltia | B | May 20, 2022, 2:31 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 800 | |
157755802 | drogskol | B | May 20, 2022, 1:08 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | 800 | |
157765509 | get_out_of_my_way | B | May 20, 2022, 4:42 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | 800 | |
157767822 | Hackapie | B | May 20, 2022, 5:20 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | 800 | |
157769028 | suryakantpandey | B | May 20, 2022, 5:39 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 15 | 0 | 800 | |
157768703 | jasonray0328 | B | May 20, 2022, 5:33 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 15 | 0 | 800 | |
157770469 | raju_21 | B | May 20, 2022, 5:59 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 15 | 0 | 800 | |
157767036 | rsbayzed | B | May 20, 2022, 5:08 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 15 | 0 | 800 | |
157768566 | Manav_Shah24 | B | May 20, 2022, 5:32 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 15 | 0 | 800 | |
157770241 | swz | B | May 20, 2022, 5:56 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 15 | 0 | 800 | |
157769246 | mysteri0us7 | B | May 20, 2022, 5:42 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 15 | 0 | 800 | |
157743820 | LXL | B | May 19, 2022, 7:29 p.m. | OK | Go | TESTS | 10 | 46 | 5120000 | 800 | |
157741395 | tahm_id | B | May 19, 2022, 6:55 p.m. | OK | Go | TESTS | 10 | 561 | 5120000 | 800 | |
157760161 | javaking | B | May 20, 2022, 2:58 a.m. | OK | Java 11 | TESTS | 10 | 171 | 0 | 800 | |
157770152 | poopoop | B | May 20, 2022, 5:55 a.m. | OK | Java 11 | TESTS | 10 | 202 | 0 | 800 | |
157768719 | Yog_gaj | B | May 20, 2022, 5:34 a.m. | OK | Java 11 | TESTS | 10 | 202 | 0 | 800 | |
157765460 | harshman_01 | B | May 20, 2022, 4:42 a.m. | OK | Java 11 | TESTS | 10 | 202 | 0 | 800 | |
157724830 | Abhishek_patel_ | B | May 19, 2022, 4:24 p.m. | OK | Java 11 | TESTS | 10 | 218 | 25190400 | 800 | |
157723937 | kk129 | B | May 19, 2022, 4:21 p.m. | OK | Java 11 | TESTS | 10 | 233 | 25190400 | 800 | |
157761058 | powervic08 | B | May 20, 2022, 3:16 a.m. | OK | Java 11 | TESTS | 10 | 280 | 0 | 800 | |
157756062 | duyipeng | B | May 20, 2022, 1:17 a.m. | OK | Java 11 | TESTS | 10 | 280 | 0 | 800 | |
157754283 | lucario1289 | B | May 20, 2022, 12:17 a.m. | OK | Java 11 | TESTS | 10 | 280 | 0 | 800 | |
157761850 | coderama | B | May 20, 2022, 3:33 a.m. | OK | Java 11 | TESTS | 10 | 280 | 204800 | 800 | |
157768528 | b02 | B | May 20, 2022, 5:31 a.m. | OK | Java 8 | TESTS | 10 | 93 | 0 | 800 | |
157768445 | slow.coder | B | May 20, 2022, 5:30 a.m. | OK | Java 8 | TESTS | 10 | 93 | 0 | 800 | |
157742923 | Youssef1Shawky | B | May 19, 2022, 7:16 p.m. | OK | Java 8 | TESTS | 10 | 93 | 18944000 | 800 | |
157769777 | slow.coder | B | May 20, 2022, 5:49 a.m. | OK | Java 8 | TESTS | 10 | 108 | 0 | 800 | |
157761902 | LiuSheng | B | May 20, 2022, 3:34 a.m. | OK | Java 8 | TESTS | 10 | 108 | 0 | 800 | |
157766843 | anurag9802 | B | May 20, 2022, 5:05 a.m. | OK | Java 8 | TESTS | 10 | 156 | 0 | 800 | |
157738525 | rish1896 | B | May 19, 2022, 6:21 p.m. | OK | Java 8 | TESTS | 10 | 170 | 18944000 | 800 | |
157770594 | Aemon | B | May 20, 2022, 6:01 a.m. | OK | Java 8 | TESTS | 10 | 171 | 0 | 800 | |
157754595 | 1635504801 | B | May 20, 2022, 12:28 a.m. | OK | Java 8 | TESTS | 10 | 171 | 0 | 800 | |
157738405 | rish1896 | B | May 19, 2022, 6:20 p.m. | OK | Java 8 | TESTS | 10 | 171 | 18944000 | 800 | |
157741045 | Pus9vGang | B | May 19, 2022, 6:51 p.m. | OK | Kotlin 1.6 | TESTS | 10 | 296 | 25804800 | 800 | |
157740563 | tahm_id | B | May 19, 2022, 6:44 p.m. | OK | Kotlin 1.6 | TESTS | 10 | 311 | 25907200 | 800 | |
157742988 | mohamedbakr | B | May 19, 2022, 7:17 p.m. | OK | Mono C# | TESTS | 10 | 77 | 9113600 | 800 | |
157736766 | muhatmud | B | May 19, 2022, 6:06 p.m. | OK | MS C++ 2017 | TESTS | 10 | 15 | 1126400 | 800 | |
157733042 | muhatmud | B | May 19, 2022, 5:44 p.m. | OK | MS C++ 2017 | TESTS | 10 | 30 | 1126400 | 800 | |
157744594 | Abdelrahmanmagdi | B | May 19, 2022, 7:42 p.m. | OK | MS C++ 2017 | TESTS | 10 | 46 | 1126400 | 800 | |
157763361 | bhdtr | B | May 20, 2022, 4:03 a.m. | OK | MS C++ 2017 | TESTS | 10 | 77 | 0 | 800 | |
157763937 | TemporalBloom | B | May 20, 2022, 4:14 a.m. | OK | MS C++ 2017 | TESTS | 10 | 77 | 0 | 800 | |
157762595 | Aayush5sep | B | May 20, 2022, 3:48 a.m. | OK | MS C++ 2017 | TESTS | 10 | 77 | 0 | 800 | |
157763747 | nadamansoursamir | B | May 20, 2022, 4:11 a.m. | OK | MS C++ 2017 | TESTS | 10 | 77 | 0 | 800 | |
157726121 | KemPi | B | May 19, 2022, 4:27 p.m. | OK | MS C++ 2017 | TESTS | 10 | 77 | 1126400 | 800 | |
157744027 | Viktor36 | B | May 19, 2022, 7:33 p.m. | OK | MS C++ 2017 | TESTS | 10 | 77 | 1126400 | 800 | |
157735619 | Morrowinds_Revenge | B | May 19, 2022, 5:57 p.m. | OK | MS C++ 2017 | TESTS | 10 | 77 | 1126400 | 800 | |
157761748 | XYShaoKang | B | May 20, 2022, 3:31 a.m. | OK | Node.js | TESTS | 10 | 124 | 7680000 | 800 | |
157733854 | 1_2_3_4_5_9 | B | May 19, 2022, 5:47 p.m. | OK | PyPy 2 | TESTS | 10 | 140 | 23142400 | 800 | |
157727716 | rainap | B | May 19, 2022, 4:32 p.m. | OK | PyPy 3 | TESTS | 10 | 140 | 21606400 | 800 | |
157766072 | FrozenKandy | B | May 20, 2022, 4:52 a.m. | OK | PyPy 3 | TESTS | 10 | 140 | 22937600 | 800 | |
157768526 | mmooyyii | B | May 20, 2022, 5:31 a.m. | OK | PyPy 3 | TESTS | 10 | 249 | 10035200 | 800 | |
157755362 | hosamcv0 | B | May 20, 2022, 12:53 a.m. | OK | PyPy 3 | TESTS | 10 | 296 | 5427200 | 800 | |
157737129 | heprob | B | May 19, 2022, 6:09 p.m. | OK | PyPy 3 | TESTS | 10 | 296 | 24473600 | 800 | |
157743192 | append._code | B | May 19, 2022, 7:20 p.m. | OK | PyPy 3 | TESTS | 10 | 296 | 24576000 | 800 | |
157765240 | pranay_28 | B | May 20, 2022, 4:38 a.m. | OK | PyPy 3 | TESTS | 10 | 342 | 7065600 | 800 | |
157740957 | Alex239 | B | May 19, 2022, 6:49 p.m. | OK | PyPy 3 | TESTS | 10 | 358 | 24985600 | 800 | |
157749368 | davidchi | B | May 19, 2022, 9:22 p.m. | OK | PyPy 3-64 | TESTS | 10 | 109 | 6246400 | 800 | |
157758602 | Liberator187 | B | May 20, 2022, 2:23 a.m. | OK | PyPy 3-64 | TESTS | 10 | 109 | 6348800 | 800 | |
157756243 | abhijeet.panihar.cse20 | B | May 20, 2022, 1:23 a.m. | OK | PyPy 3-64 | TESTS | 10 | 139 | 8396800 | 800 | |
157768685 | shekhawat_rss | B | May 20, 2022, 5:33 a.m. | OK | PyPy 3-64 | TESTS | 10 | 139 | 9625600 | 800 | |
157748472 | Juanm1 | B | May 19, 2022, 8:59 p.m. | OK | PyPy 3-64 | TESTS | 10 | 140 | 9625600 | 800 | |
157748510 | Juanm1 | B | May 19, 2022, 8:59 p.m. | OK | PyPy 3-64 | TESTS | 10 | 140 | 9932800 | 800 | |
157723683 | jgs03177 | B | May 19, 2022, 4:21 p.m. | OK | PyPy 3-64 | TESTS | 10 | 140 | 38400000 | 800 | |
157729228 | batnik | B | May 19, 2022, 4:34 p.m. | OK | PyPy 3-64 | TESTS | 10 | 155 | 37785600 | 800 | |
157738301 | sp_Piyush | B | May 19, 2022, 6:19 p.m. | OK | PyPy 3-64 | TESTS | 10 | 155 | 37990400 | 800 | |
157749304 | samchen123 | B | May 19, 2022, 9:20 p.m. | OK | PyPy 3-64 | TESTS | 10 | 155 | 38092800 | 800 | |
157728622 | therisingwind | B | May 19, 2022, 4:33 p.m. | OK | Python 3 | TESTS | 10 | 78 | 5120000 | 800 | |
157758918 | _Shubham | B | May 20, 2022, 2:31 a.m. | OK | Python 3 | TESTS | 10 | 93 | 204800 | 800 | |
157768242 | sahilwahi | B | May 20, 2022, 5:26 a.m. | OK | Python 3 | TESTS | 10 | 93 | 4812800 | 800 | |
157761670 | a_vantik_a | B | May 20, 2022, 3:29 a.m. | OK | Python 3 | TESTS | 10 | 93 | 4812800 | 800 | |
157735115 | ivan.komarov | B | May 19, 2022, 5:54 p.m. | OK | Python 3 | TESTS | 10 | 93 | 4812800 | 800 | |
157745359 | shashank56 | B | May 19, 2022, 7:54 p.m. | OK | Python 3 | TESTS | 10 | 93 | 5632000 | 800 | |
157762221 | ArijitDalui | B | May 20, 2022, 3:40 a.m. | OK | Python 3 | TESTS | 10 | 124 | 0 | 800 | |
157759549 | Israr_Ahmed | B | May 20, 2022, 2:46 a.m. | OK | Python 3 | TESTS | 10 | 124 | 0 | 800 | |
157768094 | s.pris | B | May 20, 2022, 5:24 a.m. | OK | Python 3 | TESTS | 10 | 139 | 0 | 800 | |
157742000 | anshchaudhary | B | May 19, 2022, 7:03 p.m. | OK | Python 3 | TESTS | 10 | 139 | 4300800 | 800 | |
157762119 | Spheniscine | B | May 20, 2022, 3:38 a.m. | OK | Rust 2021 | TESTS | 10 | 15 | 102400 | 800 |
Back to search problems