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 |
---|---|---|---|---|---|---|
1968 | Codeforces Round 943 (Div. 3) | FINISHED | False | 8100 | 22518863 | May 2, 2024, 2:45 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 25821 ) | C | Assembly via Remainders | PROGRAMMING | constructive algorithms number theory | 1000 |
B'You are given an array x_2,x_3, ... ,x_n . Your task is to find any array a_1, ... ,a_n , where: Here c bmod d denotes the remainder of the division of the integer c by the integer d . For example 5 bmod 2 = 1 , 72 bmod 3 = 0 , 143 bmod 14 = 3 . Note that if there is more than one a which satisfies the statement, you are allowed to find any. The first line contains a single integer t (1 <= t <= 10^4) -- the number of test cases. The first line of each test case contains a single integer n (2 <= n <= 500) -- the number of elements in a . The second line of each test case contains n-1 integers x_2, ... ,x_n (1 <= x_i <= 500) -- the elements of x . It is guaranteed that the sum of values n over all test cases does not exceed 2 cdot 10^5 . For each test case output any a_1, ... ,a_n ( 1 <= a_i <= 10^9 ) which satisfies the statement. In the first test case a=[3,5,4,9] satisfies the conditions, because: '... |
129096 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
261434928 | Rania | C | May 17, 2024, 9:06 p.m. | OK | C++14 (GCC 6-32) | TESTS | 15 | 92 | 3276800 | 1000 | |
263602691 | Shah_0024 | C | June 1, 2024, 8:59 a.m. | OK | C++14 (GCC 6-32) | TESTS | 15 | 93 | 0 | 1000 | |
262942939 | ayuisaki | C | May 28, 2024, 12:56 a.m. | OK | C++14 (GCC 6-32) | TESTS | 15 | 93 | 0 | 1000 | |
262648123 | down1rook | C | May 26, 2024, 4:40 a.m. | OK | C++14 (GCC 6-32) | TESTS | 15 | 93 | 0 | 1000 | |
261538522 | luogu_bot2 | C | May 18, 2024, 1:51 p.m. | OK | C++14 (GCC 6-32) | TESTS | 15 | 93 | 0 | 1000 | |
261117526 | Ruang_Feng | C | May 16, 2024, 2:29 a.m. | OK | C++14 (GCC 6-32) | TESTS | 15 | 93 | 0 | 1000 | |
262942959 | ayuisaki | C | May 28, 2024, 12:57 a.m. | OK | C++14 (GCC 6-32) | TESTS | 15 | 108 | 0 | 1000 | |
262422564 | kritic1329 | C | May 24, 2024, 5:56 p.m. | OK | C++14 (GCC 6-32) | TESTS | 15 | 108 | 0 | 1000 | |
261695253 | GVJNJ | C | May 19, 2024, 7:11 p.m. | OK | C++14 (GCC 6-32) | TESTS | 15 | 108 | 0 | 1000 | |
261396945 | vPrhkstnfus | C | May 17, 2024, 4:07 p.m. | OK | C++14 (GCC 6-32) | TESTS | 15 | 108 | 0 | 1000 | |
261628801 | aadi8sharma | C | May 19, 2024, 9:08 a.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 92 | 0 | 1000 | |
261648761 | murot | C | May 19, 2024, 12:07 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 92 | 3993600 | 1000 | |
263581989 | userisnotvallid | C | June 1, 2024, 6:06 a.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 93 | 0 | 1000 | |
263507729 | HASAN_IYAD_HASAN | C | May 31, 2024, 1:52 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 93 | 0 | 1000 | |
263245536 | bleedin_maroon | C | May 30, 2024, 12:16 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 93 | 0 | 1000 | |
263152250 | Dark_Entity | C | May 29, 2024, 1:59 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 93 | 0 | 1000 | |
263117549 | harshbksp98 | C | May 29, 2024, 9:20 a.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 93 | 0 | 1000 | |
263044744 | vedant225411420 | C | May 28, 2024, 5:11 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 93 | 0 | 1000 | |
263007289 | Kirill22 | C | May 28, 2024, 12:08 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 93 | 0 | 1000 | |
262970712 | Soulboy1 | C | May 28, 2024, 6:57 a.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 93 | 0 | 1000 | |
261218110 | riariti | C | May 16, 2024, 3:22 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 46 | 307200 | 1000 | |
261753038 | Tripoli | C | May 20, 2024, 9:12 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 62 | 0 | 1000 | |
263245403 | -Hadi--1 | C | May 30, 2024, 12:15 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 62 | 102400 | 1000 | |
263555462 | TravisBickle | C | May 31, 2024, 10:56 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 77 | 0 | 1000 | |
263015999 | XLyon | C | May 28, 2024, 1:15 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 77 | 0 | 1000 | |
262865637 | aditya_patil71 | C | May 27, 2024, 10:40 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 77 | 0 | 1000 | |
262716131 | Alexander_07 | C | May 26, 2024, 2:24 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 77 | 0 | 1000 | |
262704358 | lzm0107 | C | May 26, 2024, 12:37 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 77 | 0 | 1000 | |
262310087 | codeInstruction | C | May 23, 2024, 8:21 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 77 | 0 | 1000 | |
262243677 | u1voqvbbulnb | C | May 23, 2024, 10:52 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 77 | 0 | 1000 | |
261329171 | CS23B036 | C | May 17, 2024, 12:34 p.m. | OK | GNU C11 | TESTS | 15 | 796 | 102400 | 1000 | |
261173959 | cccccqw | C | May 16, 2024, 9:42 a.m. | OK | GNU C11 | TESTS | 15 | 843 | 102400 | 1000 | |
261612498 | vjudge.10 | C | May 19, 2024, 7:01 a.m. | OK | GNU C11 | TESTS | 15 | 858 | 102400 | 1000 | |
261641396 | Bartwal | C | May 19, 2024, 11 a.m. | OK | GNU C11 | TESTS | 15 | 859 | 102400 | 1000 | |
263306449 | Virat_Garg | C | May 30, 2024, 3:09 p.m. | OK | GNU C11 | TESTS | 15 | 874 | 0 | 1000 | |
262271364 | Utkarsh.iitkgp | C | May 23, 2024, 2:16 p.m. | OK | GNU C11 | TESTS | 15 | 874 | 0 | 1000 | |
261973677 | sharanyabaidya2020 | C | May 21, 2024, 7:05 a.m. | OK | GNU C11 | TESTS | 15 | 874 | 102400 | 1000 | |
262625676 | faswa11 | C | May 25, 2024, 9:04 p.m. | OK | GNU C11 | TESTS | 15 | 890 | 0 | 1000 | |
261713934 | sabhinav22 | C | May 20, 2024, 2:09 a.m. | OK | GNU C11 | TESTS | 15 | 890 | 102400 | 1000 | |
263500470 | 23cea070 | C | May 31, 2024, 12:51 p.m. | OK | GNU C11 | TESTS | 15 | 937 | 0 | 1000 | |
261072898 | Martynas | C | May 15, 2024, 3:08 p.m. | OK | Go | TESTS | 15 | 140 | 4198400 | 1000 | |
263668792 | SD125 | C | June 1, 2024, 6:16 p.m. | OK | Java 21 | TESTS | 15 | 342 | 307200 | 1000 | |
262645425 | AKhacks | C | May 26, 2024, 4:01 a.m. | OK | Java 21 | TESTS | 15 | 421 | 716800 | 1000 | |
261736813 | xin2002 | C | May 20, 2024, 7:36 a.m. | OK | Java 21 | TESTS | 15 | 483 | 1433600 | 1000 | |
263066983 | mangos194 | C | May 28, 2024, 9:43 p.m. | OK | Java 21 | TESTS | 15 | 546 | 819200 | 1000 | |
262855631 | IrhamMA | C | May 27, 2024, 9:14 a.m. | OK | Java 21 | TESTS | 15 | 546 | 1024000 | 1000 | |
263013783 | AC_or_suicide | C | May 28, 2024, 12:58 p.m. | OK | Java 21 | TESTS | 15 | 562 | 1126400 | 1000 | |
263625367 | harsh_chib70 | C | June 1, 2024, 11:59 a.m. | OK | Java 21 | TESTS | 15 | 593 | 921600 | 1000 | |
261630211 | anshs10 | C | May 19, 2024, 9:18 a.m. | OK | Java 21 | TESTS | 15 | 593 | 1331200 | 1000 | |
262916139 | honey_badger1728 | C | May 27, 2024, 5:28 p.m. | OK | Java 21 | TESTS | 15 | 624 | 1024000 | 1000 | |
261749592 | anshgrover25072002 | C | May 20, 2024, 8:40 a.m. | OK | Java 21 | TESTS | 15 | 656 | 307200 | 1000 | |
261549737 | aman28rwt | C | May 18, 2024, 3:24 p.m. | OK | Java 8 | TESTS | 15 | 171 | 0 | 1000 | |
261546686 | strind | C | May 18, 2024, 3 p.m. | OK | Java 8 | TESTS | 15 | 186 | 0 | 1000 | |
262870458 | tittiesboy99 | C | May 27, 2024, 11:20 a.m. | OK | Java 8 | TESTS | 15 | 187 | 0 | 1000 | |
261281677 | Hemant_malav | C | May 17, 2024, 5:35 a.m. | OK | Java 8 | TESTS | 15 | 187 | 8499200 | 1000 | |
261317223 | ved20 | C | May 17, 2024, 11:01 a.m. | OK | Java 8 | TESTS | 15 | 436 | 102400 | 1000 | |
262415765 | sam_20101999 | C | May 24, 2024, 4:49 p.m. | OK | Java 8 | TESTS | 15 | 467 | 0 | 1000 | |
261735814 | YeCan | C | May 20, 2024, 7:27 a.m. | OK | Java 8 | TESTS | 15 | 499 | 0 | 1000 | |
261735841 | luogu_bot5 | C | May 20, 2024, 7:27 a.m. | OK | Java 8 | TESTS | 15 | 546 | 0 | 1000 | |
261587231 | 233030202 | C | May 19, 2024, 12:40 a.m. | OK | Java 8 | TESTS | 15 | 639 | 0 | 1000 | |
261462339 | shahilkhan3303 | C | May 18, 2024, 5:23 a.m. | OK | Java 8 | TESTS | 15 | 639 | 0 | 1000 | |
261244468 | A_23 | C | May 16, 2024, 7:04 p.m. | OK | Kotlin 1.9 | TESTS | 15 | 702 | 0 | 1000 | |
262846435 | parth_7042 | C | May 27, 2024, 7:53 a.m. | OK | PHP | TESTS | 15 | 124 | 4198400 | 1000 | |
261738648 | duffyishere | C | May 20, 2024, 7:54 a.m. | OK | PyPy 3 | TESTS | 15 | 437 | 9420800 | 1000 | |
261698781 | mahnameisayush | C | May 19, 2024, 7:59 p.m. | OK | PyPy 3 | TESTS | 15 | 437 | 9728000 | 1000 | |
261738877 | duffyishere | C | May 20, 2024, 7:56 a.m. | OK | PyPy 3 | TESTS | 15 | 452 | 9318400 | 1000 | |
262961467 | V_1995 | C | May 28, 2024, 5:31 a.m. | OK | PyPy 3 | TESTS | 15 | 499 | 10035200 | 1000 | |
262121535 | aayushprasad00691 | C | May 22, 2024, 9:32 a.m. | OK | PyPy 3 | TESTS | 15 | 530 | 9830400 | 1000 | |
261205489 | anton20969 | C | May 16, 2024, 1:46 p.m. | OK | PyPy 3 | TESTS | 15 | 562 | 9625600 | 1000 | |
262122036 | aayushprasad00691 | C | May 22, 2024, 9:36 a.m. | OK | PyPy 3 | TESTS | 15 | 577 | 9523200 | 1000 | |
263648012 | Vidusheey09 | C | June 1, 2024, 3:16 p.m. | OK | PyPy 3 | TESTS | 15 | 593 | 9625600 | 1000 | |
263232831 | Charles_LHN | C | May 30, 2024, 11:48 a.m. | OK | PyPy 3-64 | TESTS | 15 | 140 | 9523200 | 1000 | |
261736904 | shuby | C | May 20, 2024, 7:37 a.m. | OK | PyPy 3-64 | TESTS | 15 | 140 | 20787200 | 1000 | |
261473793 | tomasnyberg | C | May 18, 2024, 6:49 a.m. | OK | PyPy 3-64 | TESTS | 15 | 155 | 8704000 | 1000 | |
261329459 | Rache_Bartmoss | C | May 17, 2024, 12:36 p.m. | OK | PyPy 3-64 | TESTS | 15 | 155 | 9011200 | 1000 | |
262341785 | cperkkk | C | May 24, 2024, 6:20 a.m. | OK | PyPy 3-64 | TESTS | 15 | 156 | 8601600 | 1000 | |
261255839 | ryu5187 | C | May 16, 2024, 9:51 p.m. | OK | PyPy 3-64 | TESTS | 15 | 156 | 8704000 | 1000 | |
262037598 | its_believe | C | May 21, 2024, 2:58 p.m. | OK | PyPy 3-64 | TESTS | 15 | 156 | 8806400 | 1000 | |
261593022 | Codness50 | C | May 19, 2024, 3:02 a.m. | OK | PyPy 3-64 | TESTS | 15 | 156 | 9011200 | 1000 | |
262682629 | ishan_luhani | C | May 26, 2024, 9:37 a.m. | OK | PyPy 3-64 | TESTS | 15 | 171 | 7577600 | 1000 | |
262336364 | Taymyr | C | May 24, 2024, 5:19 a.m. | OK | PyPy 3-64 | TESTS | 15 | 171 | 9113600 | 1000 | |
261736976 | shuby | C | May 20, 2024, 7:37 a.m. | OK | Python 3 | TESTS | 15 | 203 | 19968000 | 1000 | |
262160260 | samoylovboris | C | May 22, 2024, 3:04 p.m. | OK | Python 3 | TESTS | 15 | 217 | 0 | 1000 | |
261694260 | gustavaman | C | May 19, 2024, 6:58 p.m. | OK | Python 3 | TESTS | 15 | 233 | 0 | 1000 | |
262326264 | PascalA | C | May 24, 2024, 2:49 a.m. | OK | Python 3 | TESTS | 15 | 249 | 0 | 1000 | |
263090763 | atharva_112 | C | May 29, 2024, 5:39 a.m. | OK | Python 3 | TESTS | 15 | 250 | 0 | 1000 | |
261443084 | misaki646 | C | May 18, 2024, 12:52 a.m. | OK | Python 3 | TESTS | 15 | 265 | 0 | 1000 | |
263155105 | tccx18 | C | May 29, 2024, 2:21 p.m. | OK | Python 3 | TESTS | 15 | 296 | 409600 | 1000 | |
261761995 | hju013961 | C | May 20, 2024, 10:15 a.m. | OK | Python 3 | TESTS | 15 | 311 | 0 | 1000 | |
261684829 | Chmel_Tolstiy | C | May 19, 2024, 5:23 p.m. | OK | Python 3 | TESTS | 15 | 311 | 0 | 1000 | |
262627017 | VS34 | C | May 25, 2024, 9:28 p.m. | OK | Python 3 | TESTS | 15 | 312 | 0 | 1000 | |
263046644 | DarkSky_0xFF | C | May 28, 2024, 5:29 p.m. | OK | Rust 2021 | TESTS | 15 | 61 | 0 | 1000 | |
263182677 | n0b0dy01 | C | May 29, 2024, 8:28 p.m. | OK | Rust 2021 | TESTS | 15 | 93 | 0 | 1000 | |
261093157 | Ktwsz | C | May 15, 2024, 6:26 p.m. | OK | Rust 2021 | TESTS | 15 | 93 | 0 | 1000 | |
261554046 | Tardimgg | C | May 18, 2024, 3:58 p.m. | OK | Rust 2021 | TESTS | 15 | 124 | 0 | 1000 |
Back to search problems