Codeforces Round 663 (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
1391 Codeforces Round 663 (Div. 2) FINISHED False 7200 140196263 Aug. 9, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1736 ) E Pairs of Pairs PROGRAMMING constructive algorithms dfs and similar graphs trees

B'You have a simple and connected undirected graph consisting of n nodes and m edges. Consider any way to pair some subset of these n nodes such that no node is present in more than one pair. This pairing is valid if for every pair of pairs, the induced subgraph containing all 4 nodes, two from each pair, has at most 2 edges (out of the 6 possible edges). More formally, for any two pairs, (a,b) and (c,d) , the induced subgraph with nodes {a,b,c,d } should have at most 2 edges. Please note that the subgraph induced by a set of nodes contains nodes only from this set and edges which have both of its end points in this set. Now, do one of the following: It can be shown that it is possible to find at least one of the two in every graph satisfying constraints from the statement. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10^5 ). Description of the test cases follows. The first line of each test case contains 2 integers n, m ( 2 <= n <= 5 cdot 10^5 , 1 <= m <= 10^6 ), denoting the number of nodes and edges, respectively. The next m lines each contain 2 integers u and v ( 1 <= u, v <= n , u neq v ), denoting that there is an undirected edge between nodes u and v in the given graph. It is guaranteed that the given graph is connected, and simple -- it does not contain multiple edges between the same pair of nodes, nor does it have any self-loops. It is guaranteed that the sum of n over all test cases does not exceed 5 cdot 10^5 . It is guaranteed that the sum of m over all test cases does not exceed 10^6 . For each test case, the output format is as follows. If you have found a pairing, in the first line output "PAIRING" (without quotes). Otherwise, in the first line output "PATH" (without quotes). The path outputted in the first ca'...

Tutorials

