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 |
---|---|---|---|---|---|---|
1037 | Manthan, Codefest 18 (rated, Div. 1 + Div. 2) | FINISHED | False | 7200 | 195924299 | Sept. 2, 2018, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2914 ) | E | Trips | PROGRAMMING | graphs | 2100 |
B"There are n persons who initially don't know each other. On each morning, two of them, who were not friends before, become friends. We want to plan a trip for every evening of m days. On each trip, you have to select a group of people that will go on the trip. For every person, one of the following should hold: Note that the friendship is not transitive. That is, if a and b are friends and b and c are friends, it does not necessarily imply that a and c are friends. For each day, find the maximum number of people that can go on the trip on that day. The first line contains three integers n , m , and k ( 2 <= q n <= q 2 cdot 10^5, 1 <= q m <= q 2 cdot 10^5 , 1 <= k < n ) -- the number of people, the number of days and the number of friends each person on the trip should have in the group. The i -th ( 1 <= q i <= q m ) of the next m lines contains two integers x and y ( 1 <= q x, y <= q n , x ne y ), meaning that persons x and y become friends on the morning of day i . It is guaranteed that x and y were not friends before. Print exactly m lines, where the i -th of them ( 1 <= q i <= q m ) contains the maximum number of people that can go on the trip on the evening of the day i . In the first example, In the second example, In the third example, "... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
42443423 | drlong10th | E | Sept. 3, 2018, 11:50 p.m. | OK | GNU C++ | TESTS | 56 | 93 | 10342400 | 2100 | |
42411843 | samjia2000 | E | Sept. 3, 2018, 2:03 a.m. | OK | GNU C++ | TESTS | 56 | 93 | 14028800 | 2100 | |
42453106 | luogu_bot4 | E | Sept. 4, 2018, 9:29 a.m. | OK | GNU C++ | TESTS | 56 | 124 | 21606400 | 2100 | |
42453094 | luojinyao | E | Sept. 4, 2018, 9:29 a.m. | OK | GNU C++ | TESTS | 56 | 124 | 21606400 | 2100 | |
42428455 | temp06 | E | Sept. 3, 2018, 1:45 p.m. | OK | GNU C++ | TESTS | 56 | 139 | 7782400 | 2100 | |
42458355 | vjudge1 | E | Sept. 4, 2018, 12:35 p.m. | OK | GNU C++ | TESTS | 56 | 140 | 10240000 | 2100 | |
42458300 | vjudge2 | E | Sept. 4, 2018, 12:33 p.m. | OK | GNU C++ | TESTS | 56 | 155 | 11161600 | 2100 | |
42417659 | Pigbrain | E | Sept. 3, 2018, 8:13 a.m. | OK | GNU C++ | TESTS | 56 | 156 | 8396800 | 2100 | |
42464300 | Toosample | E | Sept. 4, 2018, 3:05 p.m. | OK | GNU C++ | TESTS | 56 | 156 | 11161600 | 2100 | |
42464220 | Toosample | E | Sept. 4, 2018, 3:03 p.m. | OK | GNU C++ | TESTS | 56 | 171 | 11161600 | 2100 | |
46666155 | luogu_bot4 | E | Dec. 6, 2018, 2:18 a.m. | OK | GNU C++11 | TESTS | 56 | 77 | 10342400 | 2100 | |
46665903 | Clao_015 | E | Dec. 6, 2018, 1:53 a.m. | OK | GNU C++11 | TESTS | 56 | 77 | 10342400 | 2100 | |
44751672 | ReaLNero1 | E | Oct. 23, 2018, 8:17 p.m. | OK | GNU C++11 | TESTS | 56 | 78 | 8089600 | 2100 | |
44734710 | guapisolo | E | Oct. 23, 2018, 12:20 p.m. | OK | GNU C++11 | TESTS | 56 | 78 | 8089600 | 2100 | |
44734634 | guapisolo | E | Oct. 23, 2018, 12:18 p.m. | OK | GNU C++11 | TESTS | 56 | 78 | 8089600 | 2100 | |
58109920 | zsq259 | E | Aug. 1, 2019, 6:38 a.m. | OK | GNU C++11 | TESTS | 56 | 78 | 9728000 | 2100 | |
51440714 | ww3113306 | E | March 18, 2019, 9:45 a.m. | OK | GNU C++11 | TESTS | 56 | 78 | 10035200 | 2100 | |
45309110 | ldy419 | E | Nov. 5, 2018, 1:42 a.m. | OK | GNU C++11 | TESTS | 56 | 78 | 12595200 | 2100 | |
44111732 | Dfkdsmbd | E | Oct. 11, 2018, 12:10 p.m. | OK | GNU C++11 | TESTS | 56 | 93 | 8396800 | 2100 | |
58109945 | vjudge2 | E | Aug. 1, 2019, 6:38 a.m. | OK | GNU C++11 | TESTS | 56 | 93 | 9625600 | 2100 | |
45224378 | luhong | E | Nov. 3, 2018, 1:50 a.m. | OK | GNU C++14 | TESTS | 56 | 124 | 8294400 | 2100 | |
59969954 | Bartholomew zhongzero | E | Sept. 4, 2019, midnight | OK | GNU C++14 | TESTS | 56 | 124 | 8396800 | 2100 | |
44434917 | GordonLee | E | Oct. 17, 2018, 9:28 a.m. | OK | GNU C++14 | TESTS | 56 | 140 | 10444800 | 2100 | |
45900792 | Hugh_Locke | E | Nov. 18, 2018, 4:33 a.m. | OK | GNU C++14 | TESTS | 56 | 140 | 14336000 | 2100 | |
42434724 | wcy1122 | E | Sept. 3, 2018, 4:43 p.m. | OK | GNU C++14 | TESTS | 56 | 156 | 9625600 | 2100 | |
51445185 | mayaohua2003 | E | March 18, 2019, 12:10 p.m. | OK | GNU C++14 | TESTS | 56 | 156 | 15360000 | 2100 | |
45224042 | haj_lemon | E | Nov. 3, 2018, 1:22 a.m. | OK | GNU C++14 | TESTS | 56 | 171 | 8192000 | 2100 | |
42451002 | haj_lemon | E | Sept. 4, 2018, 8:05 a.m. | OK | GNU C++14 | TESTS | 56 | 171 | 9830400 | 2100 | |
42477636 | lu925871076 | E | Sept. 5, 2018, 1:04 a.m. | OK | GNU C++14 | TESTS | 56 | 171 | 10137600 | 2100 | |
42496076 | FlyInTheSky | E | Sept. 5, 2018, 2:29 p.m. | OK | GNU C++14 | TESTS | 56 | 171 | 11366400 | 2100 | |
65703636 | 910306264 | E | Nov. 25, 2019, 11:45 a.m. | OK | GNU C++17 | TESTS | 56 | 62 | 10342400 | 2100 | |
45229264 | Trisolaris | E | Nov. 3, 2018, 5:57 a.m. | OK | GNU C++17 | TESTS | 56 | 78 | 9932800 | 2100 | |
42450002 | lxn | E | Sept. 4, 2018, 7:17 a.m. | OK | GNU C++17 | TESTS | 56 | 124 | 17203200 | 2100 | |
42905754 | q234rty | E | Sept. 16, 2018, 1:10 a.m. | OK | GNU C++17 | TESTS | 56 | 139 | 39833600 | 2100 | |
45191949 | tEMMIE.w. | E | Nov. 2, 2018, 3:19 a.m. | OK | GNU C++17 | TESTS | 56 | 140 | 17305600 | 2100 | |
58052323 | vjudge3 | E | July 31, 2019, 3:10 a.m. | OK | GNU C++17 | TESTS | 56 | 155 | 11366400 | 2100 | |
57715940 | vjudge5 | E | July 25, 2019, 2:41 a.m. | OK | GNU C++17 | TESTS | 56 | 155 | 27238400 | 2100 | |
57715911 | count_von | E | July 25, 2019, 2:41 a.m. | OK | GNU C++17 | TESTS | 56 | 155 | 27238400 | 2100 | |
42905631 | q234rty | E | Sept. 16, 2018, 12:53 a.m. | OK | GNU C++17 | TESTS | 56 | 155 | 27955200 | 2100 | |
42905669 | q234rty | E | Sept. 16, 2018, 12:59 a.m. | OK | GNU C++17 | TESTS | 56 | 155 | 29900800 | 2100 | |
59389094 | aman28rwt | E | Aug. 24, 2019, 7:42 a.m. | OK | Java 8 | TESTS | 56 | 296 | 19148800 | 2100 | |
42413086 | aman28rwt | E | Sept. 3, 2018, 4:24 a.m. | OK | Java 8 | TESTS | 56 | 374 | 18841600 | 2100 | |
67502740 | Ahmad | E | Dec. 24, 2019, 5:41 a.m. | OK | Java 8 | TESTS | 56 | 436 | 39731200 | 2100 | |
42414717 | emo | E | Sept. 3, 2018, 6:22 a.m. | OK | Java 8 | TESTS | 56 | 467 | 38502400 | 2100 | |
44000069 | SrapZark | E | Oct. 8, 2018, 1:19 p.m. | OK | Java 8 | TESTS | 56 | 467 | 40448000 | 2100 | |
42475106 | Asgar | E | Sept. 4, 2018, 9:34 p.m. | OK | Java 8 | TESTS | 56 | 483 | 16588800 | 2100 | |
47375900 | NatInTheHat | E | Dec. 22, 2018, 5:17 p.m. | OK | Java 8 | TESTS | 56 | 498 | 36556800 | 2100 | |
42809040 | SrapZark | E | Sept. 12, 2018, 6:45 p.m. | OK | Java 8 | TESTS | 56 | 498 | 39219200 | 2100 | |
44572653 | SpargelTarzan | E | Oct. 20, 2018, 5:37 a.m. | OK | Java 8 | TESTS | 56 | 498 | 41881600 | 2100 | |
43350643 | happybelly | E | Sept. 24, 2018, 1:53 a.m. | OK | Java 8 | TESTS | 56 | 499 | 38707200 | 2100 | |
42423837 | leign | E | Sept. 3, 2018, 11:42 a.m. | OK | Mono C# | TESTS | 56 | 608 | 34713600 | 2100 | |
42449994 | lxn | E | Sept. 4, 2018, 7:17 a.m. | OK | MS C++ | TESTS | 56 | 124 | 17203200 | 2100 | |
42450210 | lxn | E | Sept. 4, 2018, 7:26 a.m. | OK | MS C++ | TESTS | 56 | 124 | 17305600 | 2100 | |
58123576 | vjudge4 | E | Aug. 1, 2019, 11:46 a.m. | OK | MS C++ | TESTS | 56 | 374 | 26009600 | 2100 | |
58105010 | vjudge1 | E | Aug. 1, 2019, 3:38 a.m. | OK | MS C++ | TESTS | 56 | 389 | 26624000 | 2100 | |
58111443 | vjudge4 | E | Aug. 1, 2019, 7:20 a.m. | OK | MS C++ | TESTS | 56 | 390 | 26624000 | 2100 | |
42463503 | artikot | E | Sept. 4, 2018, 2:43 p.m. | OK | MS C++ | TESTS | 56 | 842 | 63795200 | 2100 | |
42612915 | vjudge1 | E | Sept. 7, 2018, 12:09 p.m. | OK | MS C++ | TESTS | 56 | 888 | 147660800 | 2100 | |
58111659 | vjudge3 | E | Aug. 1, 2019, 7:25 a.m. | OK | MS C++ | TESTS | 56 | 1013 | 150323200 | 2100 | |
42829068 | _mactep | E | Sept. 13, 2018, 12:04 p.m. | OK | MS C++ | TESTS | 56 | 1434 | 32358400 | 2100 | |
68974298 | AleksanderBalobanov | E | Jan. 17, 2020, 8:14 a.m. | OK | MS C++ 2017 | TESTS | 56 | 265 | 15667200 | 2100 | |
44658434 | CTC | E | Oct. 21, 2018, 2:03 p.m. | OK | PHP | TESTS | 56 | 1512 | 129843200 | 2100 | |
44658106 | CTC | E | Oct. 21, 2018, 1:54 p.m. | OK | PHP | TESTS | 56 | 1528 | 129843200 | 2100 | |
42837977 | CTC | E | Sept. 13, 2018, 4:48 p.m. | OK | PHP | TESTS | 56 | 1652 | 129843200 | 2100 | |
42835193 | CTC | E | Sept. 13, 2018, 3:11 p.m. | OK | PHP | TESTS | 56 | 1653 | 129843200 | 2100 | |
44007036 | CTC | E | Oct. 8, 2018, 4:22 p.m. | OK | PHP | TESTS | 56 | 1855 | 129843200 | 2100 | |
45040953 | pajenegod | E | Oct. 29, 2018, 10:15 a.m. | OK | PyPy 2 | TESTS | 56 | 654 | 49561600 | 2100 | |
45040990 | pajenegod | E | Oct. 29, 2018, 10:16 a.m. | OK | PyPy 2 | TESTS | 56 | 670 | 49561600 | 2100 | |
44737407 | test616.cpp | E | Oct. 23, 2018, 1:20 p.m. | OK | PyPy 2 | TESTS | 56 | 1731 | 60006400 | 2100 | |
45587512 | Jonasz | E | Nov. 12, 2018, 9:56 a.m. | OK | Python 2 | TESTS | 56 | 1466 | 49664000 | 2100 | |
44737497 | test616.cpp | E | Oct. 23, 2018, 1:22 p.m. | OK | Python 2 | TESTS | 56 | 1653 | 58982400 | 2100 | |
42440143 | vadym_doroshenko | E | Sept. 3, 2018, 8 p.m. | OK | Python 3 | TESTS | 56 | 1840 | 58470400 | 2100 | |
42417730 | ASoboll | E | Sept. 3, 2018, 8:15 a.m. | OK | Scala | TESTS | 56 | 1356 | 66867200 | 2100 |
Back to search problems