Codeforces Round 881 (Div. 3)

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
1843 Codeforces Round 881 (Div. 3) FINISHED False 8100 49908263 June 20, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5503 ) F1 Omsk Metro (simple version) PROGRAMMING data structures dfs and similar dp greedy math trees

B'This is the simple version of the problem. The only difference between the simple and hard versions is that in this version u = 1 . As is known, Omsk is the capital of Berland. Like any capital, Omsk has a well-developed metro system. The Omsk metro consists of a certain number of stations connected by tunnels, and between any two stations there is exactly one path that passes through each of the tunnels no more than once. In other words, the metro is a tree. To develop the metro and attract residents, the following system is used in Omsk. Each station has its own weight x in {-1, 1 } . If the station has a weight of -1 , then when the station is visited by an Omsk resident, a fee of 1 burle is charged. If the weight of the station is 1 , then the Omsk resident is rewarded with 1 burle. Omsk Metro currently has only one station with number 1 and weight x = 1 . Every day, one of the following events occurs: You are a friend of Alex, so your task is to answer Alex 's questions. dagger Subsegment -- continuous sequence of elements. The first line contains a single number t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The first line of each test case contains the number n ( 1 <= q n <= q 2 cdot 10^5 ) -- the number of events. Then there are n lines describing the events. In the i -th line, one of the following options is possible: It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each of Alex 's questions, output "Yes" (without quotes) if the subsegment described in the condition exists, otherwise output "No" (without quotes). You can output the answer in any case (for example, the strings "yEs", "yes", "Yes" and "YES" will be recognized as a positive answer). Explanation of the first sample. The answer to the second question is "Yes", because there is a path 1 . In the fourth question, we can choose the 1 '...

Tutorials

