European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred)

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
1949 European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 26942361 March 24, 2024, 10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1895 ) C Annual Ants' Gathering PROGRAMMING dfs and similar greedy trees

B'Deep within a forest lies an ancient tree, home to n ants living in n tiny houses, indexed from 1 to n , connected by the branches of the tree. Once a year, all the ants need to gather to watch the EUC. For this, all ants move along the n-1 branches of the tree they live on to meet at the home of one ant. However, this year the ants could not agree on where to meet and need your help to gather up. You can tell all the ants currently at house u to move to house v if there is a branch directly connecting those two houses. However, the ants ignore your command if there are fewer ants gathered in house v than in house u , i.e., if it would be easier for the ants from house v to move. This even holds true if no ant at all is currently in house v . You can give this kind of commands as many times as you want. Is it possible for you to gather all the ants in a single house? The first line contains one integer n ( 1 <= q n <= q 200 ,000 ) -- the number of ant homes. Each of the following n-1 lines contains two integers u and v ( 1 <= q u, v <= q n ) -- there is a branch directly connecting the house u and house v . It is guaranteed that every ant can reach the house of any other ant just by following the branches of the tree. Print texttt{YES} if it is possible to gather all the ants in a single house. Otherwise, print texttt{NO} . In the first sample, you can gather all the ants at house 3 as follows: In the second sample, it is impossible to gather all the ants in a single house. '...

Tutorials

