Codeforces Round 673 (Div. 1)

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
1416 Codeforces Round 673 (Div. 1) FINISHED False 7200 130604099 Sept. 27, 2020, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2106 ) D Graph and Queries PROGRAMMING data structures dfs and similar ds graphs trees 2600

B'You are given an undirected graph consisting of n vertices and m edges. Initially there is a single integer written on every vertex: the vertex i has p_i written on it. All p_i are distinct integers from 1 to n . You have to process q queries of two types: Note that, in a query of the first type, it is possible that all vertices reachable from v have 0 written on them. In this case, u is not explicitly defined, but since the selection of u does not affect anything, you can choose any vertex reachable from v and print its value (which is 0 ). The first line contains three integers n , m and q ( 1 <= n <= 2 cdot 10^5 ; 1 <= m <= 3 cdot 10^5 ; 1 <= q <= 5 cdot 10^5 ). The second line contains n distinct integers p_1 , p_2 , ..., p_n , where p_i is the number initially written on vertex i ( 1 <= p_i <= n ). Then m lines follow, the i -th of them contains two integers a_i and b_i ( 1 <= a_i, b_i <= n , a_i ne b_i ) and means that the i -th edge connects vertices a_i and b_i . It is guaranteed that the graph does not contain multi-edges. Then q lines follow, which describe the queries. Each line is given by one of the following formats: For every query of the first type, print the value of p_u written on the chosen vertex u . '...

Tutorials