Codeforces Round #881 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
210567481 bug_coder F1 June 21, 2023, 4 p.m. OK GNU C++14 TESTS 12 31 5324800
210601782 PCC F1 June 21, 2023, 11:59 p.m. OK GNU C++14 TESTS 12 109 15155200
210617153 odd_cheer F1 June 22, 2023, 4:55 a.m. OK GNU C++14 TESTS 12 109 18124800
210611198 odd_cheer F1 June 22, 2023, 3:13 a.m. OK GNU C++14 TESTS 12 109 18124800
210590242 ORIGNAL_SENSEI F1 June 21, 2023, 8:33 p.m. OK GNU C++14 TESTS 12 109 19251200
210567877 AlphaMale06 F1 June 21, 2023, 4:04 p.m. OK GNU C++14 TESTS 12 124 3174400
210504323 dimitri1244 F1 June 21, 2023, 4:41 a.m. OK GNU C++14 TESTS 12 124 3993600
210534223 xzwys F1 June 21, 2023, 10:39 a.m. OK GNU C++14 TESTS 12 124 4812800
210555237 BigBadWolf F1 June 21, 2023, 2:05 p.m. OK GNU C++14 TESTS 12 124 6553600
210614325 FiraCode F1 June 22, 2023, 4:09 a.m. OK GNU C++14 TESTS 12 124 18124800
210561578 YudoTLE F1 June 21, 2023, 3:03 p.m. OK GNU C++17 TESTS 12 93 6451200
210546722 Victor_P F1 June 21, 2023, 12:44 p.m. OK GNU C++17 TESTS 12 93 6451200
210617851 Vaibhav_Kumar F1 June 22, 2023, 5:05 a.m. OK GNU C++17 TESTS 12 108 5222400
210588296 kushagra3288 F1 June 21, 2023, 8:08 p.m. OK GNU C++17 TESTS 12 108 5222400
210612073 trungthanh1601 F1 June 22, 2023, 3:29 a.m. OK GNU C++17 TESTS 12 109 4812800
210591954 heropro F1 June 21, 2023, 8:55 p.m. OK GNU C++17 TESTS 12 109 8089600
210503185 zse F1 June 21, 2023, 4:20 a.m. OK GNU C++17 TESTS 12 109 18841600
210620020 anguchl F1 June 22, 2023, 5:41 a.m. OK GNU C++17 TESTS 12 124 3174400
210598281 Muhammad_Alparslan F1 June 21, 2023, 10:44 p.m. OK GNU C++17 TESTS 12 124 3174400
210597837 govufpb F1 June 21, 2023, 10:35 p.m. OK GNU C++17 TESTS 12 124 3174400
210562290 Linver F1 June 21, 2023, 3:10 p.m. OK GNU C++17 (64) TESTS 12 78 4812800
210555922 Akil_Newaz_Chy F1 June 21, 2023, 2:11 p.m. OK GNU C++17 (64) TESTS 12 78 7987200
210516203 yh11 F1 June 21, 2023, 7:41 a.m. OK GNU C++17 (64) TESTS 12 93 3174400
210514291 shuoxuanli F1 June 21, 2023, 7:21 a.m. OK GNU C++17 (64) TESTS 12 93 3276800
210506159 Giga_Cronos F1 June 21, 2023, 5:15 a.m. OK GNU C++17 (64) TESTS 12 93 6451200
210571468 tnaito F1 June 21, 2023, 4:39 p.m. OK GNU C++17 (64) TESTS 12 93 7372800
210508023 sai_T_V_B_N F1 June 21, 2023, 5:44 a.m. OK GNU C++17 (64) TESTS 12 108 10649600
210546994 yrtrt F1 June 21, 2023, 12:47 p.m. OK GNU C++17 (64) TESTS 12 108 59084800
210517335 yh11 F1 June 21, 2023, 7:54 a.m. OK GNU C++17 (64) TESTS 12 109 11264000
210548344 Superposition F1 June 21, 2023, 12:59 p.m. OK GNU C++17 (64) TESTS 12 109 15769600
210592440 Bu1at F1 June 21, 2023, 9:02 p.m. OK GNU C++20 (64) TESTS 12 62 3174400
210572080 Gaziz-Madi-OskBIL2026 F1 June 21, 2023, 4:46 p.m. OK GNU C++20 (64) TESTS 12 62 3174400
210504771 void_3 F1 June 21, 2023, 4:49 a.m. OK GNU C++20 (64) TESTS 12 62 3174400
210574989 unknownnnn001 F1 June 21, 2023, 5:17 p.m. OK GNU C++20 (64) TESTS 12 62 3276800
210560282 Hagag F1 June 21, 2023, 2:51 p.m. OK GNU C++20 (64) TESTS 12 62 3276800
210556596 LimpSlim F1 June 21, 2023, 2:17 p.m. OK GNU C++20 (64) TESTS 12 62 3276800
210546845 0cvVL0 F1 June 21, 2023, 12:46 p.m. OK GNU C++20 (64) TESTS 12 62 3276800
210514646 Jared_McDs F1 June 21, 2023, 7:24 a.m. OK GNU C++20 (64) TESTS 12 62 3276800
210504290 harshbutani01 F1 June 21, 2023, 4:40 a.m. OK GNU C++20 (64) TESTS 12 62 3276800
210567601 chaotique F1 June 21, 2023, 4:01 p.m. OK GNU C++20 (64) TESTS 12 62 3993600
210536408 ananya_s_s F1 June 21, 2023, 11:03 a.m. OK Java 11 TESTS 12 249 0
210561204 ch2001 F1 June 21, 2023, 3 p.m. OK Java 11 TESTS 12 280 6041600
210594526 themadknight45 F1 June 21, 2023, 9:35 p.m. OK Java 11 TESTS 12 373 6963200
210606885 new2ac F1 June 22, 2023, 1:50 a.m. OK Java 11 TESTS 12 373 16486400
210552846 aditya_2024 F1 June 21, 2023, 1:42 p.m. OK Java 11 TESTS 12 374 33894400
210537901 sheath_n_sword F1 June 21, 2023, 11:18 a.m. OK Java 11 TESTS 12 826 6451200
210515937 ilasiawo F1 June 21, 2023, 7:39 a.m. OK Java 11 TESTS 12 873 5427200
210570989 kribri F1 June 21, 2023, 4:34 p.m. OK Java 11 TESTS 12 888 5836800
210504742 ch2001 F1 June 21, 2023, 4:48 a.m. OK Java 11 TESTS 12 888 6553600
210524491 ch2001 F1 June 21, 2023, 9:02 a.m. OK Java 11 TESTS 12 1076 63283200
210614042 cpp10 F1 June 22, 2023, 4:04 a.m. OK Java 17 TESTS 12 514 75776000
210613967 cpp10 F1 June 22, 2023, 4:03 a.m. OK Java 17 TESTS 12 576 75673600
210593383 Cromyl F1 June 21, 2023, 9:16 p.m. OK Java 17 TESTS 12 702 67788800
210562540 Ani_S F1 June 21, 2023, 3:13 p.m. OK Java 17 TESTS 12 1216 4096000
210503949 chuquwan9964 F1 June 21, 2023, 4:34 a.m. OK Java 8 TESTS 12 155 5017600
210578321 lpychemistry F1 June 21, 2023, 5:55 p.m. OK Java 8 TESTS 12 218 6758400
210503802 2023_upsolver F1 June 21, 2023, 4:31 a.m. OK Java 8 TESTS 12 311 32358400
210574152 lpychemistry F1 June 21, 2023, 5:08 p.m. OK Java 8 TESTS 12 779 92364800
210545790 linxiaotian F1 June 21, 2023, 12:36 p.m. OK Kotlin 1.6 TESTS 12 343 18022400
210542703 chinesedfan F1 June 21, 2023, 12:06 p.m. OK Node.js TESTS 12 701 68403200
210585502 pratyanch_jain F1 June 21, 2023, 7:29 p.m. OK PyPy 3-64 TESTS 12 280 19251200
210492705 RobinFromTheHood F1 June 21, 2023, 12:31 a.m. OK PyPy 3-64 TESTS 12 358 21606400
210495889 bridgekiller F1 June 21, 2023, 1:58 a.m. OK PyPy 3-64 TESTS 12 374 33792000
210514692 USYDLDH F1 June 21, 2023, 7:25 a.m. OK PyPy 3-64 TESTS 12 420 41676800
210497026 bridgekiller F1 June 21, 2023, 2:22 a.m. OK PyPy 3-64 TESTS 12 436 31232000
210514569 USYDLDH F1 June 21, 2023, 7:23 a.m. OK PyPy 3-64 TESTS 12 436 42496000
210543028 Mohamed_Hamed F1 June 21, 2023, 12:09 p.m. OK PyPy 3-64 TESTS 12 452 37376000
210585816 rmr F1 June 21, 2023, 7:34 p.m. OK PyPy 3-64 TESTS 12 514 79872000
210514388 USYDLDH F1 June 21, 2023, 7:22 a.m. OK PyPy 3-64 TESTS 12 530 60313600
210605652 pedrosorio F1 June 22, 2023, 1:26 a.m. OK PyPy 3-64 TESTS 12 592 102604800
210525121 kefolen F1 June 21, 2023, 9:08 a.m. OK Python 3 TESTS 12 1185 20582400
210539344 Stan_Marsh Kenny__McCormick Thief_Executive_Officer F1 June 21, 2023, 11:32 a.m. OK Rust 2021 TESTS 12 561 107622400

remove filters

Back to search problems