Codeforces Round 893 (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
1858 Codeforces Round 893 (Div. 2) FINISHED False 7200 45069863 Aug. 15, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1093 ) E2 Rollbacks (Hard Version) PROGRAMMING bitmasks data structures interactive trees 2600

B"This is a hard version of this problem. The only difference between the versions is that you have to solve the hard version in online mode. You can make hacks only if both versions of the problem are solved. You have an array a , which is initially empty. You need to process queries of the following types: The first line contains an integer q ( 1 <= q q <= q 10^6 ) -- the number of queries. The next q lines contain the queries as described above. It is guaranteed that It is also guaranteed that the number of queries of the fourth type (?) does not exceed 10^5 . Note that you should solve the problem in online mode. It means that you can't read the whole input at once. You can read each query only after writing the answer for the last query, so don't forget to flush output after printing answers. You can use functions like fflush(stdout) in C++ and BufferedWriter.flush in Java or similar after each writing in your program. For each query of the fourth type output one integer -- the number of distinct elements in array a at the moment of query. In the first example array a changes as follows: In the second example array a changes as follows: "...

Tutorials

Codeforces Round #893 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
219051939 haimian E2 Aug. 16, 2023, 4:10 a.m. OK GNU C++14 TESTS 62 1091 36044800 2600
219042319 bashunowant E2 Aug. 16, 2023, 2:25 a.m. OK GNU C++14 TESTS 62 1138 32051200 2600
219012771 sakurasonic E2 Aug. 15, 2023, 6:25 p.m. OK GNU C++14 TESTS 62 1138 132300800 2600
219046961 Leasier E2 Aug. 16, 2023, 3:06 a.m. OK GNU C++14 TESTS 62 1247 36044800 2600
219057268 Syara__ E2 Aug. 16, 2023, 5:17 a.m. OK GNU C++14 TESTS 62 1263 77414400 2600
219046814 Leasier E2 Aug. 16, 2023, 3:05 a.m. OK GNU C++14 TESTS 62 1278 36044800 2600
219054025 zltzlt E2 Aug. 16, 2023, 4:38 a.m. OK GNU C++14 TESTS 62 1356 104448000 2600
219045911 QZJ114514 E2 Aug. 16, 2023, 2:57 a.m. OK GNU C++14 TESTS 62 1418 76390400 2600
219044245 luogu_bot3 E2 Aug. 16, 2023, 2:43 a.m. OK GNU C++14 TESTS 62 1419 260505600 2600
219030348 pengyantong E2 Aug. 15, 2023, 11:17 p.m. OK GNU C++14 TESTS 62 1450 261120000 2600
219023085 patou E2 Aug. 15, 2023, 8:31 p.m. OK GNU C++17 TESTS 62 966 46899200 2600
219011427 VegJJJy E2 Aug. 15, 2023, 6:12 p.m. OK GNU C++17 TESTS 62 967 72192000 2600
219023500 patou E2 Aug. 15, 2023, 8:37 p.m. OK GNU C++17 TESTS 62 1075 46899200 2600
219029044 Raiden E2 Aug. 15, 2023, 10:38 p.m. OK GNU C++17 TESTS 62 1107 80076800 2600
219014515 celin E2 Aug. 15, 2023, 6:44 p.m. OK GNU C++17 TESTS 62 1122 64921600 2600
219003792 Ststone E2 Aug. 15, 2023, 5:14 p.m. OK GNU C++17 TESTS 62 1122 84787200 2600
219003501 pcsh_scream_chicken E2 Aug. 15, 2023, 5:12 p.m. OK GNU C++17 TESTS 62 1122 84787200 2600
219026124 liympanda E2 Aug. 15, 2023, 9:25 p.m. OK GNU C++17 TESTS 62 1138 30515200 2600
219043771 Dominater069 E2 Aug. 16, 2023, 2:39 a.m. OK GNU C++17 TESTS 62 1201 133324800 2600
219002418 fallleaves07 E2 Aug. 15, 2023, 5:07 p.m. OK GNU C++17 TESTS 62 1201 168038400 2600
219052246 suomynonA E2 Aug. 16, 2023, 4:14 a.m. OK GNU C++17 (64) TESTS 62 873 33689600 2600
219031930 JCY_ E2 Aug. 16, 2023, 12:01 a.m. OK GNU C++17 (64) TESTS 62 919 36044800 2600
219035037 cqbzly E2 Aug. 16, 2023, 1:05 a.m. OK GNU C++17 (64) TESTS 62 1091 37683200 2600
219044223 Bucketsmith E2 Aug. 16, 2023, 2:43 a.m. OK GNU C++17 (64) TESTS 62 1107 117657600 2600
219003194 kotatsugame E2 Aug. 15, 2023, 5:11 p.m. OK GNU C++17 (64) TESTS 62 1169 113766400 2600
218998573 triple__a E2 Aug. 15, 2023, 4:33 p.m. OK GNU C++17 (64) TESTS 62 1231 113356800 2600
219035925 qq_orange E2 Aug. 16, 2023, 1:18 a.m. OK GNU C++17 (64) TESTS 62 1279 120934400 2600
219059106 stan23456 E2 Aug. 16, 2023, 5:37 a.m. OK GNU C++17 (64) TESTS 62 1294 112742400 2600
219018293 kondasujay2 E2 Aug. 15, 2023, 7:27 p.m. OK GNU C++17 (64) TESTS 62 1310 141209600 2600
219049077 secret-550504 E2 Aug. 16, 2023, 3:33 a.m. OK GNU C++17 (64) TESTS 62 1325 112742400 2600
219014618 SATSKY E2 Aug. 15, 2023, 6:46 p.m. OK GNU C++20 (64) TESTS 62 826 49152000 2600
219014205 SATSKY E2 Aug. 15, 2023, 6:41 p.m. OK GNU C++20 (64) TESTS 62 842 49152000 2600
219014354 SATSKY E2 Aug. 15, 2023, 6:43 p.m. OK GNU C++20 (64) TESTS 62 857 49152000 2600
219005603 ecnerwala E2 Aug. 15, 2023, 5:25 p.m. OK GNU C++20 (64) TESTS 62 857 96256000 2600
219054101 overnap E2 Aug. 16, 2023, 4:39 a.m. OK GNU C++20 (64) TESTS 62 858 48947200 2600
219005194 SATSKY E2 Aug. 15, 2023, 5:22 p.m. OK GNU C++20 (64) TESTS 62 873 38502400 2600
219006797 SATSKY E2 Aug. 15, 2023, 5:34 p.m. OK GNU C++20 (64) TESTS 62 888 38502400 2600
219060291 Setsuna E2 Aug. 16, 2023, 5:51 a.m. OK GNU C++20 (64) TESTS 62 888 47104000 2600
219005477 ecnerwala E2 Aug. 15, 2023, 5:24 p.m. OK GNU C++20 (64) TESTS 62 888 80179200 2600
219008236 RDDCCD E2 Aug. 15, 2023, 5:45 p.m. OK GNU C++20 (64) TESTS 62 888 113971200 2600
219016293 __liz__ E2 Aug. 15, 2023, 7:04 p.m. OK MS C++ 2017 TESTS 62 1934 188416000 2600
219010250 misorin E2 Aug. 15, 2023, 6:02 p.m. OK PyPy 3 TESTS 62 2526 178073600 2600
219015397 misorin E2 Aug. 15, 2023, 6:54 p.m. OK PyPy 3 TESTS 62 2979 169779200 2600
219017271 misorin E2 Aug. 15, 2023, 7:15 p.m. OK PyPy 3-64 TESTS 62 2417 215040000 2600
219032917 magnus.hegdahl E2 Aug. 16, 2023, 12:23 a.m. OK Rust 2021 TESTS 62 2683 183603200 2600
219032872 magnus.hegdahl E2 Aug. 16, 2023, 12:22 a.m. OK Rust 2021 TESTS 62 2963 238489600 2600

remove filters

Back to search problems