European Championship 2024 (EUC) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
253074865 F7487 wgszcz kakaisjr C March 24, 2024, 11:34 a.m. OK C++14 (GCC 6-32) TESTS 46 124 6553600
253071679 Xun_Xiaoyao ustinian6 _LiMLE_ C March 24, 2024, 11:11 a.m. OK C++14 (GCC 6-32) TESTS 46 170 27238400
253153769 luogu_bot1 C March 25, 2024, 3:04 a.m. OK C++14 (GCC 6-32) TESTS 46 202 17100800
253069090 ImmortaLimit StarSilk Su_Zipei C March 24, 2024, 10:52 a.m. OK C++14 (GCC 6-32) TESTS 46 217 13004800
253079648 LYYY Youhezhen sunzhihong C March 24, 2024, 12:11 p.m. OK C++14 (GCC 6-32) TESTS 46 218 13619200
253072443 hzt1 Marco_L_T stan23456 C March 24, 2024, 11:16 a.m. OK C++14 (GCC 6-32) TESTS 46 218 17100800
253080581 A.n.o.n.y.m.o.u.s C March 24, 2024, 12:18 p.m. OK C++14 (GCC 6-32) TESTS 46 249 21913600
253073771 wywcgs Zhuojie panghupanghu C March 24, 2024, 11:26 a.m. OK C++14 (GCC 6-32) TESTS 46 280 12595200
253071699 Pyqe faustaadp hocky C March 24, 2024, 11:11 a.m. OK C++14 (GCC 6-32) TESTS 46 280 20787200
253094678 devangsvaghani meetkatharotiya Vraj_Dobariya_59 C March 24, 2024, 2:03 p.m. OK C++14 (GCC 6-32) TESTS 46 280 37785600
253123955 anpoli99 C March 24, 2024, 6:27 p.m. OK C++17 (GCC 7-32) TESTS 46 186 13312000
253153756 Daniel777 C March 25, 2024, 3:03 a.m. OK C++17 (GCC 7-32) TESTS 46 187 17100800
253101266 GStnt purinliang C March 24, 2024, 2:51 p.m. OK C++17 (GCC 7-32) TESTS 46 202 12185600
253094340 M_Ayush_04 yuvraj_2910 Akshat_Ajmera C March 24, 2024, 2:01 p.m. OK C++17 (GCC 7-32) TESTS 46 202 12185600
253129976 Scano MesSimonFallon19 martinius C March 24, 2024, 7:29 p.m. OK C++17 (GCC 7-32) TESTS 46 202 12390400
253154068 cyb1010 C March 25, 2024, 3:09 a.m. OK C++17 (GCC 7-32) TESTS 46 202 17100800
253062921 crazy_sea A_zjzj 275307894a C March 24, 2024, 10:07 a.m. OK C++17 (GCC 7-32) TESTS 46 202 17817600
253083767 ywjylx C March 24, 2024, 12:43 p.m. OK C++17 (GCC 7-32) TESTS 46 202 18841600
253077719 ArminAzimi Mohammad.H915 parsa333111 C March 24, 2024, 11:56 a.m. OK C++17 (GCC 7-32) TESTS 46 202 21299200
253065448 flying jucason_xu pp_orange C March 24, 2024, 10:26 a.m. OK C++17 (GCC 7-32) TESTS 46 217 10240000
253152344 qwqIdontHaveAgf C March 25, 2024, 2:32 a.m. OK C++20 (GCC 13-64) TESTS 46 124 9932800
253113271 gigabuffoon DanielW48 lightseba C March 24, 2024, 4:40 p.m. OK C++20 (GCC 13-64) TESTS 46 171 14950400
253129174 LUL____SEPLED1305 Subconscious RobeZH C March 24, 2024, 7:20 p.m. OK C++20 (GCC 13-64) TESTS 46 171 29798400
253109677 ManInM00N C March 24, 2024, 4:05 p.m. OK C++20 (GCC 13-64) TESTS 46 171 110284800
253150048 Pointy C March 25, 2024, 1:29 a.m. OK C++20 (GCC 13-64) TESTS 46 186 41574400
253150394 wsyear C March 25, 2024, 1:39 a.m. OK C++20 (GCC 13-64) TESTS 46 187 14950400
253155907 huaHai C March 25, 2024, 3:45 a.m. OK C++20 (GCC 13-64) TESTS 46 187 15769600
253148689 Marckess C March 25, 2024, 12:53 a.m. OK C++20 (GCC 13-64) TESTS 46 187 15769600
253070512 Mhmd_Bakr C March 24, 2024, 11:02 a.m. OK C++20 (GCC 13-64) TESTS 46 187 20787200
253093208 eka_tsirekidze C March 24, 2024, 1:53 p.m. OK C++20 (GCC 13-64) TESTS 46 187 20992000
253086997 yvbf C March 24, 2024, 1:07 p.m. OK Java 8 TESTS 46 935 88064000
253065252 arvindf232 C March 24, 2024, 10:24 a.m. OK Kotlin 1.9 TESTS 46 358 17817600
253085504 alexey.enkov C March 24, 2024, 12:56 p.m. OK Kotlin 1.9 TESTS 46 904 58163200
253085389 alexey.enkov C March 24, 2024, 12:55 p.m. OK Kotlin 1.9 TESTS 46 904 60108800
253145675 YMSeah C March 24, 2024, 11:33 p.m. OK PyPy 3 TESTS 46 716 51302400
253145422 YMSeah C March 24, 2024, 11:28 p.m. OK PyPy 3 TESTS 46 858 49049600
253080014 mat_deg loumock C March 24, 2024, 12:14 p.m. OK PyPy 3 TESTS 46 1965 110489600
253100634 AyuAnchor C March 24, 2024, 2:47 p.m. OK PyPy 3-64 TESTS 46 826 46592000
253115126 conqueror_of_tourist amsraman int_jim C March 24, 2024, 4:59 p.m. OK PyPy 3-64 TESTS 46 1481 22835200
253093285 the_last_smilodon C March 24, 2024, 1:53 p.m. OK PyPy 3-64 TESTS 46 1512 149401600
253085554 Garg_Naman sarthakkjha belowAverageNoob C March 24, 2024, 12:56 p.m. OK PyPy 3-64 TESTS 46 1981 124928000
253074440 mpsijm C March 24, 2024, 11:31 a.m. OK PyPy 3-64 TESTS 46 1996 91545600

remove filters

Back to search problems