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 |
---|---|---|---|---|---|---|
925 | VK Cup 2018 - Round 3 | FINISHED | False | 9000 | 206815499 | April 29, 2018, 1:15 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 114 ) | F | Parametric Circulation | PROGRAMMING | binary search flows | 3300 |
B"Vova has recently learned what a circulaton in a graph is. Recall the definition: let G = (V, E) be a directed graph. A circulation f is such a collection of non-negative real numbers f_e ( e in E ), that for each vertex v in V the following conservation condition holds: sum limits_{e in delta^{-}(v)} f_e = sum limits_{e in delta^{+}(v)} f_e where delta^{+}(v) is the set of edges that end in the vertex v , and delta^{-}(v) is the set of edges that start in the vertex v . In other words, for each vertex the total incoming flow should be equal to the total outcoming flow. Let a lr -circulation be such a circulation f that for each edge the condition l_e <= q f_e <= q r_e holds, where l_e and r_e for each edge e in E are two non-negative real numbers denoting the lower and upper bounds on the value of the circulation on this edge e . Vova can't stop thinking about applications of a new topic. Right now he thinks about the following natural question: let the graph be fixed, and each value l_e and r_e be a linear function of a real variable t : l_e(t) = a_e t + b_e r_e(t) = c_e t + d_e Note that t is the same for all edges. Let t be chosen at random from uniform distribution on a segment [0, 1] . What is the probability of existence of lr -circulation in the graph? The first line contains two integers n , m ( 1 <= q n <= q 1000 , 1 <= q m <= q 2000 ). Each of the next m lines describes edges of the graph in the format u_e , v_e , a_e , b_e , c_e , d_e ( 1 <= q u_e, v_e <= q n , -10^4 <= q a_e, c_e <= q 10^4 , 0 <= q b_e, d_e <= q 10^4 ), where u_e and v_e are the startpoint and the endpoint of the edge e , and the remaining 4 integers describe the linear functions for the upper and lower bound of circu"... |
Разбор VK 2018 Round 3 + Codeforces Round #477 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
57871514 | lopare | F | July 28, 2019, 2:12 a.m. | OK | GNU C++11 | TESTS | 61 | 109 | 102400 | 3300 | |
40978320 | ReaLNero1 | F | July 30, 2018, 4:35 p.m. | OK | GNU C++11 | TESTS | 61 | 140 | 307200 | 3300 | |
38000340 | krijgertje | F | May 7, 2018, 3:30 p.m. | OK | GNU C++11 | TESTS | 61 | 140 | 3788800 | 3300 | |
47804964 | zhouyuyang | F | Jan. 1, 2019, 6:10 a.m. | OK | GNU C++11 | TESTS | 61 | 264 | 716800 | 3300 | |
45456073 | liumh8 | F | Nov. 8, 2018, 7:13 p.m. | OK | GNU C++11 | TESTS | 61 | 280 | 19353600 | 3300 | |
51482369 | _twilight | F | March 19, 2019, 12:08 p.m. | OK | GNU C++11 | TESTS | 61 | 358 | 409600 | 3300 | |
38267127 | 251 | F | May 15, 2018, 12:20 p.m. | OK | GNU C++11 | TESTS | 61 | 358 | 5120000 | 3300 | |
37853699 | yclrz | F | May 3, 2018, 5:06 a.m. | OK | GNU C++11 | TESTS | 61 | 436 | 9113600 | 3300 | |
38138975 | Nikita7894 | F | May 12, 2018, 1 p.m. | OK | GNU C++11 | TESTS | 61 | 451 | 9011200 | 3300 | |
38260473 | yfzcsc | F | May 15, 2018, 7:57 a.m. | OK | GNU C++11 | TESTS | 61 | 468 | 4505600 | 3300 | |
37787186 | TLE | F | May 1, 2018, 3:55 a.m. | OK | GNU C++14 | TESTS | 61 | 156 | 46182400 | 3300 | |
38110408 | kut_kjb1994 | F | May 11, 2018, 9:52 a.m. | OK | GNU C++14 | TESTS | 61 | 171 | 3993600 | 3300 | |
37729529 | MiFaFaOvO | F | April 29, 2018, 5:07 p.m. | OK | GNU C++14 | TESTS | 61 | 327 | 11468800 | 3300 | |
41461840 | DEMOPON | F | Aug. 11, 2018, 8:56 a.m. | OK | GNU C++14 | TESTS | 61 | 452 | 2150400 | 3300 | |
37856003 | FallDream | F | May 3, 2018, 7:39 a.m. | OK | GNU C++14 | TESTS | 61 | 468 | 5529600 | 3300 | |
37748322 | apink | F | April 30, 2018, 12:46 p.m. | OK | GNU C++14 | TESTS | 61 | 514 | 4096000 | 3300 | |
37729521 | MiFaFaOvO | F | April 29, 2018, 5:06 p.m. | OK | GNU C++14 | TESTS | 61 | 1716 | 11468800 | 3300 | |
65946835 | gongsuidashen | F | Nov. 29, 2019, 9:03 a.m. | OK | GNU C++17 | TESTS | 61 | 405 | 2150400 | 3300 | |
37722295 | V--o_o--V LHiC | F | April 29, 2018, 2:51 p.m. | OK | GNU C++17 | TESTS | 61 | 420 | 4505600 | 3300 | |
37742054 | Golovanov399 | F | April 30, 2018, 7:05 a.m. | OK | GNU C++17 | TESTS | 61 | 702 | 5120000 | 3300 |
Back to search problems