ICPC WF Moscow Invitational Contest - 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
1578 ICPC WF Moscow Invitational Contest - Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 104172863 Oct. 1, 2021, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 340 ) B Building Forest Trails PROGRAMMING data structures ds

B"There are n villages lying equidistant on a circle in the middle of a thick, impassable forest. From ancient times, it was impossible to move from one village to another, but technical progress has changed a lot. Now, there is a technology to build passable trails in the forest. The building process consists of m events. Each event is either building a trail or querying if two villages are connected. Trails are built as straight lines connecting two villages. After a trail is built, anybody can walk along the trail from one village to another. Moreover, if two trails cross, anybody can turn at the intersection, and if other trails leave a village you have just reached, they can also be used to walk along. So, for example, if villages are numbered 1 to 6 in the order around the circle, and there are trails 1 to 3 , 2 to 4 , and 4 to 6 , then all villages, except the 5 -th, are reachable from the 1 -st village. Given a list of m events, for each query, find if two given villages are reachable from each other at that moment. The first line contains two integers n ( 2 <= n <= 2 cdot 10^5 ) and m ( 1 <= m <= 3 cdot 10^5 ) -- the number of villages and the number of events respectively. Next m lines contain events. Each event description consists of three integers e ( e is 1 or 2 ), v ( 1 <= v <= n ), and u ( 1 <= u <= n , u ne v ). If e = 1 , then the event is building a trail between villages v and u . If e = 2 , then the event is a query if the villages v and u are connected. It is guaranteed that each trail is built at most once. Villages are numbered 1 to n in clockwise order around the circle. For each query print one character '0' if villages are not reachable, and '1' if villages are reachable from each other. Print answers for all queries as a single"...

Tutorials

Tutorial (PDF)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
130488372 tzc_wk gig_lf Alex_Wei B Oct. 1, 2021, 4:58 p.m. OK GNU C++14 TESTS 63 655 29798400
130490454 tun B Oct. 1, 2021, 5:19 p.m. OK GNU C++14 TESTS 63 701 19148800
130473858 chenkuowen Suiseiseki RiverHamster B Oct. 1, 2021, 2:30 p.m. OK GNU C++14 TESTS 63 763 82636800
130481473 stefanbalaz2 TadijaSebez nikolapesic2802 B Oct. 1, 2021, 3:44 p.m. OK GNU C++14 TESTS 63 857 46899200
130470350 eecs B Oct. 1, 2021, 2 p.m. OK GNU C++14 TESTS 63 1387 66867200
130491058 KMAASZRAA Atreus Shayan.P B Oct. 1, 2021, 5:25 p.m. OK GNU C++14 TESTS 63 2526 88371200
130475369 CuCl2 Eric_hooo KillerX B Oct. 1, 2021, 2:43 p.m. OK GNU C++14 TESTS 63 2713 8806400
130511735 GreymaneSilverfang B Oct. 2, 2021, 12:18 a.m. OK GNU C++17 TESTS 63 451 21708800
130482012 egor_bb IgorL Nikitosh B Oct. 1, 2021, 3:49 p.m. OK GNU C++17 TESTS 63 482 30208000
130497723 Eden_CY B Oct. 1, 2021, 6:35 p.m. OK GNU C++17 TESTS 63 530 31744000
130501145 gege B Oct. 1, 2021, 7:23 p.m. OK GNU C++17 TESTS 63 576 21606400
130479527 Markellonchik B Oct. 1, 2021, 3:24 p.m. OK GNU C++17 TESTS 63 592 29593600
130483368 BSBandme sweetsc B Oct. 1, 2021, 4:04 p.m. OK GNU C++17 TESTS 63 686 25804800
130486447 maojiayi wangziji AcFunction B Oct. 1, 2021, 4:36 p.m. OK GNU C++17 TESTS 63 779 34816000
130479786 xay5421 LJC00118 B Oct. 1, 2021, 3:27 p.m. OK GNU C++17 TESTS 63 779 75673600
130477964 wiwitrifai radit Luqman B Oct. 1, 2021, 3:08 p.m. OK GNU C++17 TESTS 63 826 29798400
130484979 Batrr B Oct. 1, 2021, 4:21 p.m. OK GNU C++17 TESTS 63 1185 23961600
130471493 yosupo B Oct. 1, 2021, 2:10 p.m. OK GNU C++17 (64) TESTS 63 327 16793600
130473139 mango_lassi B Oct. 1, 2021, 2:24 p.m. OK GNU C++17 (64) TESTS 63 420 28364800
130476019 snuke hos.lyric maroonrk B Oct. 1, 2021, 2:49 p.m. OK GNU C++17 (64) TESTS 63 592 47718400
130482452 Fulisike Miracle03 Retired_MiFaFaOvO B Oct. 1, 2021, 3:53 p.m. OK GNU C++17 (64) TESTS 63 607 33792000
130481541 SSRS_ B Oct. 1, 2021, 3:44 p.m. OK GNU C++17 (64) TESTS 63 623 34406400
130482417 Maksim1744 never_giveup B Oct. 1, 2021, 3:53 p.m. OK GNU C++17 (64) TESTS 63 623 40345600
130473412 blackbori dlalswp25 GyojunYoun B Oct. 1, 2021, 2:26 p.m. OK GNU C++17 (64) TESTS 63 686 41881600
130470966 Autron AlexLuchianov RedstoneGamer22 B Oct. 1, 2021, 2:05 p.m. OK GNU C++17 (64) TESTS 63 716 38297600
130468902 tlwpdus ainta molamola. B Oct. 1, 2021, 1:48 p.m. OK GNU C++17 (64) TESTS 63 920 31744000
130492379 BigBag shanin Mustang98 B Oct. 1, 2021, 5:39 p.m. OK GNU C++17 (64) TESTS 63 950 38912000

remove filters

Back to search problems