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 |
---|---|---|---|---|---|---|
1931 | Codeforces Round 925 (Div. 3) | FINISHED | False | 8100 | 29345063 | Feb. 13, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 8401 ) | F | Chat Screenshots | PROGRAMMING | combinatorics dfs and similar graphs implementation |
B'There are n people in the programming contest chat. Chat participants are ordered by activity, but each person sees himself at the top of the list. For example, there are 4 participants in the chat, and their order is [2, 3, 1, 4] . Then k people posted screenshots in the chat, which show the order of participants shown to this user. The screenshots were taken within a short period of time, and the order of participants has not changed. Your task is to determine whether there is a certain order that all screenshots correspond to. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of input test cases. The descriptions of test cases follow. The first line of the description of each test case contains two integers n and k ( 1 <= k <= n <= 2 cdot 10^5, n cdot k <= 2 cdot 10^5 ) -- the number of chat participants and the number of participants who posted screenshots. The following k lines contain descriptions of screenshots posted by the participants. The i -th row contains n integers a_{ij} each ( 1 <= a_{ij} <= n , all a_{ij} are different) -- the order of participants shown to the participant a_{i0} , where a_{i0} -- the author of the screenshot. You can show that in the screenshot description it will always be at the top of the list. It is guaranteed that the sum of n cdot k for all test cases does not exceed 2 cdot 10^5 . It is also guaranteed that all the authors of the screenshots are different. Output t lines, each of which is the answer to the corresponding test case. As an answer, output "YES" if there exists at least one order of participants, under which all k screenshots could have been obtained. Otherwise, output "NO". 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. '... |
125878 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
246276013 | KBahl | F | Feb. 13, 2024, 6:56 p.m. | OK | GNU C++17 | TESTS | 31 | 46 | 2150400 | ||
246308215 | chirath2004nirodha | F | Feb. 14, 2024, 4:10 a.m. | OK | GNU C++17 | TESTS | 31 | 61 | 1228800 | ||
246300913 | omeganot | F | Feb. 14, 2024, 1:51 a.m. | OK | GNU C++17 | TESTS | 31 | 61 | 3174400 | ||
246315472 | 989 | F | Feb. 14, 2024, 5:47 a.m. | OK | GNU C++17 | TESTS | 31 | 61 | 9625600 | ||
246311655 | SaMuEl0516 | F | Feb. 14, 2024, 5 a.m. | OK | GNU C++17 | TESTS | 31 | 62 | 1638400 | ||
246269580 | Pbezz | F | Feb. 13, 2024, 6:05 p.m. | OK | GNU C++17 | TESTS | 31 | 62 | 1638400 | ||
246268027 | Shubhangeya | F | Feb. 13, 2024, 5:54 p.m. | OK | GNU C++17 | TESTS | 31 | 62 | 1638400 | ||
246310638 | TaHeToO | F | Feb. 14, 2024, 4:48 a.m. | OK | GNU C++17 | TESTS | 31 | 62 | 2048000 | ||
246309449 | Actium | F | Feb. 14, 2024, 4:30 a.m. | OK | GNU C++17 | TESTS | 31 | 62 | 2048000 | ||
246306150 | keleita | F | Feb. 14, 2024, 3:38 a.m. | OK | GNU C++17 | TESTS | 31 | 62 | 2048000 | ||
246310729 | hjh123445 | F | Feb. 14, 2024, 4:49 a.m. | OK | GNU C++17 (64) | TESTS | 31 | 46 | 2969600 | ||
246278797 | chenRenning | F | Feb. 13, 2024, 7:20 p.m. | OK | GNU C++17 (64) | TESTS | 31 | 46 | 4812800 | ||
246264436 | Kita_Ikuyo | F | Feb. 13, 2024, 5:32 p.m. | OK | GNU C++17 (64) | TESTS | 31 | 46 | 5632000 | ||
246307643 | hatsuyufei | F | Feb. 14, 2024, 4 a.m. | OK | GNU C++17 (64) | TESTS | 31 | 46 | 8396800 | ||
246301682 | Geirangerfjard | F | Feb. 14, 2024, 2:10 a.m. | OK | GNU C++17 (64) | TESTS | 31 | 46 | 12390400 | ||
246280286 | luckyblock233 | F | Feb. 13, 2024, 7:34 p.m. | OK | GNU C++17 (64) | TESTS | 31 | 46 | 15257600 | ||
246307480 | yangbalu | F | Feb. 14, 2024, 3:57 a.m. | OK | GNU C++17 (64) | TESTS | 31 | 46 | 16076800 | ||
246262111 | liujize | F | Feb. 13, 2024, 5:19 p.m. | OK | GNU C++17 (64) | TESTS | 31 | 62 | 6656000 | ||
246312334 | Meng17 | F | Feb. 14, 2024, 5:09 a.m. | OK | GNU C++17 (64) | TESTS | 31 | 62 | 9625600 | ||
246297066 | GunSJ | F | Feb. 13, 2024, 11:57 p.m. | OK | GNU C++17 (64) | TESTS | 31 | 62 | 9625600 | ||
246316578 | shift. | F | Feb. 14, 2024, 5:59 a.m. | OK | GNU C++20 (64) | TESTS | 31 | 31 | 1638400 | ||
246301557 | addict_0x0F | F | Feb. 14, 2024, 2:07 a.m. | OK | GNU C++20 (64) | TESTS | 31 | 31 | 1638400 | ||
246285578 | d1amondzz | F | Feb. 13, 2024, 8:30 p.m. | OK | GNU C++20 (64) | TESTS | 31 | 31 | 1638400 | ||
246297852 | Slephy | F | Feb. 14, 2024, 12:20 a.m. | OK | GNU C++20 (64) | TESTS | 31 | 31 | 1843200 | ||
246298959 | Drifter24 | F | Feb. 14, 2024, 12:54 a.m. | OK | GNU C++20 (64) | TESTS | 31 | 31 | 2048000 | ||
246288516 | path_to_red | F | Feb. 13, 2024, 9:08 p.m. | OK | GNU C++20 (64) | TESTS | 31 | 31 | 2048000 | ||
246288492 | path_to_red | F | Feb. 13, 2024, 9:07 p.m. | OK | GNU C++20 (64) | TESTS | 31 | 31 | 2048000 | ||
246288254 | path_to_red | F | Feb. 13, 2024, 9:04 p.m. | OK | GNU C++20 (64) | TESTS | 31 | 31 | 2048000 | ||
246284010 | AlaaaldeenAlkassar | F | Feb. 13, 2024, 8:11 p.m. | OK | GNU C++20 (64) | TESTS | 31 | 31 | 2048000 | ||
246283928 | The_Logic | F | Feb. 13, 2024, 8:10 p.m. | OK | GNU C++20 (64) | TESTS | 31 | 31 | 2048000 | ||
246316861 | ajayg3059 | F | Feb. 14, 2024, 6:02 a.m. | OK | Go | TESTS | 31 | 249 | 44851200 | ||
246285190 | dzhi | F | Feb. 13, 2024, 8:25 p.m. | OK | Java 21 | TESTS | 31 | 358 | 204800 | ||
246309352 | AKhacks | F | Feb. 14, 2024, 4:29 a.m. | OK | Java 21 | TESTS | 31 | 358 | 6144000 | ||
246314891 | d2s2 | F | Feb. 14, 2024, 5:40 a.m. | OK | Java 21 | TESTS | 31 | 390 | 30310400 | ||
246297975 | man-ray | F | Feb. 14, 2024, 12:23 a.m. | OK | Java 21 | TESTS | 31 | 452 | 35635200 | ||
246304693 | SilveryZz | F | Feb. 14, 2024, 3:12 a.m. | OK | Java 21 | TESTS | 31 | 467 | 28774400 | ||
246296290 | powervic08 | F | Feb. 13, 2024, 11:38 p.m. | OK | Java 21 | TESTS | 31 | 482 | 34816000 | ||
246297807 | man-ray | F | Feb. 14, 2024, 12:19 a.m. | OK | Java 21 | TESTS | 31 | 483 | 51200000 | ||
246273599 | Multi-Thread | F | Feb. 13, 2024, 6:34 p.m. | OK | Java 21 | TESTS | 31 | 530 | 74035200 | ||
246311786 | believe18 | F | Feb. 14, 2024, 5:02 a.m. | OK | Java 21 | TESTS | 31 | 576 | 39116800 | ||
246267406 | Eslam_Ahmed | F | Feb. 13, 2024, 5:50 p.m. | OK | Java 21 | TESTS | 31 | 639 | 37273600 | ||
246266403 | Yousef_Badr | F | Feb. 13, 2024, 5:44 p.m. | OK | Java 8 | TESTS | 31 | 155 | 1843200 | ||
246304034 | Sumitsingh7 | F | Feb. 14, 2024, 3:01 a.m. | OK | Java 8 | TESTS | 31 | 420 | 45977600 | ||
246285182 | Indrajit | F | Feb. 13, 2024, 8:24 p.m. | OK | Java 8 | TESTS | 31 | 436 | 45977600 | ||
246276216 | MintCat | F | Feb. 13, 2024, 6:57 p.m. | OK | Java 8 | TESTS | 31 | 498 | 19353600 | ||
246273012 | kasiru_69 | F | Feb. 13, 2024, 6:30 p.m. | OK | Java 8 | TESTS | 31 | 686 | 147251200 | ||
246271656 | Kasiru_Yamagata | F | Feb. 13, 2024, 6:19 p.m. | OK | Java 8 | TESTS | 31 | 686 | 147251200 | ||
246277829 | superyash | F | Feb. 13, 2024, 7:12 p.m. | OK | Java 8 | TESTS | 31 | 826 | 60416000 | ||
246284794 | mircea85 | F | Feb. 13, 2024, 8:20 p.m. | OK | Mono C# | TESTS | 31 | 109 | 20172800 | ||
246258256 | ahtoh_ | F | Feb. 13, 2024, 5:02 p.m. | OK | Node.js | TESTS | 31 | 156 | 32870400 | ||
246308184 | i_ayush23 | F | Feb. 14, 2024, 4:09 a.m. | OK | PyPy 3 | TESTS | 31 | 545 | 56217600 | ||
246268228 | the_last_smilodon | F | Feb. 13, 2024, 5:56 p.m. | OK | PyPy 3 | TESTS | 31 | 873 | 79667200 | ||
246308291 | cybsbbb | F | Feb. 14, 2024, 4:11 a.m. | OK | PyPy 3-64 | TESTS | 31 | 233 | 40755200 | ||
246296401 | Mustela_Erminea | F | Feb. 13, 2024, 11:40 p.m. | OK | PyPy 3-64 | TESTS | 31 | 249 | 26214400 | ||
246284552 | Erum_Meraj | F | Feb. 13, 2024, 8:18 p.m. | OK | PyPy 3-64 | TESTS | 31 | 249 | 39833600 | ||
246278045 | kibr | F | Feb. 13, 2024, 7:14 p.m. | OK | PyPy 3-64 | TESTS | 31 | 264 | 20787200 | ||
246260529 | a_nanas | F | Feb. 13, 2024, 5:12 p.m. | OK | PyPy 3-64 | TESTS | 31 | 265 | 31948800 | ||
246262832 | Nullz | F | Feb. 13, 2024, 5:23 p.m. | OK | PyPy 3-64 | TESTS | 31 | 265 | 49766400 | ||
246294115 | HliasBoss | F | Feb. 13, 2024, 10:46 p.m. | OK | PyPy 3-64 | TESTS | 31 | 280 | 26419200 | ||
246258114 | batnik | F | Feb. 13, 2024, 5:02 p.m. | OK | PyPy 3-64 | TESTS | 31 | 280 | 37171200 | ||
246262449 | floweria | F | Feb. 13, 2024, 5:21 p.m. | OK | PyPy 3-64 | TESTS | 31 | 311 | 39321600 | ||
246310957 | Sam343 | F | Feb. 14, 2024, 4:51 a.m. | OK | PyPy 3-64 | TESTS | 31 | 327 | 39936000 | ||
246259132 | OLOGY | F | Feb. 13, 2024, 5:06 p.m. | OK | Python 2 | TESTS | 31 | 452 | 19353600 | ||
246296578 | Omar-Senpai | F | Feb. 13, 2024, 11:45 p.m. | OK | Python 3 | TESTS | 31 | 171 | 27852800 | ||
246280992 | givemeajobplease | F | Feb. 13, 2024, 7:41 p.m. | OK | Python 3 | TESTS | 31 | 202 | 26009600 | ||
246262826 | krism | F | Feb. 13, 2024, 5:23 p.m. | OK | Python 3 | TESTS | 31 | 498 | 42188800 | ||
246264151 | lukamosiashvili | F | Feb. 13, 2024, 5:30 p.m. | OK | Python 3 | TESTS | 31 | 545 | 45158400 | ||
246306756 | Jaideep19 | F | Feb. 14, 2024, 3:46 a.m. | OK | Python 3 | TESTS | 31 | 732 | 101273600 | ||
246268265 | the_last_smilodon | F | Feb. 13, 2024, 5:56 p.m. | OK | Python 3 | TESTS | 31 | 1621 | 129945600 | ||
246269394 | the_last_smilodon | F | Feb. 13, 2024, 6:04 p.m. | OK | Python 3 | TESTS | 31 | 1700 | 155852800 |
Back to search problems