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 |
---|---|---|---|---|---|---|
350 | Codeforces Round 203 (Div. 2) | FINISHED | False | 7200 | 356797787 | Oct. 1, 2013, 3:30 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 781 ) | E | Wrong Floyd | PROGRAMMING | brute force constructive algorithms dfs and similar graphs | 2200 |
B"Valera conducts experiments with algorithms that search for shortest paths. He has recently studied the Floyd's algorithm, so it's time to work with it. Valera's already written the code that counts the shortest distance between any pair of vertexes in a non-directed connected graph from n vertexes and m edges, containing no loops and multiple edges. Besides, Valera's decided to mark part of the vertexes. He's marked exactly k vertexes a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89ak. Valera's code is given below. Valera has seen that his code is wrong. Help the boy. Given the set of marked vertexes a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89ak, find such non-directed connected graph, consisting of n vertexes and m edges, for which Valera's code counts the wrong shortest distance for at least one pair of vertexes (i, xe2 x80 x89j). Valera is really keen to get a graph without any loops and multiple edges. If no such graph exists, print -1. The first line of the input contains three integers n, xe2 x80 x89m, xe2 x80 x89k (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89300, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n , ) -- the number of vertexes, the number of edges and the number of marked vertexes. The second line of the input contains k space-separated integers a1, xe2 x80 x89a2, xe2 x80 x89... ak (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- the numbers of the marked vertexes. It is guaranteed that all numbers ai are distinct. If the graph doesn't exist, print -1 on a single line. Otherwise, print m lines, each containing two integers u, xe2 x80 x89v -- the description of the edges of the graph Valera's been looking for."... |
Editorial Codeforces Round #203 (Div. 2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
4628208 | Um_nik | E | Oct. 1, 2013, 4:48 p.m. | OK | FPC | TESTS | 62 | 30 | 409600 | 2200 | |
4657599 | I_love_PMK | E | Oct. 4, 2013, 2:47 p.m. | OK | FPC | TESTS | 62 | 30 | 409600 | 2200 | |
4628474 | SanSiroWaltz | E | Oct. 1, 2013, 4:52 p.m. | OK | FPC | TESTS | 62 | 30 | 819200 | 2200 | |
4833041 | Nik_Storm_2010 | E | Oct. 20, 2013, 11:17 a.m. | OK | FPC | TESTS | 62 | 30 | 1024000 | 2200 | |
4630897 | Saimon_Saret | E | Oct. 1, 2013, 5:21 p.m. | OK | FPC | TESTS | 62 | 30 | 1024000 | 2200 | |
4623372 | Alex_2oo8 | E | Oct. 1, 2013, 3:49 p.m. | OK | FPC | TESTS | 62 | 62 | 0 | 2200 | |
4648543 | DMH | E | Oct. 3, 2013, 11:04 a.m. | OK | FPC | TESTS | 62 | 62 | 102400 | 2200 | |
4632026 | xxTastyHypeBeast666xx | E | Oct. 1, 2013, 5:55 p.m. | OK | GNU C | TESTS | 62 | 30 | 409600 | 2200 | |
4909227 | vjudge3 | E | Oct. 27, 2013, 2:45 a.m. | OK | GNU C++ | TESTS | 62 | 15 | 0 | 2200 | |
30163901 | vjudge2 | E | Sept. 6, 2017, 6:35 p.m. | OK | GNU C++ | TESTS | 62 | 30 | 0 | 2200 | |
30163861 | phoenix71 | E | Sept. 6, 2017, 6:33 p.m. | OK | GNU C++ | TESTS | 62 | 30 | 0 | 2200 | |
14040539 | 130705009 | E | Nov. 3, 2015, 11:13 a.m. | OK | GNU C++ | TESTS | 62 | 30 | 0 | 2200 | |
7335791 | Luqman | E | Aug. 3, 2014, 7:43 a.m. | OK | GNU C++ | TESTS | 62 | 30 | 0 | 2200 | |
7335779 | Luqman | E | Aug. 3, 2014, 7:42 a.m. | OK | GNU C++ | TESTS | 62 | 30 | 0 | 2200 | |
6369098 | DanAlex | E | April 15, 2014, 4:57 p.m. | OK | GNU C++ | TESTS | 62 | 30 | 0 | 2200 | |
4856059 | ccarter | E | Oct. 23, 2013, 7:56 p.m. | OK | GNU C++ | TESTS | 62 | 30 | 0 | 2200 | |
4854413 | 200lbs | E | Oct. 23, 2013, 3:57 p.m. | OK | GNU C++ | TESTS | 62 | 30 | 0 | 2200 | |
4836622 | LoveZx | E | Oct. 21, 2013, 8:32 a.m. | OK | GNU C++ | TESTS | 62 | 30 | 0 | 2200 | |
10127913 | vjudge3 | E | March 3, 2015, 3:51 a.m. | OK | GNU C++0x | TESTS | 62 | 30 | 0 | 2200 | |
4645932 | laquendi | E | Oct. 3, 2013, 1:53 a.m. | OK | GNU C++0x | TESTS | 62 | 30 | 0 | 2200 | |
4638087 | cgangee | E | Oct. 2, 2013, 8:38 a.m. | OK | GNU C++0x | TESTS | 62 | 30 | 0 | 2200 | |
4637456 | Xellos | E | Oct. 2, 2013, 8:12 a.m. | OK | GNU C++0x | TESTS | 62 | 30 | 0 | 2200 | |
4638542 | Bobgy | E | Oct. 2, 2013, 8:45 a.m. | OK | GNU C++0x | TESTS | 62 | 30 | 102400 | 2200 | |
4986690 | Archon.JK | E | Nov. 4, 2013, 2:18 p.m. | OK | GNU C++0x | TESTS | 62 | 30 | 409600 | 2200 | |
4627145 | liympanda | E | Oct. 1, 2013, 4:36 p.m. | OK | GNU C++0x | TESTS | 62 | 30 | 614400 | 2200 | |
4642921 | itytwt | E | Oct. 2, 2013, 3:55 p.m. | OK | GNU C++0x | TESTS | 62 | 30 | 1126400 | 2200 | |
7543353 | jianmodgqb | E | Aug. 21, 2014, 12:29 p.m. | OK | GNU C++0x | TESTS | 62 | 30 | 1843200 | 2200 | |
10127911 | zentorwie | E | March 3, 2015, 3:50 a.m. | OK | GNU C++0x | TESTS | 62 | 60 | 0 | 2200 | |
59953846 | rainboy | E | Sept. 3, 2019, 3:25 p.m. | OK | GNU C11 | TESTS | 62 | 156 | 0 | 2200 | |
19447938 | KhalidRamadan | E | July 27, 2016, 7:20 p.m. | OK | GNU C++11 | TESTS | 62 | 30 | 0 | 2200 | |
21200309 | vjudge3 | E | Oct. 5, 2016, 3:43 a.m. | OK | GNU C++11 | TESTS | 62 | 30 | 102400 | 2200 | |
13955172 | mengt2012 | E | Oct. 30, 2015, 3:16 p.m. | OK | GNU C++11 | TESTS | 62 | 30 | 102400 | 2200 | |
27463162 | xrdog | E | May 31, 2017, 9:29 a.m. | OK | GNU C++11 | TESTS | 62 | 30 | 102400 | 2200 | |
21968699 | dp_1 | E | Nov. 1, 2016, 1:29 p.m. | OK | GNU C++11 | TESTS | 62 | 30 | 307200 | 2200 | |
21968721 | dp_1 | E | Nov. 1, 2016, 1:30 p.m. | OK | GNU C++11 | TESTS | 62 | 30 | 307200 | 2200 | |
21842615 | QAQQQ | E | Oct. 28, 2016, 9:10 a.m. | OK | GNU C++11 | TESTS | 62 | 30 | 1024000 | 2200 | |
11020853 | Darsein | E | May 7, 2015, 12:51 p.m. | OK | GNU C++11 | TESTS | 62 | 30 | 1024000 | 2200 | |
21869657 | vjudge4 | E | Oct. 29, 2016, 10:58 a.m. | OK | GNU C++11 | TESTS | 62 | 30 | 1024000 | 2200 | |
30002846 | McGinn | E | Sept. 2, 2017, 6:03 a.m. | OK | GNU C++11 | TESTS | 62 | 30 | 1126400 | 2200 | |
21845838 | vjudge4 | E | Oct. 28, 2016, noon | OK | GNU C++14 | TESTS | 62 | 30 | 0 | 2200 | |
30198654 | Fullmetal_Algorithmist | E | Sept. 8, 2017, 9:05 a.m. | OK | GNU C++14 | TESTS | 62 | 30 | 102400 | 2200 | |
32151573 | SUDAL | E | Nov. 9, 2017, 5:50 a.m. | OK | GNU C++14 | TESTS | 62 | 30 | 409600 | 2200 | |
21842602 | vjudge4 | E | Oct. 28, 2016, 9:09 a.m. | OK | GNU C++14 | TESTS | 62 | 30 | 1126400 | 2200 | |
30164080 | vjudge4 | E | Sept. 6, 2017, 6:43 p.m. | OK | GNU C++14 | TESTS | 62 | 30 | 1638400 | 2200 | |
23562973 | Ali.Pi | E | Jan. 5, 2017, 9:03 p.m. | OK | GNU C++14 | TESTS | 62 | 30 | 1945600 | 2200 | |
33814990 | imAnik | E | Dec. 30, 2017, 4:52 p.m. | OK | GNU C++14 | TESTS | 62 | 30 | 1945600 | 2200 | |
31794558 | blue__legend | E | Oct. 27, 2017, 12:18 p.m. | OK | GNU C++14 | TESTS | 62 | 30 | 2867200 | 2200 | |
31794751 | blue__legend | E | Oct. 27, 2017, 12:22 p.m. | OK | GNU C++14 | TESTS | 62 | 30 | 2867200 | 2200 | |
33749284 | mjhun | E | Dec. 29, 2017, 3:20 a.m. | OK | GNU C++14 | TESTS | 62 | 30 | 2969600 | 2200 | |
62685684 | Phortox | E | Oct. 16, 2019, 2 p.m. | OK | GNU C++17 | TESTS | 62 | 31 | 0 | 2200 | |
42552823 | vjudge5 | E | Sept. 6, 2018, 12:55 p.m. | OK | GNU C++17 | TESTS | 62 | 31 | 0 | 2200 | |
51263646 | ivan100sic | E | March 13, 2019, 2:28 p.m. | OK | GNU C++17 | TESTS | 62 | 31 | 102400 | 2200 | |
42543421 | GETEKAI | E | Sept. 6, 2018, 7:35 a.m. | OK | GNU C++17 | TESTS | 62 | 31 | 307200 | 2200 | |
69986703 | omnocree | E | Feb. 1, 2020, 6:02 p.m. | OK | GNU C++17 | TESTS | 62 | 31 | 409600 | 2200 | |
69864129 | AndreevSashok | E | Jan. 30, 2020, 7:39 p.m. | OK | GNU C++17 | TESTS | 62 | 31 | 716800 | 2200 | |
69850331 | IPRIT | E | Jan. 30, 2020, 3:27 p.m. | OK | GNU C++17 | TESTS | 62 | 31 | 716800 | 2200 | |
48557128 | 201530800126 | E | Jan. 19, 2019, 5:52 a.m. | OK | GNU C++17 | TESTS | 62 | 31 | 1126400 | 2200 | |
42757009 | majk | E | Sept. 11, 2018, 7:57 a.m. | OK | GNU C++17 | TESTS | 62 | 31 | 1126400 | 2200 | |
51767060 | Martin53 | E | March 23, 2019, 4:22 p.m. | OK | GNU C++17 | TESTS | 62 | 31 | 1126400 | 2200 | |
4645049 | autotaker | E | Oct. 2, 2013, 8:38 p.m. | OK | Haskell | TESTS | 62 | 92 | 3174400 | 2200 | |
4644980 | autotaker | E | Oct. 2, 2013, 8:20 p.m. | OK | Haskell | TESTS | 62 | 124 | 3174400 | 2200 | |
4644922 | autotaker | E | Oct. 2, 2013, 8:07 p.m. | OK | Haskell | TESTS | 62 | 124 | 3174400 | 2200 | |
11280076 | Athee | E | May 26, 2015, 2:23 p.m. | OK | Haskell | TESTS | 62 | 154 | 3276800 | 2200 | |
4644959 | autotaker | E | Oct. 2, 2013, 8:15 p.m. | OK | Haskell | TESTS | 62 | 156 | 3174400 | 2200 | |
4816642 | hiukim | E | Oct. 17, 2013, 9:43 p.m. | OK | Java 6 | TESTS | 62 | 156 | 204800 | 2200 | |
4651821 | savinov | E | Oct. 3, 2013, 7:10 p.m. | OK | Java 6 | TESTS | 62 | 156 | 204800 | 2200 | |
4633271 | Vbifial | E | Oct. 1, 2013, 6:46 p.m. | OK | Java 6 | TESTS | 62 | 156 | 204800 | 2200 | |
5132542 | wackloner | E | Nov. 17, 2013, 5:42 p.m. | OK | Java 6 | TESTS | 62 | 312 | 1638400 | 2200 | |
4873698 | mkirsche | E | Oct. 24, 2013, 11:59 p.m. | OK | Java 6 | TESTS | 62 | 748 | 2048000 | 2200 | |
5267639 | miguelmaurizio | E | Nov. 27, 2013, 3:36 a.m. | OK | Java 7 | TESTS | 62 | 124 | 102400 | 2200 | |
4625079 | Egor | E | Oct. 1, 2013, 4:11 p.m. | OK | Java 7 | TESTS | 62 | 156 | 0 | 2200 | |
4643866 | Alexey_Nikitin | E | Oct. 2, 2013, 5:09 p.m. | OK | Java 7 | TESTS | 62 | 156 | 102400 | 2200 | |
11404124 | anandpatel9998 | E | June 3, 2015, 4:16 p.m. | OK | Java 7 | TESTS | 62 | 156 | 307200 | 2200 | |
4646861 | niquefa_diego | E | Oct. 3, 2013, 6:20 a.m. | OK | Java 7 | TESTS | 62 | 186 | 102400 | 2200 | |
4631053 | uwi | E | Oct. 1, 2013, 5:23 p.m. | OK | Java 7 | TESTS | 62 | 186 | 102400 | 2200 | |
4633416 | Azat_Yusupov | E | Oct. 1, 2013, 6:59 p.m. | OK | Java 7 | TESTS | 62 | 186 | 307200 | 2200 | |
4647420 | cvm | E | Oct. 3, 2013, 7:53 a.m. | OK | Java 7 | TESTS | 62 | 186 | 409600 | 2200 | |
16226709 | DukeOfYork | E | Feb. 20, 2016, 10:05 a.m. | OK | Java 7 | TESTS | 62 | 218 | 0 | 2200 | |
4633592 | shimomire | E | Oct. 1, 2013, 7:16 p.m. | OK | Java 7 | TESTS | 62 | 218 | 307200 | 2200 | |
59953845 | Dukkha | E | Sept. 3, 2019, 3:25 p.m. | OK | Java 8 | TESTS | 62 | 140 | 0 | 2200 | |
41826955 | amnesiac_dusk | E | Aug. 19, 2018, 12:32 p.m. | OK | Java 8 | TESTS | 62 | 140 | 0 | 2200 | |
53338094 | Ahmad | E | April 26, 2019, 3:12 p.m. | OK | Java 8 | TESTS | 62 | 155 | 0 | 2200 | |
4630949 | QuantumKnight | E | Oct. 1, 2013, 5:22 p.m. | OK | MS C# | TESTS | 62 | 124 | 3072000 | 2200 | |
4631972 | Schullz | E | Oct. 1, 2013, 5:53 p.m. | OK | MS C++ | TESTS | 62 | 30 | 102400 | 2200 | |
4647660 | ricardol | E | Oct. 3, 2013, 8:34 a.m. | OK | MS C++ | TESTS | 62 | 30 | 512000 | 2200 | |
4627352 | MrDindows | E | Oct. 1, 2013, 4:38 p.m. | OK | MS C++ | TESTS | 62 | 30 | 614400 | 2200 | |
4635741 | Elun | E | Oct. 2, 2013, 3 a.m. | OK | MS C++ | TESTS | 62 | 30 | 1024000 | 2200 | |
4628185 | witua | E | Oct. 1, 2013, 4:48 p.m. | OK | MS C++ | TESTS | 62 | 30 | 1024000 | 2200 | |
4629362 | abistrigova | E | Oct. 1, 2013, 5:02 p.m. | OK | MS C++ | TESTS | 62 | 30 | 2969600 | 2200 | |
10774460 | xiaoyu20123 | E | April 18, 2015, 11:41 p.m. | OK | MS C++ | TESTS | 62 | 30 | 3174400 | 2200 | |
58059650 | vjudge4 | E | July 31, 2019, 6:55 a.m. | OK | MS C++ | TESTS | 62 | 31 | 409600 | 2200 | |
4678889 | tomas.svab | E | Oct. 5, 2013, 8:30 a.m. | OK | MS C++ | TESTS | 62 | 62 | 0 | 2200 | |
4678790 | tomas.svab | E | Oct. 5, 2013, 8:18 a.m. | OK | MS C++ | TESTS | 62 | 62 | 0 | 2200 | |
69850099 | IPRIT | E | Jan. 30, 2020, 3:23 p.m. | OK | MS C++ 2017 | TESTS | 62 | 62 | 307200 | 2200 | |
69850087 | VorivaN | E | Jan. 30, 2020, 3:23 p.m. | OK | MS C++ 2017 | TESTS | 62 | 62 | 307200 | 2200 | |
69891209 | exxxcommunicado | E | Jan. 31, 2020, 10:04 a.m. | OK | MS C++ 2017 | TESTS | 62 | 62 | 1433600 | 2200 | |
69840185 | IPRIT | E | Jan. 30, 2020, 12:57 p.m. | OK | MS C++ 2017 | TESTS | 62 | 77 | 512000 | 2200 | |
69894095 | exxxcommunicado | E | Jan. 31, 2020, 11:09 a.m. | OK | MS C++ 2017 | TESTS | 62 | 77 | 1433600 | 2200 | |
69894685 | IPRIT | E | Jan. 31, 2020, 11:21 a.m. | OK | MS C++ 2017 | TESTS | 62 | 202 | 1433600 | 2200 | |
69894591 | exxxcommunicado | E | Jan. 31, 2020, 11:19 a.m. | OK | MS C++ 2017 | TESTS | 62 | 234 | 1740800 | 2200 | |
63777715 | pajenegod | E | Oct. 30, 2019, 10:06 a.m. | OK | PyPy 2 | TESTS | 62 | 155 | 5939200 | 2200 | |
4817070 | lozephon | E | Oct. 18, 2013, 1:38 a.m. | OK | Python 2 | TESTS | 62 | 186 | 3174400 | 2200 | |
4637093 | isurugieri | E | Oct. 2, 2013, 7:17 a.m. | OK | Python 2 | TESTS | 62 | 218 | 3481600 | 2200 | |
4632831 | kevinsogo | E | Oct. 1, 2013, 6:22 p.m. | OK | Python 2 | TESTS | 62 | 312 | 3379200 | 2200 | |
4646806 | __ivan__ | E | Oct. 3, 2013, 6:10 a.m. | OK | Python 3 | TESTS | 62 | 560 | 3584000 | 2200 | |
11900138 | ItsLastDay | E | July 2, 2015, 4:42 p.m. | OK | Python 3 | TESTS | 62 | 934 | 2662400 | 2200 |
Back to search problems