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 |
1368
|
Codeforces Global Round 8 |
FINISHED |
False |
9000 |
139331699 |
June 18, 2020, 2:45 p.m. |
Problems
B"Arthur owns a ski resort on a mountain. There are n landing spots on the mountain numbered from 1 to n from the top to the foot of the mountain. The spots are connected with one-directional ski tracks. All tracks go towards the foot of the mountain, so there are no directed cycles formed by the tracks. There are at most two tracks leaving each spot, but many tracks may enter the same spot. A skier can start skiing from one spot and stop in another spot if there is a sequence of tracks that lead from the starting spot and end in the ending spot. Unfortunately, recently there were many accidents, because the structure of the resort allows a skier to go through dangerous paths, by reaching high speed and endangering himself and the other customers. Here, a path is called dangerous, if it consists of at least two tracks. Arthur wants to secure his customers by closing some of the spots in a way that there are no dangerous paths in the resort. When a spot is closed, all tracks entering and leaving that spot become unusable. Formally, after closing some of the spots, there should not be a path that consists of two or more tracks. Arthur doesn't want to close too many spots. He will be happy to find any way to close at most frac{4}{7}n spots so that the remaining part is safe. Help him find any suitable way to do so. The first line contains a single positive integer T -- the number of test cases. T test case description follows. The first line of each description contains two integers n and m ( 1 <= q n <= q 2 cdot 10^5 ) -- the number of landing spots and tracks respectively. The following m lines describe the tracks. Each of these lines contains two integers x and y ( 1 <= q x < y <= q n ) -- indices of the starting and finishing spots for the respective track. It is guaranteed that at most two tracks start at each spot. There may be tracks in which starting and finishing spots b"... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
84267211 |
hos.lyric |
E |
June 18, 2020, 6:36 p.m. |
OK |
D |
TESTS |
45 |
373 |
24473600 |
|
|
84247021 |
Gassa |
E |
June 18, 2020, 4:49 p.m. |
OK |
D |
TESTS |
44 |
546 |
56012800 |
|
|
84292640 |
jeffyang |
E |
June 19, 2020, 5:25 a.m. |
OK |
GNU C++11 |
TESTS |
46 |
62 |
10035200 |
|
|
84246553 |
LJC00118 |
E |
June 18, 2020, 4:47 p.m. |
OK |
GNU C++11 |
TESTS |
44 |
78 |
8396800 |
|
|
84285786 |
Frame233 |
E |
June 19, 2020, 3:01 a.m. |
OK |
GNU C++11 |
TESTS |
46 |
93 |
7475200 |
|
|
84293886 |
lin_rany |
E |
June 19, 2020, 5:44 a.m. |
OK |
GNU C++11 |
TESTS |
46 |
93 |
8089600 |
|
|
84253334 |
lin_rany |
E |
June 18, 2020, 5:04 p.m. |
OK |
GNU C++11 |
TESTS |
44 |
93 |
8089600 |
|
|
84285500 |
EncodeTalker |
E |
June 19, 2020, 2:54 a.m. |
OK |
GNU C++11 |
TESTS |
46 |
109 |
8499200 |
|
|
84271890 |
xyz32768 |
E |
June 18, 2020, 7:41 p.m. |
OK |
GNU C++11 |
TESTS |
45 |
124 |
8806400 |
|
|
84284638 |
lszxj |
E |
June 19, 2020, 2:29 a.m. |
OK |
GNU C++11 |
TESTS |
46 |
139 |
3174400 |
|
|
84283367 |
alocytus |
E |
June 19, 2020, 1:48 a.m. |
OK |
GNU C++11 |
TESTS |
46 |
139 |
3174400 |
|
|
84249971 |
xay5421 |
E |
June 18, 2020, 4:56 p.m. |
OK |
GNU C++11 |
TESTS |
44 |
140 |
8704000 |
|
|
84277611 |
Linkus |
E |
June 18, 2020, 9:44 p.m. |
OK |
GNU C++14 |
TESTS |
46 |
139 |
13824000 |
|
|
84220157 |
nhho |
E |
June 18, 2020, 3:50 p.m. |
OK |
GNU C++14 |
TESTS |
44 |
187 |
3481600 |
|
|
84276035 |
SuperJ6 |
E |
June 18, 2020, 9:05 p.m. |
OK |
GNU C++14 |
TESTS |
45 |
202 |
7270400 |
|
|
84281564 |
CupCapCup |
E |
June 19, 2020, 12:29 a.m. |
OK |
GNU C++14 |
TESTS |
46 |
202 |
9113600 |
|
|
84268057 |
saikat_7 |
E |
June 18, 2020, 6:44 p.m. |
OK |
GNU C++14 |
TESTS |
45 |
217 |
4300800 |
|
|
84277395 |
Tathagat_shah |
E |
June 18, 2020, 9:38 p.m. |
OK |
GNU C++14 |
TESTS |
46 |
217 |
7270400 |
|
|
84272435 |
savy_123 |
E |
June 18, 2020, 7:50 p.m. |
OK |
GNU C++14 |
TESTS |
45 |
217 |
7680000 |
|
|
84281567 |
tzaph_ |
E |
June 19, 2020, 12:29 a.m. |
OK |
GNU C++14 |
TESTS |
46 |
217 |
7884800 |
|
|
84261989 |
Adoki |
E |
June 18, 2020, 6:03 p.m. |
OK |
GNU C++14 |
TESTS |
44 |
217 |
7884800 |
|
|
84277922 |
4qqqq |
E |
June 18, 2020, 9:55 p.m. |
OK |
GNU C++14 |
TESTS |
46 |
217 |
8499200 |
|
|
84245695 |
whzzt |
E |
June 18, 2020, 4:45 p.m. |
OK |
GNU C++17 |
TESTS |
44 |
109 |
25600000 |
|
|
84272332 |
dinosaurs |
E |
June 18, 2020, 7:48 p.m. |
OK |
GNU C++17 |
TESTS |
45 |
202 |
6963200 |
|
|
84222915 |
hardikpandya |
E |
June 18, 2020, 3:55 p.m. |
OK |
GNU C++17 |
TESTS |
44 |
202 |
7475200 |
|
|
84283000 |
generic_placeholder_name |
E |
June 19, 2020, 1:32 a.m. |
OK |
GNU C++17 |
TESTS |
46 |
202 |
8499200 |
|
|
84277324 |
OctoBronze |
E |
June 18, 2020, 9:36 p.m. |
OK |
GNU C++17 |
TESTS |
46 |
202 |
8499200 |
|
|
84274664 |
JacobianDet |
E |
June 18, 2020, 8:34 p.m. |
OK |
GNU C++17 |
TESTS |
45 |
202 |
9216000 |
|
|
84285968 |
unknown_OvO |
E |
June 19, 2020, 3:06 a.m. |
OK |
GNU C++17 |
TESTS |
46 |
202 |
13824000 |
|
|
84278772 |
Anji |
E |
June 18, 2020, 10:21 p.m. |
OK |
GNU C++17 |
TESTS |
46 |
217 |
7680000 |
|
|
84268440 |
Alpha_Q |
E |
June 18, 2020, 6:49 p.m. |
OK |
GNU C++17 |
TESTS |
45 |
217 |
7782400 |
|
|
84267288 |
CoderAnshu |
E |
June 18, 2020, 6:37 p.m. |
OK |
GNU C++17 |
TESTS |
45 |
217 |
7884800 |
|
|
84262421 |
jiangly |
E |
June 18, 2020, 6:07 p.m. |
OK |
GNU C++17 (64) |
TESTS |
44 |
155 |
3174400 |
|
|
84289474 |
RobeZH |
E |
June 19, 2020, 4:23 a.m. |
OK |
GNU C++17 (64) |
TESTS |
46 |
155 |
5939200 |
|
|
84262086 |
Kostroma |
E |
June 18, 2020, 6:04 p.m. |
OK |
GNU C++17 (64) |
TESTS |
44 |
186 |
10137600 |
|
|
84270211 |
saketh |
E |
June 18, 2020, 7:14 p.m. |
OK |
GNU C++17 (64) |
TESTS |
45 |
186 |
10854400 |
|
|
84289768 |
harshit1729 |
E |
June 19, 2020, 4:28 a.m. |
OK |
GNU C++17 (64) |
TESTS |
46 |
186 |
15769600 |
|
|
84282328 |
hello_codeforces |
E |
June 19, 2020, 1:04 a.m. |
OK |
GNU C++17 (64) |
TESTS |
46 |
187 |
8908800 |
|
|
84281996 |
hello_codeforces |
E |
June 19, 2020, 12:48 a.m. |
OK |
GNU C++17 (64) |
TESTS |
46 |
202 |
8908800 |
|
|
84280761 |
Dormi |
E |
June 18, 2020, 11:56 p.m. |
OK |
GNU C++17 (64) |
TESTS |
46 |
202 |
9523200 |
|
|
84273513 |
emorgan5289 |
E |
June 18, 2020, 8:11 p.m. |
OK |
GNU C++17 (64) |
TESTS |
45 |
202 |
9932800 |
|
|
84282391 |
heyuhhh |
E |
June 19, 2020, 1:06 a.m. |
OK |
GNU C++17 (64) |
TESTS |
46 |
202 |
11571200 |
|
|
84287871 |
synapse |
E |
June 19, 2020, 3:52 a.m. |
OK |
Go |
TESTS |
46 |
108 |
10547200 |
|
|
84287424 |
synapse |
E |
June 19, 2020, 3:43 a.m. |
OK |
Go |
TESTS |
46 |
108 |
14950400 |
|
|
84288133 |
synapse |
E |
June 19, 2020, 3:57 a.m. |
OK |
Go |
TESTS |
46 |
514 |
19558400 |
|
|
84287191 |
synapse |
E |
June 19, 2020, 3:38 a.m. |
OK |
Go |
TESTS |
46 |
514 |
19558400 |
|
|
84253452 |
u1s1reallycai |
E |
June 18, 2020, 5:04 p.m. |
OK |
Go |
TESTS |
44 |
608 |
36352000 |
|
|
84291228 |
ritik_16 |
E |
June 19, 2020, 4:54 a.m. |
OK |
Java 11 |
TESTS |
46 |
311 |
17510400 |
|
|
84222861 |
SecondThread |
E |
June 18, 2020, 3:55 p.m. |
OK |
Java 11 |
TESTS |
44 |
826 |
39526400 |
|
|
84232526 |
StayAwayFromBitches |
E |
June 18, 2020, 4:15 p.m. |
OK |
Java 8 |
TESTS |
44 |
186 |
9318400 |
|
|
84245246 |
DarLam |
E |
June 18, 2020, 4:44 p.m. |
OK |
Java 8 |
TESTS |
44 |
358 |
17408000 |
|
|
84238332 |
iakovlev.zakhar |
E |
June 18, 2020, 4:28 p.m. |
OK |
Java 8 |
TESTS |
44 |
530 |
14336000 |
|
|
84220010 |
darklordx |
E |
June 18, 2020, 3:50 p.m. |
OK |
Java 8 |
TESTS |
44 |
561 |
28774400 |
|
|
84238169 |
martins |
E |
June 18, 2020, 4:28 p.m. |
OK |
Java 8 |
TESTS |
44 |
764 |
57446400 |
|
|
84267481 |
Hakiobo |
E |
June 18, 2020, 6:38 p.m. |
OK |
Kotlin |
TESTS |
45 |
748 |
84172800 |
|
|
84262327 |
Yupiteru |
E |
June 18, 2020, 6:06 p.m. |
OK |
Mono C# |
TESTS |
44 |
982 |
108851200 |
|
|
84283453 |
_Trung_Nguyen |
E |
June 19, 2020, 1:51 a.m. |
OK |
Mono C# |
TESTS |
46 |
1918 |
27238400 |
|
|
84268672 |
r57shell |
E |
June 18, 2020, 6:52 p.m. |
OK |
MS C++ |
TESTS |
45 |
202 |
9420800 |
|
|
84282928 |
wattaihei |
E |
June 19, 2020, 1:29 a.m. |
OK |
PyPy 3 |
TESTS |
46 |
592 |
34816000 |
|
|
84231420 |
neterukun |
E |
June 18, 2020, 4:13 p.m. |
OK |
PyPy 3 |
TESTS |
44 |
888 |
66867200 |
|
|
84272974 |
x3mka |
E |
June 18, 2020, 8 p.m. |
OK |
PyPy 3 |
TESTS |
45 |
904 |
29696000 |
|
|
84261695 |
zii.hrs |
E |
June 18, 2020, 6:01 p.m. |
OK |
PyPy 3 |
TESTS |
44 |
951 |
28467200 |
|
|
84261516 |
zii.hrs |
E |
June 18, 2020, 6 p.m. |
OK |
PyPy 3 |
TESTS |
44 |
951 |
30617600 |
|
|
84254727 |
CHelle |
E |
June 18, 2020, 5:07 p.m. |
OK |
PyPy 3 |
TESTS |
44 |
1060 |
28057600 |
|
|
84219600 |
CKP_ |
E |
June 18, 2020, 3:49 p.m. |
OK |
PyPy 3 |
TESTS |
44 |
1232 |
63488000 |
|
|
84267470 |
nagitaosu |
E |
June 18, 2020, 6:38 p.m. |
OK |
PyPy 3 |
TESTS |
45 |
1497 |
70758400 |
|
|
84268276 |
sh1194 |
E |
June 18, 2020, 6:47 p.m. |
OK |
Python 3 |
TESTS |
45 |
1933 |
77312000 |
|
|
84268561 |
sh1194 |
E |
June 18, 2020, 6:50 p.m. |
OK |
Python 3 |
TESTS |
45 |
1934 |
77414400 |
|
|
84262341 |
sansen |
E |
June 18, 2020, 6:06 p.m. |
OK |
Rust |
TESTS |
44 |
124 |
16896000 |
|
|
84271465 |
robostac |
E |
June 18, 2020, 7:34 p.m. |
OK |
Rust |
TESTS |
45 |
421 |
24268800 |
|
|
84270255 |
robostac |
E |
June 18, 2020, 7:14 p.m. |
OK |
Rust |
TESTS |
45 |
1887 |
23449600 |
|
|
84271200 |
robostac |
E |
June 18, 2020, 7:30 p.m. |
OK |
Rust |
TESTS |
45 |
1933 |
23552000 |
|
|
remove filters
Back to search problems