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 |
---|---|---|---|---|---|---|
1903 | Codeforces Round 912 (Div. 2) | FINISHED | False | 8100 | 30461099 | Nov. 30, 2023, 4:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 12942 ) | B | StORage room | PROGRAMMING | bitmasks brute force constructive algorithms greedy |
B'In Cyprus, the weather is pretty hot. Thus, Theofanis saw this as an opportunity to create an ice cream company. He keeps the ice cream safe from other ice cream producers by locking it inside big storage rooms. However, he forgot the password. Luckily, the lock has a special feature for forgetful people! It gives you a table M with n rows and n columns of non-negative integers, and to open the lock, you need to find an array a of n elements such that: The lock has a bug, and sometimes it gives tables without any solutions. In that case, the ice cream will remain frozen for the rest of eternity. Can you find an array to open the lock? The first line contains a single integer t ( 1 <= t <= 10^{3} ) -- the number of test cases. The first line of each test case contains a single integer n ( 1 <= n <= 10^{3} ) -- the size of the hidden array. The next n lines describe the rows of M , line i contains the table values M_{i,1}, M_{i,2}, ldots, M_{i,n} ( 0 <= M_{i,j} < 2^{30} ). It is guaranteed that M_{i,i} = 0 and M_{i,j} = M_{j,i} for all 1 <= i,j <= n . It is also guaranteed that the sum of n over all test cases does not exceed 10^{3} . For each test case, if there is a solution print YES and an array that satisfies the property, otherwise print NO. If there are multiple solutions, print any of them. You can output the answer in any case (upper or lower). For example, the strings "yEs", "yes", "Yes", and "YES" will be recognized as positive responses. '... |
Codeforces Round #912 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
235126144 | Alfafox | B | Nov. 30, 2023, 6:33 p.m. | OK | C# 10 | TESTS | 15 | 124 | 3686400 | ||
235143834 | ansergeyg | B | Nov. 30, 2023, 9:13 p.m. | OK | C# 10 | TESTS | 15 | 124 | 7680000 | ||
235145295 | Rokisek | B | Nov. 30, 2023, 9:38 p.m. | OK | C# 10 | TESTS | 15 | 124 | 9523200 | ||
235144473 | Rokisek | B | Nov. 30, 2023, 9:23 p.m. | OK | C# 10 | TESTS | 15 | 139 | 9728000 | ||
235138531 | NenadDapic | B | Nov. 30, 2023, 8:10 p.m. | OK | FPC | TESTS | 15 | 264 | 3993600 | ||
235124888 | ABTurjo121 | B | Nov. 30, 2023, 6:29 p.m. | OK | GNU C11 | TESTS | 15 | 186 | 3993600 | ||
235128723 | _karanwadhwa_21 | B | Nov. 30, 2023, 6:43 p.m. | OK | GNU C11 | TESTS | 15 | 186 | 3993600 | ||
235126760 | Nishant_2728 | B | Nov. 30, 2023, 6:36 p.m. | OK | GNU C11 | TESTS | 15 | 202 | 3993600 | ||
235154307 | omeganot | B | Dec. 1, 2023, 1:17 a.m. | OK | GNU C++14 | TESTS | 15 | 202 | 4300800 | ||
235166600 | a2954898606 | B | Dec. 1, 2023, 4:46 a.m. | OK | GNU C++14 | TESTS | 15 | 202 | 4300800 | ||
235129262 | LavishPratapSingh | B | Nov. 30, 2023, 6:45 p.m. | OK | GNU C++14 | TESTS | 15 | 217 | 4300800 | ||
235151806 | AmigoDoPemrritoCheems | B | Dec. 1, 2023, 12:19 a.m. | OK | GNU C++14 | TESTS | 15 | 217 | 4300800 | ||
235116368 | razouq | B | Nov. 30, 2023, 5:57 p.m. | OK | GNU C++14 | TESTS | 15 | 218 | 4300800 | ||
235142523 | clemenceparis | B | Nov. 30, 2023, 8:55 p.m. | OK | GNU C++14 | TESTS | 15 | 218 | 4300800 | ||
235129424 | ADwar616 | B | Nov. 30, 2023, 6:46 p.m. | OK | GNU C++14 | TESTS | 15 | 218 | 4300800 | ||
235120900 | heyviv | B | Nov. 30, 2023, 6:14 p.m. | OK | GNU C++14 | TESTS | 15 | 218 | 4300800 | ||
235119843 | kratos_2711 | B | Nov. 30, 2023, 6:10 p.m. | OK | GNU C++14 | TESTS | 15 | 218 | 8704000 | ||
235170185 | bewafa_woh | B | Dec. 1, 2023, 5:29 a.m. | OK | GNU C++14 | TESTS | 15 | 233 | 8704000 | ||
235137471 | expertaq | B | Nov. 30, 2023, 7:59 p.m. | OK | GNU C++17 | TESTS | 15 | 186 | 4812800 | ||
235149333 | Rujul | B | Nov. 30, 2023, 11:09 p.m. | OK | GNU C++17 | TESTS | 15 | 202 | 4300800 | ||
235134782 | Kasber | B | Nov. 30, 2023, 7:37 p.m. | OK | GNU C++17 | TESTS | 15 | 202 | 4300800 | ||
235152112 | snacache | B | Dec. 1, 2023, 12:26 a.m. | OK | GNU C++17 | TESTS | 15 | 217 | 4096000 | ||
235158726 | dev-shajid | B | Dec. 1, 2023, 2:46 a.m. | OK | GNU C++17 | TESTS | 15 | 218 | 4300800 | ||
235158010 | beckman004 | B | Dec. 1, 2023, 2:34 a.m. | OK | GNU C++17 | TESTS | 15 | 218 | 4300800 | ||
235150411 | Anas245 | B | Nov. 30, 2023, 11:40 p.m. | OK | GNU C++17 | TESTS | 15 | 218 | 4300800 | ||
235159201 | HeavyCoderr | B | Dec. 1, 2023, 2:54 a.m. | OK | GNU C++17 | TESTS | 15 | 218 | 4300800 | ||
235160032 | lord_markosa | B | Dec. 1, 2023, 3:08 a.m. | OK | GNU C++17 | TESTS | 15 | 218 | 4300800 | ||
235165919 | coderkr | B | Dec. 1, 2023, 4:36 a.m. | OK | GNU C++17 | TESTS | 15 | 218 | 4300800 | ||
235151240 | N_z__ | B | Dec. 1, 2023, 12:04 a.m. | OK | GNU C++17 (64) | TESTS | 15 | 46 | 8704000 | ||
235134915 | HarperYu | B | Nov. 30, 2023, 7:38 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 155 | 8089600 | ||
235156728 | xiaotongzha1113 | B | Dec. 1, 2023, 2:09 a.m. | OK | GNU C++17 (64) | TESTS | 15 | 170 | 4403200 | ||
235166719 | BaiBang | B | Dec. 1, 2023, 4:48 a.m. | OK | GNU C++17 (64) | TESTS | 15 | 171 | 3993600 | ||
235126498 | Salman__Ahmed | B | Nov. 30, 2023, 6:35 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 171 | 3993600 | ||
235160510 | Yn_ns | B | Dec. 1, 2023, 3:15 a.m. | OK | GNU C++17 (64) | TESTS | 15 | 171 | 4096000 | ||
235162901 | lengmuzhaxi | B | Dec. 1, 2023, 3:49 a.m. | OK | GNU C++17 (64) | TESTS | 15 | 171 | 4403200 | ||
235154082 | xioachou | B | Dec. 1, 2023, 1:12 a.m. | OK | GNU C++17 (64) | TESTS | 15 | 171 | 4403200 | ||
235154696 | JustA7 | B | Dec. 1, 2023, 1:25 a.m. | OK | GNU C++17 (64) | TESTS | 15 | 171 | 4505600 | ||
235137426 | expertaq | B | Nov. 30, 2023, 7:59 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 171 | 4710400 | ||
235135422 | --AshikBillahWalid-- | B | Nov. 30, 2023, 7:41 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 124 | 3993600 | ||
235124219 | Avijit_Biswas | B | Nov. 30, 2023, 6:26 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 124 | 3993600 | ||
235161646 | dask_58 | B | Dec. 1, 2023, 3:31 a.m. | OK | GNU C++20 (64) | TESTS | 15 | 124 | 3993600 | ||
235166120 | TienMinh | B | Dec. 1, 2023, 4:39 a.m. | OK | GNU C++20 (64) | TESTS | 15 | 124 | 4096000 | ||
235153134 | 5af | B | Dec. 1, 2023, 12:51 a.m. | OK | GNU C++20 (64) | TESTS | 15 | 124 | 4096000 | ||
235150064 | ht4779925 | B | Nov. 30, 2023, 11:30 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 124 | 4096000 | ||
235142826 | Itnes | B | Nov. 30, 2023, 8:58 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 124 | 4096000 | ||
235158296 | Siddik_060 | B | Dec. 1, 2023, 2:39 a.m. | OK | GNU C++20 (64) | TESTS | 15 | 124 | 4403200 | ||
235155690 | lxy_sheep | B | Dec. 1, 2023, 1:45 a.m. | OK | GNU C++20 (64) | TESTS | 15 | 124 | 4403200 | ||
235146236 | OmarSaber | B | Nov. 30, 2023, 9:56 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 124 | 4403200 | ||
235117600 | katomasao | B | Nov. 30, 2023, 6:02 p.m. | OK | Haskell | TESTS | 15 | 592 | 105062400 | ||
235127708 | rajkothari634 | B | Nov. 30, 2023, 6:39 p.m. | OK | Java 11 | TESTS | 15 | 1075 | 66355200 | ||
235118431 | tushar19280 | B | Nov. 30, 2023, 6:05 p.m. | OK | Java 11 | TESTS | 15 | 1356 | 39219200 | ||
235149247 | RkRohitKumar | B | Nov. 30, 2023, 11:07 p.m. | OK | Java 11 | TESTS | 15 | 1418 | 0 | ||
235149127 | RkRohitKumar | B | Nov. 30, 2023, 11:04 p.m. | OK | Java 11 | TESTS | 15 | 1419 | 0 | ||
235148954 | RkRohitKumar | B | Nov. 30, 2023, 10:59 p.m. | OK | Java 11 | TESTS | 15 | 1419 | 0 | ||
235151920 | PlayDate | B | Dec. 1, 2023, 12:22 a.m. | OK | Java 11 | TESTS | 15 | 1450 | 0 | ||
235159580 | ranapravesh206 | B | Dec. 1, 2023, 3 a.m. | OK | Java 11 | TESTS | 15 | 1466 | 0 | ||
235171156 | Obitouuti18 | B | Dec. 1, 2023, 5:39 a.m. | OK | Java 11 | TESTS | 15 | 1512 | 0 | ||
235169588 | achal5623 | B | Dec. 1, 2023, 5:23 a.m. | OK | Java 11 | TESTS | 15 | 1512 | 0 | ||
235124564 | TanishSen | B | Nov. 30, 2023, 6:28 p.m. | OK | Java 11 | TESTS | 15 | 1606 | 0 | ||
235146541 | CutSandstone | B | Nov. 30, 2023, 10:02 p.m. | OK | Java 17 | TESTS | 15 | 233 | 11161600 | ||
235133710 | Nagendravarma | B | Nov. 30, 2023, 7:31 p.m. | OK | Java 17 | TESTS | 15 | 389 | 614400 | ||
235157321 | dilshar23 | B | Dec. 1, 2023, 2:21 a.m. | OK | Java 17 | TESTS | 15 | 405 | 2355200 | ||
235158241 | tirthgohil1410 | B | Dec. 1, 2023, 2:38 a.m. | OK | Java 17 | TESTS | 15 | 420 | 7065600 | ||
235127304 | Manas421321 | B | Nov. 30, 2023, 6:38 p.m. | OK | Java 17 | TESTS | 15 | 436 | 512000 | ||
235145279 | aishwarykesarwani | B | Nov. 30, 2023, 9:38 p.m. | OK | Java 17 | TESTS | 15 | 436 | 614400 | ||
235114784 | anand_mishra_ | B | Nov. 30, 2023, 5:52 p.m. | OK | Java 17 | TESTS | 15 | 436 | 614400 | ||
235141070 | daksh_02 | B | Nov. 30, 2023, 8:37 p.m. | OK | Java 17 | TESTS | 15 | 451 | 614400 | ||
235139804 | Jagnath_Reddy | B | Nov. 30, 2023, 8:23 p.m. | OK | Java 17 | TESTS | 15 | 452 | 7065600 | ||
235168840 | TopCloser | B | Dec. 1, 2023, 5:15 a.m. | OK | Java 17 | TESTS | 15 | 561 | 1945600 | ||
235161392 | mehrotramanvendra | B | Dec. 1, 2023, 3:27 a.m. | OK | Java 21 | TESTS | 15 | 327 | 0 | ||
235120200 | nazimazhaan17 | B | Nov. 30, 2023, 6:11 p.m. | OK | Java 21 | TESTS | 15 | 514 | 307200 | ||
235125328 | namansarda2007 | B | Nov. 30, 2023, 6:30 p.m. | OK | Java 21 | TESTS | 15 | 577 | 6963200 | ||
235120229 | Akash_Sardar | B | Nov. 30, 2023, 6:11 p.m. | OK | Java 21 | TESTS | 15 | 607 | 3584000 | ||
235169576 | Menos | B | Dec. 1, 2023, 5:23 a.m. | OK | Java 21 | TESTS | 15 | 1825 | 819200 | ||
235119772 | karanboi | B | Nov. 30, 2023, 6:10 p.m. | OK | Java 21 | TESTS | 15 | 1918 | 614400 | ||
235126596 | karangangwar341 | B | Nov. 30, 2023, 6:35 p.m. | OK | Java 21 | TESTS | 15 | 1949 | 409600 | ||
235150723 | sary-bala | B | Nov. 30, 2023, 11:48 p.m. | OK | Java 8 | TESTS | 15 | 139 | 0 | ||
235136083 | Abusseiit | B | Nov. 30, 2023, 7:47 p.m. | OK | Java 8 | TESTS | 15 | 140 | 0 | ||
235135562 | Akarsh2810 | B | Nov. 30, 2023, 7:43 p.m. | OK | Java 8 | TESTS | 15 | 295 | 0 | ||
235124273 | mohamedhassan_c | B | Nov. 30, 2023, 6:26 p.m. | OK | Java 8 | TESTS | 15 | 342 | 19968000 | ||
235127182 | formidablechief_27 | B | Nov. 30, 2023, 6:37 p.m. | OK | Java 8 | TESTS | 15 | 389 | 15872000 | ||
235121050 | Khan_2020 | B | Nov. 30, 2023, 6:14 p.m. | OK | Java 8 | TESTS | 15 | 1060 | 8601600 | ||
235168185 | priyaroy3370 | B | Dec. 1, 2023, 5:07 a.m. | OK | Java 8 | TESTS | 15 | 1325 | 4403200 | ||
235159676 | ashraybharambe | B | Dec. 1, 2023, 3:02 a.m. | OK | Java 8 | TESTS | 15 | 1357 | 0 | ||
235118531 | ArsheeyaTabassum | B | Nov. 30, 2023, 6:05 p.m. | OK | Java 8 | TESTS | 15 | 1419 | 0 | ||
235114139 | reactioner | B | Nov. 30, 2023, 5:50 p.m. | OK | Java 8 | TESTS | 15 | 1543 | 0 | ||
235120859 | VitaliiV | B | Nov. 30, 2023, 6:14 p.m. | OK | MS C++ 2017 | TESTS | 15 | 889 | 4403200 | ||
235146855 | zxcuser1 | B | Nov. 30, 2023, 10:10 p.m. | OK | MS C++ 2017 | TESTS | 15 | 889 | 8601600 | ||
235155941 | Aneeba | B | Dec. 1, 2023, 1:51 a.m. | OK | MS C++ 2017 | TESTS | 15 | 935 | 4403200 | ||
235157932 | magician_Y | B | Dec. 1, 2023, 2:32 a.m. | OK | MS C++ 2017 | TESTS | 15 | 951 | 4403200 | ||
235143219 | Dependentia_ | B | Nov. 30, 2023, 9:03 p.m. | OK | MS C++ 2017 | TESTS | 15 | 967 | 7987200 | ||
235114388 | kotprogrammist | B | Nov. 30, 2023, 5:51 p.m. | OK | MS C++ 2017 | TESTS | 15 | 967 | 8601600 | ||
235119724 | weiquu | B | Nov. 30, 2023, 6:09 p.m. | OK | MS C++ 2017 | TESTS | 15 | 1029 | 4403200 | ||
235114815 | sentiv | B | Nov. 30, 2023, 5:52 p.m. | OK | Perl | TESTS | 15 | 1091 | 69632000 | ||
235118187 | samurai_0028 | B | Nov. 30, 2023, 6:04 p.m. | OK | PHP | TESTS | 15 | 170 | 37785600 | ||
235121209 | Jimmily | B | Nov. 30, 2023, 6:15 p.m. | OK | PyPy 3 | TESTS | 15 | 1045 | 10956800 | ||
235114973 | yujie3 | B | Nov. 30, 2023, 5:53 p.m. | OK | PyPy 3 | TESTS | 15 | 1154 | 11161600 | ||
235125185 | mahnameisayush | B | Nov. 30, 2023, 6:30 p.m. | OK | PyPy 3 | TESTS | 15 | 1169 | 14131200 | ||
235145041 | lebron87 | B | Nov. 30, 2023, 9:33 p.m. | OK | PyPy 3 | TESTS | 15 | 1653 | 11571200 | ||
235135794 | SoleProprietor | B | Nov. 30, 2023, 7:44 p.m. | OK | PyPy 3-64 | TESTS | 15 | 187 | 16486400 | ||
235159416 | udayan8 | B | Dec. 1, 2023, 2:57 a.m. | OK | PyPy 3-64 | TESTS | 15 | 187 | 32358400 | ||
235165130 | AS2905 | B | Dec. 1, 2023, 4:24 a.m. | OK | PyPy 3-64 | TESTS | 15 | 202 | 16588800 | ||
235146024 | aviral311 | B | Nov. 30, 2023, 9:51 p.m. | OK | PyPy 3-64 | TESTS | 15 | 202 | 16691200 | ||
235121242 | yaroslav_pos | B | Nov. 30, 2023, 6:15 p.m. | OK | PyPy 3-64 | TESTS | 15 | 218 | 15974400 | ||
235135866 | Flagro | B | Nov. 30, 2023, 7:45 p.m. | OK | PyPy 3-64 | TESTS | 15 | 218 | 16076800 | ||
235121981 | qtq2 | B | Nov. 30, 2023, 6:18 p.m. | OK | PyPy 3-64 | TESTS | 15 | 218 | 16179200 | ||
235129993 | notChidi | B | Nov. 30, 2023, 6:47 p.m. | OK | PyPy 3-64 | TESTS | 15 | 218 | 16384000 | ||
235120145 | zechri | B | Nov. 30, 2023, 6:11 p.m. | OK | PyPy 3-64 | TESTS | 15 | 218 | 16998400 | ||
235154745 | Sparkle_Twilight | B | Dec. 1, 2023, 1:26 a.m. | OK | PyPy 3-64 | TESTS | 15 | 218 | 17408000 | ||
235125473 | smam-mahdi | B | Nov. 30, 2023, 6:31 p.m. | OK | Python 3 | TESTS | 15 | 436 | 3276800 | ||
235127821 | hced | B | Nov. 30, 2023, 6:40 p.m. | OK | Python 3 | TESTS | 15 | 530 | 46080000 | ||
235123860 | DhruvVerma | B | Nov. 30, 2023, 6:25 p.m. | OK | Python 3 | TESTS | 15 | 545 | 42700800 | ||
235128478 | SS_CM | B | Nov. 30, 2023, 6:42 p.m. | OK | Python 3 | TESTS | 15 | 545 | 43315200 | ||
235120638 | bOrax10 | B | Nov. 30, 2023, 6:13 p.m. | OK | Python 3 | TESTS | 15 | 545 | 85401600 | ||
235116147 | chaitanya1023 | B | Nov. 30, 2023, 5:57 p.m. | OK | Python 3 | TESTS | 15 | 561 | 43417600 | ||
235115078 | todog | B | Nov. 30, 2023, 5:53 p.m. | OK | Python 3 | TESTS | 15 | 577 | 43212800 | ||
235120143 | icevein | B | Nov. 30, 2023, 6:11 p.m. | OK | Python 3 | TESTS | 15 | 608 | 43315200 | ||
235130297 | avengers2405 | B | Nov. 30, 2023, 6:48 p.m. | OK | Python 3 | TESTS | 15 | 623 | 43520000 | ||
235117085 | Jassi_2003 | B | Nov. 30, 2023, 6 p.m. | OK | Python 3 | TESTS | 15 | 639 | 43622400 | ||
235146841 | 0x81 | B | Nov. 30, 2023, 10:10 p.m. | OK | Ruby 3 | TESTS | 15 | 1372 | 14438400 | ||
235139522 | vstiff | B | Nov. 30, 2023, 8:20 p.m. | OK | Rust 2021 | TESTS | 15 | 46 | 3174400 | ||
235162391 | hamerin | B | Dec. 1, 2023, 3:42 a.m. | OK | Rust 2021 | TESTS | 15 | 61 | 4403200 | ||
235115123 | dlv | B | Nov. 30, 2023, 5:53 p.m. | OK | Rust 2021 | TESTS | 15 | 61 | 9011200 | ||
235136857 | jyom | B | Nov. 30, 2023, 7:53 p.m. | OK | Rust 2021 | TESTS | 15 | 62 | 4403200 | ||
235126237 | SeeleVollerei_ | B | Nov. 30, 2023, 6:34 p.m. | OK | Rust 2021 | TESTS | 15 | 62 | 4505600 | ||
235127284 | emiliopeju | B | Nov. 30, 2023, 6:38 p.m. | OK | Rust 2021 | TESTS | 15 | 124 | 11264000 | ||
235127147 | _a253 | B | Nov. 30, 2023, 6:37 p.m. | OK | Rust 2021 | TESTS | 15 | 186 | 6963200 |
Back to search problems