Codeforces Round #673 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
94044015 SSerxhs D Sept. 28, 2020, 3:19 a.m. OK GNU C++11 TESTS 58 280 41779200 2600
94043877 SSerxhs D Sept. 28, 2020, 3:16 a.m. OK GNU C++11 TESTS 58 327 47411200 2600
94039898 jzp D Sept. 28, 2020, 1:18 a.m. OK GNU C++11 TESTS 58 343 45568000 2600
94037510 2016wudi D Sept. 27, 2020, 11:37 p.m. OK GNU C++11 TESTS 58 358 42393600 2600
94039919 jzp D Sept. 28, 2020, 1:19 a.m. OK GNU C++11 TESTS 58 358 45568000 2600
94005125 fanache99 D Sept. 27, 2020, 4:22 p.m. OK GNU C++11 TESTS 57 420 31129600 2600
94040301 Wallbreaker4th D Sept. 28, 2020, 1:31 a.m. OK GNU C++11 TESTS 58 436 88576000 2600
94045046 2018LZY D Sept. 28, 2020, 3:43 a.m. OK GNU C++11 TESTS 58 436 143052800 2600
94001375 KagamineRin D Sept. 27, 2020, 4:11 p.m. OK GNU C++11 TESTS 57 452 23552000 2600
94029322 luisBah D Sept. 27, 2020, 7:26 p.m. OK GNU C++11 TESTS 58 483 27443200 2600
94044386 YLWang D Sept. 28, 2020, 3:28 a.m. OK GNU C++14 TESTS 58 358 88985600 2600
94040207 YLWang D Sept. 28, 2020, 1:29 a.m. OK GNU C++14 TESTS 58 389 88985600 2600
94021977 He_Ren D Sept. 27, 2020, 5:46 p.m. OK GNU C++14 TESTS 57 545 42700800 2600
94033324 luciocf D Sept. 27, 2020, 9:02 p.m. OK GNU C++14 TESTS 58 576 37888000 2600
94017189 Will_Dearborn D Sept. 27, 2020, 4:59 p.m. OK GNU C++14 TESTS 57 608 21913600 2600
94044271 upobir D Sept. 28, 2020, 3:25 a.m. OK GNU C++14 TESTS 58 608 42086400 2600
94039701 WiwiHo D Sept. 28, 2020, 1:10 a.m. OK GNU C++14 TESTS 58 670 41369600 2600
94011062 stevenkplus D Sept. 27, 2020, 4:40 p.m. OK GNU C++14 TESTS 57 670 46694400 2600
94045313 luogu_bot3 D Sept. 28, 2020, 3:49 a.m. OK GNU C++14 TESTS 58 685 117657600 2600
94008552 CodePlatina D Sept. 27, 2020, 4:32 p.m. OK GNU C++14 TESTS 57 701 68608000 2600
94032836 Nson D Sept. 27, 2020, 8:49 p.m. OK GNU C++17 TESTS 58 405 27033600 2600
94002105 conflict D Sept. 27, 2020, 4:13 p.m. OK GNU C++17 TESTS 57 467 25702400 2600
94035114 Bohun D Sept. 27, 2020, 9:55 p.m. OK GNU C++17 TESTS 58 530 67072000 2600
94014268 Okrut D Sept. 27, 2020, 4:50 p.m. OK GNU C++17 TESTS 57 545 24883200 2600
94019123 chielo D Sept. 27, 2020, 5:03 p.m. OK GNU C++17 TESTS 57 560 73011200 2600
94040646 ORZZZQTXDY D Sept. 28, 2020, 1:42 a.m. OK GNU C++17 TESTS 58 560 102297600 2600
93986372 tlwpdus D Sept. 27, 2020, 3:35 p.m. OK GNU C++17 TESTS 57 608 34713600 2600
93996097 tourist D Sept. 27, 2020, 3:56 p.m. OK GNU C++17 TESTS 57 623 19558400 2600
94002052 freak93 D Sept. 27, 2020, 4:12 p.m. OK GNU C++17 TESTS 57 639 20480000 2600
94042444 generic_placeholder_name D Sept. 28, 2020, 2:39 a.m. OK GNU C++17 TESTS 58 639 34304000 2600
93991526 LiChenKoh D Sept. 27, 2020, 3:46 p.m. OK GNU C++17 (64) TESTS 57 311 42393600 2600
94038499 RiverHamster D Sept. 28, 2020, 12:25 a.m. OK GNU C++17 (64) TESTS 58 358 47104000 2600
94000331 tfg D Sept. 27, 2020, 4:08 p.m. OK GNU C++17 (64) TESTS 57 451 35225600 2600
94009079 Marckess D Sept. 27, 2020, 4:34 p.m. OK GNU C++17 (64) TESTS 57 451 60416000 2600
94033901 FlowerOfSorrow D Sept. 27, 2020, 9:20 p.m. OK GNU C++17 (64) TESTS 58 452 31334400 2600
94023400 ALILILILILI-KHAN D Sept. 27, 2020, 5:58 p.m. OK GNU C++17 (64) TESTS 58 482 54067200 2600
94044046 DimmyT D Sept. 28, 2020, 3:20 a.m. OK GNU C++17 (64) TESTS 58 514 100556800 2600
94032550 Ormlis D Sept. 27, 2020, 8:41 p.m. OK GNU C++17 (64) TESTS 58 529 69632000 2600
93996848 300iq D Sept. 27, 2020, 3:58 p.m. OK GNU C++17 (64) TESTS 57 545 51507200 2600
94037838 emorgan5289 D Sept. 27, 2020, 11:54 p.m. OK GNU C++17 (64) TESTS 58 545 94105600 2600
94017106 uwi D Sept. 27, 2020, 4:58 p.m. OK Java 11 TESTS 57 810 86323200 2600
94019290 iakovlev.zakhar D Sept. 27, 2020, 5:03 p.m. OK Java 11 TESTS 57 1216 92057600 2600
94038160 skittles1412 D Sept. 28, 2020, 12:09 a.m. OK Java 11 TESTS 58 1248 159744000 2600
94034570 fetetriste D Sept. 27, 2020, 9:37 p.m. OK Java 8 TESTS 58 639 30003200 2600
94033035 TheSawan D Sept. 27, 2020, 8:55 p.m. OK Java 8 TESTS 58 966 84582400 2600
94039654 skittles1412 D Sept. 28, 2020, 1:09 a.m. OK Kotlin TESTS 58 1310 188211200 2600
94025836 Friska D Sept. 27, 2020, 6:28 p.m. OK MS C++ 2017 TESTS 58 1356 178688000 2600
94042226 sansen D Sept. 28, 2020, 2:32 a.m. OK Rust TESTS 58 217 40857600 2600
94011219 sansen D Sept. 27, 2020, 4:41 p.m. OK Rust TESTS 57 264 40857600 2600

remove filters

Back to search problems