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 |
---|---|---|---|---|---|---|
1738 | Codeforces Global Round 22 | FINISHED | False | 9000 | 72631463 | Sept. 30, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1259 ) | F | Connectivity Addicts | PROGRAMMING | constructive algorithms ds graphs greedy interactive shortest paths sortings trees |
B'This is an interactive problem. Given a simple undirected graph with n vertices numbered from 1 to n , your task is to color all the vertices such that for every color c , the following conditions hold: Initially, you are only given the number n of vertices and the degree of each vertex. In each query, you can choose a vertex u . As a response, you will be given the k -th edge incident to u , if this is the k -th query on vertex u . You are allowed to make at most n queries. An undirected graph is simple if it does not contain multiple edges or self-loops. The degree of a vertex is the number of edges incident to it. A set S of vertices is connected if for every two different vertices u, v in S , there is a path, which only passes through vertices in S , that connects u and v . That is, there is a sequence of edges (u_1, v_1), (u_2, v_2), ... , (u_k, v_k) with k geq 1 such that Each test contains multiple test cases. The first line contains an integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. The following lines contain the description and the interactive section of each test case. For each test case, you begin the interaction by reading an integer n ( 1 <= n <= 1000 ) in the first line, indicating the number of vertices in the graph. The second line contains n integers d_1, d_2, ... , d_n ( 0 <= q d_i <= q n - 1 ), where d_i is the degree of vertex i . To make a query on vertex u ( 1 <= q u <= q n ), you should output To give the answer, you should output It is guaranteed that the graph is a simple undirected graph. It is guaranteed that the sum of n over all test cases does not exceed 1000 . In case your query format is invalid, or you have made more than n "?" queries, you will receive Wrong Answer verdict. After printing a query, do not forget to output end'... |
Editorial of Codeforces Global Round <strong>22</strong> |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
174147846 | rainboy | F | Sept. 30, 2022, 4:44 p.m. | OK | GNU C11 | TESTS | 93 | 46 | 0 | ||
174149984 | l_l | F | Sept. 30, 2022, 4:50 p.m. | OK | GNU C++14 | TESTS | 93 | 31 | 0 | ||
174151957 | themoon | F | Sept. 30, 2022, 4:56 p.m. | OK | GNU C++14 | TESTS | 93 | 31 | 0 | ||
174196754 | waaitg | F | Oct. 1, 2022, 4:07 a.m. | OK | GNU C++14 | TESTS | 94 | 31 | 0 | ||
174193010 | applese | F | Oct. 1, 2022, 3:06 a.m. | OK | GNU C++14 | TESTS | 94 | 31 | 0 | ||
174163316 | DeadlyCritic | F | Sept. 30, 2022, 6:23 p.m. | OK | GNU C++14 | TESTS | 93 | 31 | 204800 | ||
174151982 | F99_ll_H21 | F | Sept. 30, 2022, 4:56 p.m. | OK | GNU C++14 | TESTS | 93 | 31 | 204800 | ||
174186839 | myee | F | Oct. 1, 2022, 1:13 a.m. | OK | GNU C++14 | TESTS | 93 | 31 | 204800 | ||
174186380 | Alex_Wei | F | Oct. 1, 2022, 1:03 a.m. | OK | GNU C++14 | TESTS | 93 | 31 | 204800 | ||
174168160 | lukamosiashvili | F | Sept. 30, 2022, 7:01 p.m. | OK | GNU C++14 | TESTS | 93 | 31 | 204800 | ||
174154574 | le0n | F | Sept. 30, 2022, 5:02 p.m. | OK | GNU C++14 | TESTS | 93 | 31 | 1126400 | ||
174163017 | jonathanirvings | F | Sept. 30, 2022, 6:21 p.m. | OK | GNU C++17 | TESTS | 93 | 31 | 0 | ||
174149219 | Amel | F | Sept. 30, 2022, 4:48 p.m. | OK | GNU C++17 | TESTS | 93 | 31 | 0 | ||
174192052 | psc233 | F | Oct. 1, 2022, 2:50 a.m. | OK | GNU C++17 | TESTS | 94 | 31 | 0 | ||
174203110 | snuphy | F | Oct. 1, 2022, 5:30 a.m. | OK | GNU C++17 | TESTS | 94 | 31 | 204800 | ||
174192174 | xuziyuan | F | Oct. 1, 2022, 2:52 a.m. | OK | GNU C++17 | TESTS | 94 | 31 | 204800 | ||
174168562 | aa2985759 | F | Sept. 30, 2022, 7:05 p.m. | OK | GNU C++17 | TESTS | 93 | 31 | 204800 | ||
174166549 | sk_aswd | F | Sept. 30, 2022, 6:47 p.m. | OK | GNU C++17 | TESTS | 93 | 31 | 204800 | ||
174164362 | Stelutzu | F | Sept. 30, 2022, 6:30 p.m. | OK | GNU C++17 | TESTS | 93 | 31 | 204800 | ||
174160779 | PixelCat | F | Sept. 30, 2022, 6:10 p.m. | OK | GNU C++17 | TESTS | 93 | 31 | 204800 | ||
174155982 | koderkushy | F | Sept. 30, 2022, 5:04 p.m. | OK | GNU C++17 | TESTS | 93 | 31 | 204800 | ||
174161313 | CIXTEEN | F | Sept. 30, 2022, 6:12 p.m. | OK | GNU C++17 (64) | TESTS | 93 | 30 | 0 | ||
174163514 | emthrm | F | Sept. 30, 2022, 6:24 p.m. | OK | GNU C++17 (64) | TESTS | 93 | 31 | 0 | ||
174198812 | gs15120 | F | Oct. 1, 2022, 4:35 a.m. | OK | GNU C++17 (64) | TESTS | 94 | 31 | 0 | ||
174197807 | BeyondHeaven | F | Oct. 1, 2022, 4:22 a.m. | OK | GNU C++17 (64) | TESTS | 94 | 31 | 0 | ||
174191722 | CharlesWuQiushi | F | Oct. 1, 2022, 2:44 a.m. | OK | GNU C++17 (64) | TESTS | 94 | 31 | 0 | ||
174189024 | mattagar6 | F | Oct. 1, 2022, 1:56 a.m. | OK | GNU C++17 (64) | TESTS | 94 | 31 | 0 | ||
174187207 | mattagar6 | F | Oct. 1, 2022, 1:21 a.m. | OK | GNU C++17 (64) | TESTS | 94 | 31 | 0 | ||
174170348 | Geothermal | F | Sept. 30, 2022, 7:25 p.m. | OK | GNU C++17 (64) | TESTS | 93 | 31 | 0 | ||
174163363 | lightseba | F | Sept. 30, 2022, 6:23 p.m. | OK | GNU C++17 (64) | TESTS | 93 | 31 | 0 | ||
174163103 | Perpetually_Purple | F | Sept. 30, 2022, 6:22 p.m. | OK | GNU C++17 (64) | TESTS | 93 | 31 | 0 | ||
174197933 | FLself | F | Oct. 1, 2022, 4:24 a.m. | OK | GNU C++20 (64) | TESTS | 94 | 31 | 0 | ||
174197324 | passed | F | Oct. 1, 2022, 4:15 a.m. | OK | GNU C++20 (64) | TESTS | 94 | 31 | 0 | ||
174196459 | Tony2_CF | F | Oct. 1, 2022, 4:02 a.m. | OK | GNU C++20 (64) | TESTS | 94 | 31 | 0 | ||
174196100 | danxmz2006 | F | Oct. 1, 2022, 3:56 a.m. | OK | GNU C++20 (64) | TESTS | 94 | 31 | 0 | ||
174195252 | gzw2005 | F | Oct. 1, 2022, 3:42 a.m. | OK | GNU C++20 (64) | TESTS | 94 | 31 | 0 | ||
174195213 | bachbeo2007 | F | Oct. 1, 2022, 3:42 a.m. | OK | GNU C++20 (64) | TESTS | 94 | 31 | 0 | ||
174193435 | hxhhxh | F | Oct. 1, 2022, 3:13 a.m. | OK | GNU C++20 (64) | TESTS | 94 | 31 | 0 | ||
174193101 | BARBARIANNNNN | F | Oct. 1, 2022, 3:07 a.m. | OK | GNU C++20 (64) | TESTS | 94 | 31 | 0 | ||
174190632 | flying_doraemon | F | Oct. 1, 2022, 2:25 a.m. | OK | GNU C++20 (64) | TESTS | 94 | 31 | 0 | ||
174201518 | Chunlin_Liu | F | Oct. 1, 2022, 5:11 a.m. | OK | GNU C++20 (64) | TESTS | 94 | 31 | 0 | ||
174162970 | arvindf232 | F | Sept. 30, 2022, 6:21 p.m. | OK | Kotlin 1.6 | TESTS | 93 | 280 | 409600 | ||
174174553 | Eldies | F | Sept. 30, 2022, 8:21 p.m. | OK | MS C++ 2017 | TESTS | 93 | 46 | 0 | ||
174198111 | hxu10 | F | Oct. 1, 2022, 4:27 a.m. | OK | PyPy 3 | TESTS | 94 | 233 | 6144000 | ||
174151596 | pglutz | F | Sept. 30, 2022, 4:55 p.m. | OK | PyPy 3-64 | TESTS | 93 | 202 | 2048000 |
Back to search problems