Codeforces Round #663 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
89749986 jzp E Aug. 13, 2020, 12:30 a.m. OK GNU C++11 TESTS 88 280 38400000
90840141 xsltxdy E Aug. 24, 2020, 3:35 p.m. OK GNU C++11 TESTS 88 295 75366400
90807472 xsltxdy E Aug. 24, 2020, 8:16 a.m. OK GNU C++11 TESTS 88 296 79257600
90807057 xsltxdy E Aug. 24, 2020, 8:10 a.m. OK GNU C++11 TESTS 88 311 84787200
90840069 xsltxdy E Aug. 24, 2020, 3:34 p.m. OK GNU C++11 TESTS 88 327 75366400
89543595 YHHxBULIATANIA E Aug. 11, 2020, 2:39 a.m. OK GNU C++11 TESTS 88 342 99532800
90810276 WhiteCmile E Aug. 24, 2020, 8:55 a.m. OK GNU C++11 TESTS 88 358 106905600
89755772 18Michael E Aug. 13, 2020, 3:18 a.m. OK GNU C++11 TESTS 88 390 62464000
89618335 vandoor E Aug. 12, 2020, 3:21 a.m. OK GNU C++11 TESTS 88 436 48128000
89618272 vandoor E Aug. 12, 2020, 3:19 a.m. OK GNU C++11 TESTS 88 451 48640000
89540762 YLWang E Aug. 11, 2020, 12:50 a.m. OK GNU C++14 TESTS 88 608 51302400
89510418 ntwbvdbl_oe E Aug. 10, 2020, 12:50 p.m. OK GNU C++14 TESTS 88 654 56320000
91605230 selia E Sept. 2, 2020, 1:38 a.m. OK GNU C++14 TESTS 88 670 41881600
89652266 nitvjudge3 E Aug. 12, 2020, 12:56 p.m. OK GNU C++14 TESTS 88 701 63180800
90267222 HanTroid E Aug. 17, 2020, 11:41 p.m. OK GNU C++14 TESTS 88 857 45875200
89520287 Orz_c---8 E Aug. 10, 2020, 2:59 p.m. OK GNU C++14 TESTS 88 857 47411200
89851671 asfd221 E Aug. 14, 2020, 7:47 a.m. OK GNU C++14 TESTS 88 857 56627200
89630455 Weeeee E Aug. 12, 2020, 7:27 a.m. OK GNU C++14 TESTS 88 857 68812800
89512934 Nick_Evans E Aug. 10, 2020, 1:23 p.m. OK GNU C++14 TESTS 88 858 57241600
89544350 Soren_15 E Aug. 11, 2020, 3:03 a.m. OK GNU C++14 TESTS 88 872 47206400
89500701 CQXYM E Aug. 10, 2020, 10:25 a.m. OK GNU C++17 TESTS 88 561 35942400
89651856 eyesofgod123 E Aug. 12, 2020, 12:50 p.m. OK GNU C++17 TESTS 88 576 63180800
89552501 Akiha E Aug. 11, 2020, 6:09 a.m. OK GNU C++17 TESTS 88 623 47206400
89486611 SW_Wind E Aug. 10, 2020, 6:47 a.m. OK GNU C++17 TESTS 88 670 56832000
90515417 t3018210153 E Aug. 21, 2020, 8:34 a.m. OK GNU C++17 TESTS 88 686 43212800
89655563 lyuankai E Aug. 12, 2020, 1:43 p.m. OK GNU C++17 TESTS 88 686 47513600
90510457 xiejun E Aug. 21, 2020, 7:28 a.m. OK GNU C++17 TESTS 88 701 48844800
89540072 Minotaur E Aug. 11, 2020, 12:07 a.m. OK GNU C++17 TESTS 88 826 49971200
91003132 GoogleBot E Aug. 25, 2020, 9:03 p.m. OK GNU C++17 TESTS 88 826 56012800
89485204 LightYear E Aug. 10, 2020, 6:25 a.m. OK GNU C++17 TESTS 88 826 59289600
90133747 ivan100sic E Aug. 16, 2020, 3:41 p.m. OK GNU C++17 (64) TESTS 88 702 82636800
89485756 achvanov E Aug. 10, 2020, 6:34 a.m. OK GNU C++17 (64) TESTS 88 764 68403200
91113220 nathanlee726 E Aug. 27, 2020, 7:42 a.m. OK GNU C++17 (64) TESTS 88 795 70246400
89630275 fsshakkhor E Aug. 12, 2020, 7:24 a.m. OK GNU C++17 (64) TESTS 88 826 74752000
89541171 emma E Aug. 11, 2020, 1:09 a.m. OK GNU C++17 (64) TESTS 88 841 65433600
89498119 uruuru8888 E Aug. 10, 2020, 9:42 a.m. OK GNU C++17 (64) TESTS 88 842 65433600
90420675 shashanka136 E Aug. 19, 2020, 9:09 p.m. OK GNU C++17 (64) TESTS 88 842 67276800
89502595 Tikhon228 E Aug. 10, 2020, 10:54 a.m. OK GNU C++17 (64) TESTS 88 842 68300800
89518011 Hyado E Aug. 10, 2020, 2:29 p.m. OK GNU C++17 (64) TESTS 88 842 74547200
89485663 Artyom123 E Aug. 10, 2020, 6:32 a.m. OK GNU C++17 (64) TESTS 88 857 71884800
89543792 tusharjape007 E Aug. 11, 2020, 2:45 a.m. OK Java 11 TESTS 88 2402 268390400
89525445 xwchen E Aug. 10, 2020, 4:09 p.m. OK Java 8 TESTS 88 2089 189030400
89841856 MagentaCobra E Aug. 14, 2020, 4:59 a.m. OK Java 8 TESTS 88 2183 268390400
90411851 AnandOza E Aug. 19, 2020, 5:50 p.m. OK Java 8 TESTS 88 2464 250265600
90412239 AnandOza E Aug. 19, 2020, 5:57 p.m. OK Java 8 TESTS 88 2495 246784000
90411180 AnandOza E Aug. 19, 2020, 5:40 p.m. OK Java 8 TESTS 88 2573 250265600
90411245 AnandOza E Aug. 19, 2020, 5:41 p.m. OK Java 8 TESTS 88 2589 250265600
90411036 AnandOza E Aug. 19, 2020, 5:38 p.m. OK Java 8 TESTS 88 2589 250265600
90412181 AnandOza E Aug. 19, 2020, 5:56 p.m. OK Java 8 TESTS 88 2604 246681600
91238954 mwen E Aug. 28, 2020, 7:06 p.m. OK Java 8 TESTS 88 2683 171520000
90849726 2020akadaver E Aug. 24, 2020, 5:43 p.m. OK Java 8 TESTS 88 2745 254976000
89795813 azukun E Aug. 13, 2020, 1 p.m. OK Mono C# TESTS 88 2745 203264000
89616658 JeriLee E Aug. 12, 2020, 2:34 a.m. OK MS C++ 2017 TESTS 88 1060 54988800
89537969 nns2009 E Aug. 10, 2020, 10:17 p.m. OK MS C++ 2017 TESTS 88 2917 85196800
90907161 n1tz53 E Aug. 25, 2020, 2:23 p.m. OK Rust TESTS 88 1076 49356800
89609913 Russell_Emerine E Aug. 11, 2020, 9:35 p.m. OK Rust TESTS 88 1138 56524800
89584978 terraformer E Aug. 11, 2020, 2:21 p.m. OK Rust TESTS 88 2839 59187200
89585082 terraformer E Aug. 11, 2020, 2:22 p.m. OK Rust TESTS 88 2963 59187200
89584705 terraformer E Aug. 11, 2020, 2:18 p.m. OK Rust TESTS 88 2979 59187200

remove filters

Back to search problems