European Championship 2025 - 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
2068 European Championship 2025 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 35493923 March 2, 2025, 10:35 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 362 ) E Porto Vs. Benfica PROGRAMMING data structures dfs and similar dsu graphs shortest paths

FC Porto and SL Benfica are the two largest football teams in Portugal. Naturally, when the two play each other, a lot of people travel from all over the country to watch the game. This includes the Benfica supporters' club, which is going to travel from Lisbon to Porto to watch the upcoming game. To avoid tensions between them and the Porto supporters' club, the national police want to delay their arrival to Porto as much as they can. The road network in Portugal can be modelled as a simple, undirected, unweighted, connected graph with (n) vertices and (m) edges, where vertices represent towns and edges represent roads. Vertex (1) corresponds to Lisbon, i.e., the starting vertex of the supporters' club, and vertex (n) is Porto, i.e., the destination vertex of the supporters' club. The supporters' club wants to minimize the number of roads they take to reach Porto. The police are following the supporters' club carefully, and so they always know where they are. To delay their arrival, at any point the police can pick exactly one road and block it, as long as the supporters' club isn't currently traversing it. They can do this exactly once, and once they do that, the road is blocked forever. Once the police block a road, the supporters' club immediately learns that that road is blocked, and they can change their route however they prefer. Furthermore, the supporters' club knows that the police are planning on blocking some road and can plan their route accordingly. Assuming that both the supporters' club and the police always make optimal choices, determine the minimum number of roads the supporters' club needs to traverse to go from Lisbon to Porto. If the police can block the supporters' club from ever reaching Porto, then output (-1). The first line contains two integers (n) and (m) ((2 \leq n \leq 200\,000), (n - 1 \leq m \leq \min\{n(n - 1)/2, 200\,000\})) — the number of towns and the number of roads in the road netw

Tutorials

140239

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
308699332 ay1357 E March 2, 2025, 6:56 p.m. OK C++17 (GCC 7-32) TESTS 72 280 10035200
308635011 LucaLucaM Andrei_ierdnA MateiKing80 E March 2, 2025, 10:41 a.m. OK C++17 (GCC 7-32) TESTS 72 311 40550400
308686785 wywcgs E March 2, 2025, 4:57 p.m. OK C++17 (GCC 7-32) TESTS 72 374 42803200
308665008 Pajaraja VladaMG98 milisav E March 2, 2025, 2:12 p.m. OK C++17 (GCC 7-32) TESTS 72 530 59801600
308666578 potato167 Nachia Rubikun E March 2, 2025, 2:23 p.m. OK C++17 (GCC 7-32) TESTS 72 592 40448000
308673052 MH_Parag arman_ferdous ruhan.habib39 E March 2, 2025, 3:14 p.m. OK C++17 (GCC 7-32) TESTS 72 749 28160000
308738204 AghaTizi E March 3, 2025, 4:41 a.m. OK C++17 (GCC 7-32) TESTS 72 842 15052800
308665126 Zeyush Marco_L_T stan23456 E March 2, 2025, 2:13 p.m. OK C++17 (GCC 7-32) TESTS 72 1656 42188800
308734824 Donaldqian0712 E March 3, 2025, 3:54 a.m. OK C++20 (GCC 13-64) TESTS 72 156 10444800
308735379 JDScript0117 E March 3, 2025, 4:03 a.m. OK C++20 (GCC 13-64) TESTS 72 280 38707200
308660527 Kude E March 2, 2025, 1:40 p.m. OK C++20 (GCC 13-64) TESTS 72 343 25497600
308653757 thangdz2k7 ShadowShark E March 2, 2025, 12:53 p.m. OK C++20 (GCC 13-64) TESTS 72 359 33894400
308654825 JDScript0117 E March 2, 2025, 1 p.m. OK C++20 (GCC 13-64) TESTS 72 374 38707200
308642298 molamola. gamegame E March 2, 2025, 11:30 a.m. OK C++20 (GCC 13-64) TESTS 72 390 41369600
308656786 Tudy006 E March 2, 2025, 1:14 p.m. OK C++20 (GCC 13-64) TESTS 72 406 26931200
308668847 Karuna arnold518 YeongTree E March 2, 2025, 2:40 p.m. OK C++20 (GCC 13-64) TESTS 72 453 47411200
308730431 anmichi E March 3, 2025, 2:29 a.m. OK C++20 (GCC 13-64) TESTS 72 515 32563200
308667675 tourist E March 2, 2025, 2:32 p.m. OK C++20 (GCC 13-64) TESTS 72 531 37888000
308644853 jiangly E March 2, 2025, 11:46 a.m. OK C++23 (GCC 14-64, msys2) TESTS 72 280 10649600
308646614 244mhq antontrygubO_o E March 2, 2025, 11:58 a.m. OK C++23 (GCC 14-64, msys2) TESTS 72 311 48332800
308711223 tkacper E March 2, 2025, 8:49 p.m. OK C++23 (GCC 14-64, msys2) TESTS 72 374 32256000
308650125 StarSilk E March 2, 2025, 12:24 p.m. OK C++23 (GCC 14-64, msys2) TESTS 72 406 34611200
308650151 Kevin114514 jqdai0815 E March 2, 2025, 12:25 p.m. OK C++23 (GCC 14-64, msys2) TESTS 72 499 46284800
308683075 modwwe E March 2, 2025, 4:22 p.m. OK C++23 (GCC 14-64, msys2) TESTS 72 531 74752000
308648259 hos.lyric maspy maroonrk E March 2, 2025, 12:10 p.m. OK C++23 (GCC 14-64, msys2) TESTS 72 593 89907200
308655388 chaeyihwan Numbering platter E March 2, 2025, 1:04 p.m. OK C++23 (GCC 14-64, msys2) TESTS 72 609 35328000
308636488 rolandpetrean anpaio ntherner E March 2, 2025, 10:52 a.m. OK C++23 (GCC 14-64, msys2) TESTS 72 624 141107200
308659144 LeoPro fastmath turmax E March 2, 2025, 1:30 p.m. OK C++23 (GCC 14-64, msys2) TESTS 72 655 108236800
308657166 Maksim1744 E March 2, 2025, 1:16 p.m. OK Rust 2021 TESTS 72 858 61952000

remove filters

Back to search problems