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.
Problems
B'This is an easy 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 . 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
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
219042295 |
bashunowant |
E1 |
Aug. 16, 2023, 2:25 a.m. |
OK |
GNU C++14 |
TESTS |
62 |
420 |
32051200 |
|
2500 |
219051896 |
haimian |
E1 |
Aug. 16, 2023, 4:09 a.m. |
OK |
GNU C++14 |
TESTS |
62 |
452 |
36044800 |
|
2500 |
219031136 |
kunkun2007 |
E1 |
Aug. 15, 2023, 11:41 p.m. |
OK |
GNU C++14 |
TESTS |
62 |
468 |
164249600 |
|
2500 |
219055343 |
Z00GlE |
E1 |
Aug. 16, 2023, 4:55 a.m. |
OK |
GNU C++14 |
TESTS |
62 |
498 |
42086400 |
|
2500 |
219012744 |
sakurasonic |
E1 |
Aug. 15, 2023, 6:25 p.m. |
OK |
GNU C++14 |
TESTS |
62 |
546 |
132300800 |
|
2500 |
219057162 |
Syara__ |
E1 |
Aug. 16, 2023, 5:16 a.m. |
OK |
GNU C++14 |
TESTS |
62 |
577 |
77414400 |
|
2500 |
219046723 |
Leasier |
E1 |
Aug. 16, 2023, 3:04 a.m. |
OK |
GNU C++14 |
TESTS |
62 |
608 |
36044800 |
|
2500 |
219046913 |
Leasier |
E1 |
Aug. 16, 2023, 3:06 a.m. |
OK |
GNU C++14 |
TESTS |
62 |
623 |
36044800 |
|
2500 |
219045831 |
QZJ114514 |
E1 |
Aug. 16, 2023, 2:57 a.m. |
OK |
GNU C++14 |
TESTS |
62 |
639 |
76390400 |
|
2500 |
219053693 |
mfgujhgh |
E1 |
Aug. 16, 2023, 4:34 a.m. |
OK |
GNU C++14 |
TESTS |
62 |
670 |
89292800 |
|
2500 |
219011069 |
VegJJJy |
E1 |
Aug. 15, 2023, 6:09 p.m. |
OK |
GNU C++17 |
TESTS |
62 |
327 |
72192000 |
|
2500 |
219053248 |
youthPaul |
E1 |
Aug. 16, 2023, 4:28 a.m. |
OK |
GNU C++17 |
TESTS |
62 |
358 |
37273600 |
|
2500 |
219030329 |
patou |
E1 |
Aug. 15, 2023, 11:17 p.m. |
OK |
GNU C++17 |
TESTS |
62 |
498 |
150425600 |
|
2500 |
219002813 |
pooty |
E1 |
Aug. 15, 2023, 5:09 p.m. |
OK |
GNU C++17 |
TESTS |
62 |
545 |
129331200 |
|
2500 |
218999627 |
rfhalb |
E1 |
Aug. 15, 2023, 4:34 p.m. |
OK |
GNU C++17 |
TESTS |
62 |
561 |
144998400 |
|
2500 |
219046233 |
lemelisk |
E1 |
Aug. 16, 2023, 3 a.m. |
OK |
GNU C++17 |
TESTS |
62 |
592 |
45056000 |
|
2500 |
219014551 |
celin |
E1 |
Aug. 15, 2023, 6:45 p.m. |
OK |
GNU C++17 |
TESTS |
62 |
592 |
64921600 |
|
2500 |
219026116 |
liympanda |
E1 |
Aug. 15, 2023, 9:25 p.m. |
OK |
GNU C++17 |
TESTS |
62 |
654 |
30515200 |
|
2500 |
219003305 |
pcsh_scream_chicken |
E1 |
Aug. 15, 2023, 5:12 p.m. |
OK |
GNU C++17 |
TESTS |
62 |
670 |
84787200 |
|
2500 |
219004018 |
Ststone |
E1 |
Aug. 15, 2023, 5:15 p.m. |
OK |
GNU C++17 |
TESTS |
62 |
685 |
84787200 |
|
2500 |
219052224 |
suomynonA |
E1 |
Aug. 16, 2023, 4:14 a.m. |
OK |
GNU C++17 (64) |
TESTS |
62 |
249 |
33689600 |
|
2500 |
219004057 |
poyon |
E1 |
Aug. 15, 2023, 5:15 p.m. |
OK |
GNU C++17 (64) |
TESTS |
62 |
421 |
218624000 |
|
2500 |
219044588 |
gqf123 |
E1 |
Aug. 16, 2023, 2:46 a.m. |
OK |
GNU C++17 (64) |
TESTS |
62 |
483 |
182579200 |
|
2500 |
219046824 |
YaoLingF |
E1 |
Aug. 16, 2023, 3:05 a.m. |
OK |
GNU C++17 (64) |
TESTS |
62 |
514 |
240435200 |
|
2500 |
219046966 |
YaoLingF |
E1 |
Aug. 16, 2023, 3:06 a.m. |
OK |
GNU C++17 (64) |
TESTS |
62 |
561 |
240435200 |
|
2500 |
219014426 |
devinqu |
E1 |
Aug. 15, 2023, 6:43 p.m. |
OK |
GNU C++17 (64) |
TESTS |
62 |
686 |
220467200 |
|
2500 |
218998871 |
triple__a |
E1 |
Aug. 15, 2023, 4:33 p.m. |
OK |
GNU C++17 (64) |
TESTS |
62 |
701 |
113356800 |
|
2500 |
218997963 |
BigTheta |
E1 |
Aug. 15, 2023, 4:32 p.m. |
OK |
GNU C++17 (64) |
TESTS |
62 |
732 |
260812800 |
|
2500 |
219002150 |
FuDiWeiu |
E1 |
Aug. 15, 2023, 5:06 p.m. |
OK |
GNU C++17 (64) |
TESTS |
62 |
763 |
244531200 |
|
2500 |
219037835 |
secret-550504 |
E1 |
Aug. 16, 2023, 1:45 a.m. |
OK |
GNU C++17 (64) |
TESTS |
62 |
842 |
240640000 |
|
2500 |
219013604 |
SATSKY |
E1 |
Aug. 15, 2023, 6:34 p.m. |
OK |
GNU C++20 (64) |
TESTS |
62 |
218 |
38502400 |
|
2500 |
219002827 |
jiangh0_o |
E1 |
Aug. 15, 2023, 5:09 p.m. |
OK |
GNU C++20 (64) |
TESTS |
62 |
233 |
38400000 |
|
2500 |
219005621 |
ecnerwala |
E1 |
Aug. 15, 2023, 5:25 p.m. |
OK |
GNU C++20 (64) |
TESTS |
62 |
233 |
96256000 |
|
2500 |
219044916 |
hhhyh |
E1 |
Aug. 16, 2023, 2:49 a.m. |
OK |
GNU C++20 (64) |
TESTS |
62 |
249 |
75571200 |
|
2500 |
219046080 |
lemelisk |
E1 |
Aug. 16, 2023, 2:59 a.m. |
OK |
GNU C++20 (64) |
TESTS |
62 |
249 |
86016000 |
|
2500 |
219012738 |
lemelisk |
E1 |
Aug. 15, 2023, 6:25 p.m. |
OK |
GNU C++20 (64) |
TESTS |
62 |
249 |
86016000 |
|
2500 |
219008803 |
ecnerwala |
E1 |
Aug. 15, 2023, 5:50 p.m. |
OK |
GNU C++20 (64) |
TESTS |
62 |
249 |
96256000 |
|
2500 |
219045677 |
hhhyh |
E1 |
Aug. 16, 2023, 2:55 a.m. |
OK |
GNU C++20 (64) |
TESTS |
62 |
264 |
75571200 |
|
2500 |
219049381 |
LipArcanjo |
E1 |
Aug. 16, 2023, 3:36 a.m. |
OK |
GNU C++20 (64) |
TESTS |
62 |
280 |
50278400 |
|
2500 |
219012502 |
ItsLastDay |
E1 |
Aug. 15, 2023, 6:23 p.m. |
OK |
GNU C++20 (64) |
TESTS |
62 |
342 |
141107200 |
|
2500 |
218994609 |
misorin |
E1 |
Aug. 15, 2023, 4:26 p.m. |
OK |
PyPy 3 |
TESTS |
62 |
966 |
169267200 |
|
2500 |
219005702 |
Little_Sheep_Yawn |
E1 |
Aug. 15, 2023, 5:26 p.m. |
OK |
PyPy 3-64 |
TESTS |
62 |
811 |
197427200 |
|
2500 |
219016661 |
conqueror_of_womais |
E1 |
Aug. 15, 2023, 7:08 p.m. |
OK |
PyPy 3-64 |
TESTS |
62 |
1263 |
251392000 |
|
2500 |
remove filters
Back to search problems