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 |
---|---|---|---|---|---|---|
1149 | Codeforces Round 556 (Div. 1) | FINISHED | False | 7200 | 188407516 | April 29, 2019, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 559 ) | E | Election Promises | PROGRAMMING | games graphs | 3100 |
B"In Byteland, there are two political parties fighting for seats in the Parliament in the upcoming elections: Wrong Answer Party and Time Limit Exceeded Party. As they want to convince as many citizens as possible to cast their votes on them, they keep promising lower and lower taxes. There are n cities in Byteland, connected by m one-way roads. Interestingly enough, the road network has no cycles -- it's impossible to start in any city, follow a number of roads, and return to that city. Last year, citizens of the i -th city had to pay h_i bourles of tax. Parties will now alternately hold the election conventions in various cities. If a party holds a convention in city v , the party needs to decrease the taxes in this city to a non-negative integer amount of bourles. However, at the same time they can arbitrarily modify the taxes in each of the cities that can be reached from v using a single road. The only condition that must be fulfilled that the tax in each city has to remain a non-negative integer amount of bourles. The first party to hold the convention is Wrong Answer Party. It's predicted that the party to hold the last convention will win the election. Can Wrong Answer Party win regardless of Time Limit Exceeded Party's moves? The first line of the input contains two integers n , m ( 1 <= q n <= q 200 ,000 , 0 <= q m <= q 200 ,000 ) -- the number of cities and roads in Byteland. The next line contains n space-separated integers h_1, h_2, ... , h_n ( 0 <= q h_i <= q 10^9 ); h_i denotes the amount of taxes paid in the i -th city. Each of the following m lines contains two integers ( 1 <= q u, v <= q n , u neq v ), and describes a one-way road leading from the city u to the city v . There will be no cycles in the road network. No two roads will connect the same pair of cities. We can show that the conventions cannot be held indefinitely for an"... |
66783 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
54449318 | LJC00118 | E | May 21, 2019, 12:50 p.m. | OK | GNU C++11 | TESTS | 76 | 77 | 7987200 | 3100 | |
55610323 | ReaLNero1 | E | June 16, 2019, 5:16 a.m. | OK | GNU C++11 | TESTS | 76 | 78 | 13516800 | 3100 | |
55527592 | Mirach | E | June 13, 2019, 11:56 a.m. | OK | GNU C++11 | TESTS | 76 | 93 | 9728000 | 3100 | |
53538143 | liuzhangfeiabc | E | April 30, 2019, 4:28 a.m. | OK | GNU C++11 | TESTS | 76 | 93 | 13516800 | 3100 | |
53593317 | Rubbish12345 | E | May 1, 2019, 2:13 a.m. | OK | GNU C++11 | TESTS | 76 | 109 | 7270400 | 3100 | |
54827823 | litble | E | May 30, 2019, 7:27 a.m. | OK | GNU C++11 | TESTS | 76 | 109 | 8089600 | 3100 | |
55527654 | luogu_bot2 | E | June 13, 2019, 11:58 a.m. | OK | GNU C++11 | TESTS | 76 | 124 | 9728000 | 3100 | |
53843395 | xgzepto | E | May 7, 2019, 9:04 a.m. | OK | GNU C++11 | TESTS | 76 | 124 | 10444800 | 3100 | |
53655685 | cuizhuyefei | E | May 2, 2019, 4:33 a.m. | OK | GNU C++11 | TESTS | 76 | 124 | 11878400 | 3100 | |
54820265 | ErkkiErkko | E | May 30, 2019, 1:45 a.m. | OK | GNU C++11 | TESTS | 76 | 124 | 12083200 | 3100 | |
53599127 | FizzyDavid | E | May 1, 2019, 6:34 a.m. | OK | GNU C++14 | TESTS | 76 | 171 | 22118400 | 3100 | |
53699312 | vjudge1 | E | May 3, 2019, 9:24 a.m. | OK | GNU C++14 | TESTS | 76 | 187 | 7270400 | 3100 | |
57267085 | beginend | E | July 18, 2019, 7:33 a.m. | OK | GNU C++14 | TESTS | 76 | 202 | 6656000 | 3100 | |
53564835 | qiqi20021026 | E | April 30, 2019, 11:51 a.m. | OK | GNU C++14 | TESTS | 76 | 202 | 21401600 | 3100 | |
53699335 | vjudge3 | E | May 3, 2019, 9:25 a.m. | OK | GNU C++14 | TESTS | 76 | 217 | 7270400 | 3100 | |
53843713 | Weeeee | E | May 7, 2019, 9:18 a.m. | OK | GNU C++14 | TESTS | 76 | 217 | 21196800 | 3100 | |
53522321 | kiwikiwi | E | April 29, 2019, 3:58 p.m. | OK | GNU C++14 | TESTS | 76 | 218 | 11468800 | 3100 | |
53536294 | piscium | E | April 30, 2019, 2:44 a.m. | OK | GNU C++14 | TESTS | 76 | 218 | 14643200 | 3100 | |
60245307 | Scut82 | E | Sept. 8, 2019, 2:03 a.m. | OK | GNU C++14 | TESTS | 76 | 218 | 22630400 | 3100 | |
60245257 | Scut82 | E | Sept. 8, 2019, 2 a.m. | OK | GNU C++14 | TESTS | 76 | 218 | 22630400 | 3100 | |
53522606 | whzzt | E | April 29, 2019, 4 p.m. | OK | GNU C++17 | TESTS | 76 | 155 | 16896000 | 3100 | |
53816818 | mayaohua2003 | E | May 6, 2019, 11:03 a.m. | OK | GNU C++17 | TESTS | 76 | 202 | 7270400 | 3100 | |
53857700 | VioletSaber | E | May 7, 2019, 5:25 p.m. | OK | GNU C++17 | TESTS | 76 | 218 | 9830400 | 3100 | |
60955906 | user02 | E | Sept. 21, 2019, 2:34 a.m. | OK | GNU C++17 | TESTS | 76 | 218 | 10649600 | 3100 | |
53857555 | VioletSaber | E | May 7, 2019, 5:18 p.m. | OK | GNU C++17 | TESTS | 76 | 218 | 11366400 | 3100 | |
53599405 | 1250 | E | May 1, 2019, 6:44 a.m. | OK | GNU C++17 | TESTS | 76 | 218 | 13004800 | 3100 | |
64434673 | user202729_ | E | Nov. 7, 2019, 12:21 a.m. | OK | GNU C++17 | TESTS | 76 | 218 | 24883200 | 3100 | |
53591580 | lmiskiew | E | May 1, 2019, 12:26 a.m. | OK | GNU C++17 | TESTS | 76 | 218 | 25702400 | 3100 | |
60955867 | user02 | E | Sept. 21, 2019, 2:33 a.m. | OK | GNU C++17 | TESTS | 76 | 233 | 10649600 | 3100 | |
53599520 | RedTea | E | May 1, 2019, 6:48 a.m. | OK | GNU C++17 | TESTS | 76 | 233 | 20172800 | 3100 | |
53659628 | dalt | E | May 2, 2019, 6:58 a.m. | OK | Java 8 | TESTS | 76 | 655 | 149504000 | 3100 | |
53829985 | Jeel_Vaishnav | E | May 6, 2019, 7:10 p.m. | OK | Java 8 | TESTS | 76 | 670 | 159436800 | 3100 |
Back to search problems