Codeforces Round 816 (Div. 2)

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
1715 Codeforces Round 816 (Div. 2) FINISHED False 8100 76260262 Aug. 20, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5256 ) D 2+ doors PROGRAMMING 2-sat bitmasks graphs greedy schedules

B'The Narrator has an integer array a of length n , but he will only tell you the size n and q statements, each of them being three integers i, j, x , which means that a_i mid a_j = x , where | denotes the bitwise OR operation. Find the lexicographically smallest array a that satisfies all the statements. An array a is lexicographically smaller than an array b of the same length if and only if the following holds: In the first line you are given with two integers n and q ( 1 <= n <= 10^5 , 0 <= q <= 2 cdot 10^5 ). In the next q lines you are given with three integers i , j , and x ( 1 <= i, j <= n , 0 <= x < 2^{30} ) -- the statements. It is guaranteed that all q statements hold for at least one array. On a single line print n integers a_1, a_2, ldots, a_n ( 0 <= a_i < 2^{30} ) -- array a . In the first sample, these are all the arrays satisfying the statements: '...

Tutorials

Codeforces Round #816 (Div. 2) editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
169212731 avtoruxadze D Aug. 21, 2022, 8:17 a.m. OK C# 8 TESTS 90 982 27955200
169261710 gcet_2024 D Aug. 21, 2022, 5:06 p.m. OK GNU C11 TESTS 91 561 10137600
169274264 KrowSavcik D Aug. 21, 2022, 7:39 p.m. OK GNU C11 TESTS 91 624 3174400
169273826 KrowSavcik D Aug. 21, 2022, 7:31 p.m. OK GNU C11 TESTS 91 670 3276800
169295486 y_kx_b D Aug. 22, 2022, 4:46 a.m. OK GNU C++14 TESTS 91 62 56217600
169288562 y_kx_b D Aug. 22, 2022, 2:05 a.m. OK GNU C++14 TESTS 91 77 56217600
169296010 HaPpY1213 D Aug. 22, 2022, 4:57 a.m. OK GNU C++14 TESTS 91 156 3174400
169196759 jiangbowen D Aug. 21, 2022, 4:29 a.m. OK GNU C++14 TESTS 87 171 9216000
169228981 A_normal_OIer D Aug. 21, 2022, 11:14 a.m. OK GNU C++14 TESTS 90 186 9830400
169308725 SoiMae D Aug. 22, 2022, 8:06 a.m. OK GNU C++14 TESTS 91 187 5529600
169266528 Linnins D Aug. 21, 2022, 5:59 p.m. OK GNU C++14 TESTS 91 187 6041600
169384628 IPJ D Aug. 23, 2022, 2:36 a.m. OK GNU C++14 TESTS 91 187 7577600
169267400 Linnins D Aug. 21, 2022, 6:08 p.m. OK GNU C++14 TESTS 91 187 7577600
169266965 Linnins D Aug. 21, 2022, 6:03 p.m. OK GNU C++14 TESTS 91 187 7577600
169219883 Bobocan D Aug. 21, 2022, 9:38 a.m. OK GNU C++17 TESTS 90 62 6553600
169193234 Asd_Orin D Aug. 21, 2022, 3:15 a.m. OK GNU C++17 TESTS 85 170 5529600
169228741 GrishaIvanenko D Aug. 21, 2022, 11:11 a.m. OK GNU C++17 TESTS 90 171 5529600
169251387 abhinav92003 D Aug. 21, 2022, 3:13 p.m. OK GNU C++17 TESTS 91 186 5120000
169332946 snek_Case D Aug. 22, 2022, 12:35 p.m. OK GNU C++17 TESTS 91 186 5529600
169226353 PinoF D Aug. 21, 2022, 10:46 a.m. OK GNU C++17 TESTS 90 186 5529600
169353865 Muhammad_Alparslan D Aug. 22, 2022, 4:12 p.m. OK GNU C++17 TESTS 91 186 5734400
169201521 HiDen D Aug. 21, 2022, 5:49 a.m. OK GNU C++17 TESTS 88 186 7577600
169252654 ErwinSchrodingersCat D Aug. 21, 2022, 3:25 p.m. OK GNU C++17 TESTS 91 186 7577600
169217055 stubborn_1 D Aug. 21, 2022, 9:09 a.m. OK GNU C++17 TESTS 90 186 7577600
169226447 KylinKSY D Aug. 21, 2022, 10:48 a.m. OK GNU C++17 (64) TESTS 90 156 10649600
169213438 Hank2019 D Aug. 21, 2022, 8:26 a.m. OK GNU C++17 (64) TESTS 90 171 10854400
169218758 LiZnB D Aug. 21, 2022, 9:27 a.m. OK GNU C++17 (64) TESTS 90 171 11571200
169312002 cjnwq D Aug. 22, 2022, 8:45 a.m. OK GNU C++17 (64) TESTS 91 186 9830400
169248369 ZhouSai D Aug. 21, 2022, 2:41 p.m. OK GNU C++17 (64) TESTS 91 186 12288000
169192419 patcht D Aug. 21, 2022, 2:58 a.m. OK GNU C++17 (64) TESTS 83 187 7168000
169250037 ZhouSai D Aug. 21, 2022, 2:59 p.m. OK GNU C++17 (64) TESTS 91 187 12288000
169247399 ZhouSai D Aug. 21, 2022, 2:30 p.m. OK GNU C++17 (64) TESTS 91 187 18227200
169279529 Xc4l16r3 D Aug. 21, 2022, 9:23 p.m. OK GNU C++17 (64) TESTS 91 202 9420800
169228768 MisaXD D Aug. 21, 2022, 11:11 a.m. OK GNU C++17 (64) TESTS 90 202 9420800
169254826 TheLost D Aug. 21, 2022, 3:51 p.m. OK GNU C++20 (64) TESTS 91 78 9728000
169201529 Yuu D Aug. 21, 2022, 5:49 a.m. OK GNU C++20 (64) TESTS 88 109 3993600
169354869 green_gold_dog D Aug. 22, 2022, 4:23 p.m. OK GNU C++20 (64) TESTS 91 124 6656000
169198185 Kevin114514 D Aug. 21, 2022, 4:55 a.m. OK GNU C++20 (64) TESTS 88 124 6963200
169198160 lbwhangbeateveryone D Aug. 21, 2022, 4:54 a.m. OK GNU C++20 (64) TESTS 88 124 6963200
169226297 harsh__h D Aug. 21, 2022, 10:46 a.m. OK GNU C++20 (64) TESTS 90 124 6963200
169226302 akshaykhandelwal D Aug. 21, 2022, 10:46 a.m. OK GNU C++20 (64) TESTS 90 124 6963200
169275333 AbdelmagedNour D Aug. 21, 2022, 7:57 p.m. OK GNU C++20 (64) TESTS 91 124 7168000
169353916 Obadar D Aug. 22, 2022, 4:12 p.m. OK GNU C++20 (64) TESTS 91 124 7168000
169217608 dushenkov D Aug. 21, 2022, 9:15 a.m. OK GNU C++20 (64) TESTS 90 124 7884800
169320839 kkkkush D Aug. 22, 2022, 10:20 a.m. OK Java 11 TESTS 91 624 29286400
169241119 Jeg D Aug. 21, 2022, 1:25 p.m. OK Java 11 TESTS 91 1060 121753600
169274216 Mamimi D Aug. 21, 2022, 7:38 p.m. OK Java 17 TESTS 91 623 6758400
169235260 kkz666 D Aug. 21, 2022, 12:22 p.m. OK Java 17 TESTS 90 779 34201600
169234601 kkz666 D Aug. 21, 2022, 12:14 p.m. OK Java 17 TESTS 90 810 35225600
169234666 kkz666 D Aug. 21, 2022, 12:15 p.m. OK Java 17 TESTS 90 904 34099200
169263854 UniversalAdmin D Aug. 21, 2022, 5:28 p.m. OK Java 8 TESTS 91 701 32665600
169198937 liomsv D Aug. 21, 2022, 5:08 a.m. OK Java 8 TESTS 88 779 17510400
169241128 NatInTheHat D Aug. 21, 2022, 1:25 p.m. OK Java 8 TESTS 91 857 35942400
169388868 hkurokawa D Aug. 23, 2022, 5:39 a.m. OK Java 8 TESTS 91 1122 79052800
169271233 shiviDON D Aug. 21, 2022, 6:53 p.m. OK Java 8 TESTS 91 1122 79052800
169236609 ikillmyself D Aug. 21, 2022, 12:36 p.m. OK Java 8 TESTS 90 1247 76185600
169334168 yashpandey73 D Aug. 22, 2022, 12:48 p.m. OK Java 8 TESTS 91 1419 27852800
169205379 r57shell D Aug. 21, 2022, 6:42 a.m. OK MS C++ 2017 TESTS 90 312 7782400
169348690 Danbbler D Aug. 22, 2022, 3:17 p.m. OK MS C++ 2017 TESTS 91 670 5427200
169338020 YMSeah D Aug. 22, 2022, 1:28 p.m. OK PyPy 3 TESTS 91 514 27136000
169201176 Apoorv_Rathore D Aug. 21, 2022, 5:44 a.m. OK PyPy 3 TESTS 88 639 36659200
169237436 MohamedHamed123 D Aug. 21, 2022, 12:46 p.m. OK PyPy 3-64 TESTS 90 482 45158400
169350743 LFcowering D Aug. 22, 2022, 3:38 p.m. OK PyPy 3-64 TESTS 91 530 41062400
169351489 LFcowering D Aug. 22, 2022, 3:46 p.m. OK PyPy 3-64 TESTS 91 561 41062400
169208089 USYDLDH D Aug. 21, 2022, 7:17 a.m. OK PyPy 3-64 TESTS 90 576 70246400
169208246 USYDLDH D Aug. 21, 2022, 7:19 a.m. OK PyPy 3-64 TESTS 90 577 70246400
169187257 Issin D Aug. 21, 2022, 12:55 a.m. OK PyPy 3-64 TESTS 80 639 33484800
169270398 shiviDON D Aug. 21, 2022, 6:43 p.m. OK PyPy 3-64 TESTS 91 1434 142643200
169319042 NenadDapic D Aug. 22, 2022, 10 a.m. OK PyPy 3-64 TESTS 91 1435 79462400
169207808 Anti-Neutrino D Aug. 21, 2022, 7:13 a.m. OK PyPy 3-64 TESTS 90 1465 78028800
169207978 Anti-Neutrino D Aug. 21, 2022, 7:15 a.m. OK PyPy 3-64 TESTS 90 1466 78438400
169237496 MohamedHamed123 D Aug. 21, 2022, 12:47 p.m. OK Python 3 TESTS 90 1107 36249600
169243759 magnus.hegdahl D Aug. 21, 2022, 1:52 p.m. OK Rust 2021 TESTS 91 62 7372800
169240592 magnus.hegdahl D Aug. 21, 2022, 1:19 p.m. OK Rust 2021 TESTS 91 62 8396800
169239917 magnus.hegdahl D Aug. 21, 2022, 1:12 p.m. OK Rust 2021 TESTS 91 62 8396800
169239857 magnus.hegdahl D Aug. 21, 2022, 1:11 p.m. OK Rust 2021 TESTS 91 77 7372800
169201352 xttt D Aug. 21, 2022, 5:46 a.m. OK Rust 2021 TESTS 88 140 11878400
169388600 Svlad_Cjelli D Aug. 23, 2022, 5:28 a.m. OK Rust 2021 TESTS 91 249 15564800
169388452 Svlad_Cjelli D Aug. 23, 2022, 5:22 a.m. OK Rust 2021 TESTS 91 576 14540800

remove filters

Back to search problems