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.
Problems
B"With your help, Heidi has prepared a plan of trap placement and defence. Yet suddenly, the Doctor popped out of the TARDIS and told her that he had spied on the Daleks' preparations, and there is more of them than ever. Desperate times require desperate measures, so Heidi is going to risk meeting with the Daleks and she will consider placing a trap along any Corridor. This means she needs your help again in calculating E_{max}(c) xe2 x80 x93 the largest e <= 10^9 such that if we changed the energy requirement of c to e , then the Daleks might use c in their invasion xe2 x80 x93 but this time for all Time Corridors. First line: number n of destinations, number m of corridors ( 2 <= q n <= q 10^5 , n - 1 <= q m <= q 10^6 ). The next m lines: destinations a , b and energy e ( 1 <= q a, b <= q n , a neq b , 0 <= q e <= q 10^9 ). No pair {a, b } will repeat. The graph is guaranteed to be connected. It is not guaranteed that all energy requirements e are distinct, or that the minimum spanning tree is unique. Output m lines, each containing one integer: E_{max}(c_i) for the i -th Corridor c_i from the input. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
63557797 |
luogu_bot2 |
E3 |
Oct. 27, 2019, 1:22 p.m. |
OK |
GNU C++11 |
TESTS |
86 |
1200 |
50995200 |
|
2500 |
56869791 |
Big_black_jujube |
E3 |
July 12, 2019, 5:48 a.m. |
OK |
GNU C++11 |
TESTS |
86 |
1200 |
61235200 |
|
2500 |
56658286 |
just_soso crawarb |
E3 |
July 7, 2019, 9:09 a.m. |
OK |
GNU C++11 |
TESTS |
86 |
1279 |
74342400 |
|
2500 |
56704134 |
WZYYN |
E3 |
July 8, 2019, 10:27 a.m. |
OK |
GNU C++11 |
TESTS |
86 |
1434 |
53350400 |
|
2500 |
60353724 |
hzy9819 |
E3 |
Sept. 10, 2019, 3:18 p.m. |
OK |
GNU C++11 |
TESTS |
86 |
1465 |
44544000 |
|
2500 |
56653925 |
Panole233 _Happy_New_Year_ snowflake |
E3 |
July 7, 2019, 8:15 a.m. |
OK |
GNU C++11 |
TESTS |
86 |
1512 |
154419200 |
|
2500 |
56669260 |
BLUESKY007 |
E3 |
July 7, 2019, 12:20 p.m. |
OK |
GNU C++11 |
TESTS |
86 |
1512 |
229376000 |
|
2500 |
56656884 |
wiwitrifai |
E3 |
July 7, 2019, 8:50 a.m. |
OK |
GNU C++11 |
TESTS |
86 |
1559 |
47411200 |
|
2500 |
64729062 |
vjudge4 |
E3 |
Nov. 12, 2019, 7:40 a.m. |
OK |
GNU C++11 |
TESTS |
86 |
1622 |
51404800 |
|
2500 |
57865320 |
lopare |
E3 |
July 27, 2019, 8:35 p.m. |
OK |
GNU C++11 |
TESTS |
86 |
1637 |
53555200 |
|
2500 |
56656625 |
krijgertje |
E3 |
July 7, 2019, 8:47 a.m. |
OK |
GNU C++14 |
TESTS |
86 |
1575 |
55193600 |
|
2500 |
62603147 |
NotNight |
E3 |
Oct. 15, 2019, 6:34 a.m. |
OK |
GNU C++14 |
TESTS |
86 |
1590 |
54476800 |
|
2500 |
68644094 |
Zetr0 |
E3 |
Jan. 12, 2020, 8:28 a.m. |
OK |
GNU C++14 |
TESTS |
86 |
1652 |
49868800 |
|
2500 |
56659608 |
dream_maker wxhfzyqwq jerome_wei |
E3 |
July 7, 2019, 9:29 a.m. |
OK |
GNU C++14 |
TESTS |
86 |
1653 |
175411200 |
|
2500 |
56653218 |
dorijanlendvaj tmwilliamlin168 |
E3 |
July 7, 2019, 8:06 a.m. |
OK |
GNU C++14 |
TESTS |
86 |
1746 |
74137600 |
|
2500 |
56736328 |
zzu20172430702 |
E3 |
July 9, 2019, 5:29 a.m. |
OK |
GNU C++14 |
TESTS |
86 |
1778 |
126259200 |
|
2500 |
64085013 |
bjn |
E3 |
Nov. 2, 2019, 11:11 a.m. |
OK |
GNU C++14 |
TESTS |
86 |
1809 |
57036800 |
|
2500 |
60590084 |
Codephorces |
E3 |
Sept. 15, 2019, 1:24 a.m. |
OK |
GNU C++14 |
TESTS |
86 |
1809 |
57036800 |
|
2500 |
56687641 |
shdut |
E3 |
July 8, 2019, 12:55 a.m. |
OK |
GNU C++14 |
TESTS |
86 |
1918 |
55808000 |
|
2500 |
56654167 |
vovuh pikmike Ne0n25 |
E3 |
July 7, 2019, 8:18 a.m. |
OK |
GNU C++14 |
TESTS |
86 |
1918 |
56012800 |
|
2500 |
56889787 |
Antoine |
E3 |
July 12, 2019, 2:29 p.m. |
OK |
GNU C++17 |
TESTS |
86 |
1263 |
46080000 |
|
2500 |
57590851 |
ainta |
E3 |
July 23, 2019, 12:14 p.m. |
OK |
GNU C++17 |
TESTS |
86 |
1559 |
57241600 |
|
2500 |
56658220 |
keko37 ppavic fbosnjak |
E3 |
July 7, 2019, 9:08 a.m. |
OK |
GNU C++17 |
TESTS |
86 |
1590 |
84684800 |
|
2500 |
60421805 |
RNS_JKS RNS_KSB |
E3 |
Sept. 12, 2019, 6:26 a.m. |
OK |
GNU C++17 |
TESTS |
86 |
1606 |
52940800 |
|
2500 |
56663502 |
Medeowex AngryAdhami |
E3 |
July 7, 2019, 10:35 a.m. |
OK |
GNU C++17 |
TESTS |
86 |
1637 |
52531200 |
|
2500 |
57449116 |
milisav |
E3 |
July 21, 2019, 9:09 a.m. |
OK |
GNU C++17 |
TESTS |
86 |
1653 |
57446400 |
|
2500 |
56880349 |
Rpd-Strike theodor.moroianu |
E3 |
July 12, 2019, 10:08 a.m. |
OK |
GNU C++17 |
TESTS |
86 |
1715 |
51609600 |
|
2500 |
56661048 |
Kuroni Umi |
E3 |
July 7, 2019, 9:54 a.m. |
OK |
GNU C++17 |
TESTS |
86 |
1777 |
51097600 |
|
2500 |
60147654 |
Nebuchadnezzar |
E3 |
Sept. 6, 2019, 1:35 a.m. |
OK |
GNU C++17 |
TESTS |
86 |
1778 |
60928000 |
|
2500 |
57001463 |
ericxu0 |
E3 |
July 14, 2019, 3:56 a.m. |
OK |
GNU C++17 |
TESTS |
86 |
1809 |
56832000 |
|
2500 |
56691496 |
sameep17264 |
E3 |
July 8, 2019, 4:14 a.m. |
OK |
Java 8 |
TESTS |
86 |
2698 |
135782400 |
|
2500 |
56654187 |
insert_cool_handle |
E3 |
July 7, 2019, 8:18 a.m. |
OK |
Java 8 |
TESTS |
86 |
3181 |
66048000 |
|
2500 |
remove filters
Back to search problems