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'You are given an array a consisting of 500000 integers (numbered from 1 to 500000 ). Initially all elements of a are zero. You have to process two types of queries to this array: Can you process all the queries? The first line contains one integer q ( 1 <= q <= 500000 ) -- the number of queries. Then q lines follow, each describing a query. The i -th line contains three integers t_i , x_i and y_i ( 1 <= t_i <= 2 ). If t_i = 1 , then it is a query of the first type, 1 <= x_i <= 500000 , and -1000 <= y_i <= 1000 . If t_i = 2 , then it it a query of the second type, 1 <= x_i <= 500000 , and 0 <= y_i < x_i . It is guaranteed that there will be at least one query of type 2 . For each query of type 2 print one integer -- the answer to it. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
59333347 |
benson1029 |
F |
Aug. 23, 2019, 2:52 a.m. |
OK |
FPC |
TESTS |
98 |
3493 |
4608000 |
|
2100 |
65605652 |
sayanmedya |
F |
Nov. 23, 2019, 8:32 p.m. |
OK |
GNU C11 |
TESTS |
98 |
3852 |
6041600 |
|
2100 |
59361510 |
okwedook |
F |
Aug. 23, 2019, 3:28 p.m. |
OK |
GNU C++11 |
TESTS |
98 |
654 |
2560000 |
|
2100 |
59338779 |
xuxuxuxuxu |
F |
Aug. 23, 2019, 6:32 a.m. |
OK |
GNU C++11 |
TESTS |
98 |
685 |
527155200 |
|
2100 |
59449121 |
LittleBeetle |
F |
Aug. 25, 2019, 2:35 p.m. |
OK |
GNU C++11 |
TESTS |
98 |
795 |
2457600 |
|
2100 |
59507013 |
jpxi |
F |
Aug. 26, 2019, 6:33 a.m. |
OK |
GNU C++11 |
TESTS |
98 |
810 |
2662400 |
|
2100 |
59649461 |
ChthollyTree |
F |
Aug. 29, 2019, 7:32 a.m. |
OK |
GNU C++11 |
TESTS |
98 |
826 |
6041600 |
|
2100 |
63958531 |
luogu_bot4 |
F |
Nov. 1, 2019, 3:40 a.m. |
OK |
GNU C++11 |
TESTS |
98 |
857 |
2867200 |
|
2100 |
59698745 |
lszxj |
F |
Aug. 30, 2019, 9:42 a.m. |
OK |
GNU C++11 |
TESTS |
98 |
889 |
2457600 |
|
2100 |
59487756 |
zlc1114 |
F |
Aug. 25, 2019, 6:06 p.m. |
OK |
GNU C++11 |
TESTS |
98 |
889 |
12083200 |
|
2100 |
59360674 |
patris |
F |
Aug. 23, 2019, 3:09 p.m. |
OK |
GNU C++11 |
TESTS |
98 |
904 |
2355200 |
|
2100 |
59698873 |
lszxj |
F |
Aug. 30, 2019, 9:45 a.m. |
OK |
GNU C++11 |
TESTS |
98 |
904 |
2867200 |
|
2100 |
67326720 |
nor |
F |
Dec. 21, 2019, 10:01 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
639 |
2457600 |
|
2100 |
67326711 |
nor |
F |
Dec. 21, 2019, 10:01 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
670 |
2457600 |
|
2100 |
67326561 |
nor |
F |
Dec. 21, 2019, 9:59 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
670 |
2457600 |
|
2100 |
67326486 |
nor |
F |
Dec. 21, 2019, 9:57 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
686 |
2457600 |
|
2100 |
67327011 |
nor |
F |
Dec. 21, 2019, 10:08 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
701 |
2457600 |
|
2100 |
67326697 |
nor |
F |
Dec. 21, 2019, 10:01 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
732 |
2355200 |
|
2100 |
67326658 |
nor |
F |
Dec. 21, 2019, 10 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
748 |
2457600 |
|
2100 |
67326815 |
nor |
F |
Dec. 21, 2019, 10:04 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
748 |
2457600 |
|
2100 |
67326804 |
nor |
F |
Dec. 21, 2019, 10:03 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
748 |
2457600 |
|
2100 |
67326789 |
nor |
F |
Dec. 21, 2019, 10:03 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
748 |
2457600 |
|
2100 |
59331356 |
neal |
F |
Aug. 23, 2019, 1:19 a.m. |
OK |
GNU C++17 |
TESTS |
98 |
624 |
2457600 |
|
2100 |
59331382 |
neal |
F |
Aug. 23, 2019, 1:21 a.m. |
OK |
GNU C++17 |
TESTS |
98 |
624 |
2457600 |
|
2100 |
59348328 |
lesskreker |
F |
Aug. 23, 2019, 10:44 a.m. |
OK |
GNU C++17 |
TESTS |
98 |
685 |
2662400 |
|
2100 |
59354657 |
cgiosy0 |
F |
Aug. 23, 2019, 1:05 p.m. |
OK |
GNU C++17 |
TESTS |
98 |
685 |
27750400 |
|
2100 |
59331108 |
neal |
F |
Aug. 23, 2019, 1:07 a.m. |
OK |
GNU C++17 |
TESTS |
98 |
701 |
2355200 |
|
2100 |
59331267 |
neal |
F |
Aug. 23, 2019, 1:15 a.m. |
OK |
GNU C++17 |
TESTS |
98 |
701 |
2355200 |
|
2100 |
59331135 |
neal |
F |
Aug. 23, 2019, 1:08 a.m. |
OK |
GNU C++17 |
TESTS |
98 |
702 |
2355200 |
|
2100 |
59331048 |
neal |
F |
Aug. 23, 2019, 1:04 a.m. |
OK |
GNU C++17 |
TESTS |
98 |
702 |
2355200 |
|
2100 |
59331340 |
neal |
F |
Aug. 23, 2019, 1:19 a.m. |
OK |
GNU C++17 |
TESTS |
98 |
702 |
2355200 |
|
2100 |
59331294 |
neal |
F |
Aug. 23, 2019, 1:16 a.m. |
OK |
GNU C++17 |
TESTS |
98 |
716 |
2355200 |
|
2100 |
59427595 |
avijit_agarwal |
F |
Aug. 25, 2019, 4 a.m. |
OK |
Java 8 |
TESTS |
98 |
1060 |
19046400 |
|
2100 |
59601838 |
aminul |
F |
Aug. 28, 2019, 6:29 a.m. |
OK |
Java 8 |
TESTS |
98 |
1075 |
0 |
|
2100 |
59370755 |
derrick20 |
F |
Aug. 23, 2019, 7:01 p.m. |
OK |
Java 8 |
TESTS |
98 |
1512 |
0 |
|
2100 |
60714403 |
Garrus |
F |
Sept. 17, 2019, 9:53 a.m. |
OK |
Java 8 |
TESTS |
98 |
1528 |
0 |
|
2100 |
59352099 |
Ahmad |
F |
Aug. 23, 2019, 12:12 p.m. |
OK |
Java 8 |
TESTS |
98 |
1528 |
0 |
|
2100 |
59646407 |
CrazyFlower |
F |
Aug. 29, 2019, 6:02 a.m. |
OK |
Java 8 |
TESTS |
98 |
1575 |
19558400 |
|
2100 |
59386030 |
iceburst |
F |
Aug. 24, 2019, 6:24 a.m. |
OK |
Java 8 |
TESTS |
98 |
1591 |
0 |
|
2100 |
59368290 |
guillermo_sz |
F |
Aug. 23, 2019, 6:02 p.m. |
OK |
Java 8 |
TESTS |
98 |
1591 |
0 |
|
2100 |
59427693 |
avijit_agarwal |
F |
Aug. 25, 2019, 4:06 a.m. |
OK |
Java 8 |
TESTS |
98 |
1591 |
19251200 |
|
2100 |
59974030 |
T_Nady |
F |
Sept. 4, 2019, 4:36 a.m. |
OK |
Java 8 |
TESTS |
98 |
1653 |
0 |
|
2100 |
59334665 |
benson1029 |
F |
Aug. 23, 2019, 3:48 a.m. |
OK |
JavaScript |
TESTS |
98 |
3899 |
13926400 |
|
2100 |
59846739 |
Spheniscine |
F |
Sept. 1, 2019, 9:48 a.m. |
OK |
Kotlin |
TESTS |
98 |
1872 |
19763200 |
|
2100 |
59366551 |
IgorSmirnov |
F |
Aug. 23, 2019, 5:24 p.m. |
OK |
Kotlin |
TESTS |
98 |
2121 |
21708800 |
|
2100 |
59675489 |
yakamoto |
F |
Aug. 29, 2019, 5:56 p.m. |
OK |
Kotlin |
TESTS |
98 |
2246 |
32460800 |
|
2100 |
59379566 |
Spheniscine |
F |
Aug. 24, 2019, 1:52 a.m. |
OK |
Kotlin |
TESTS |
98 |
2620 |
21811200 |
|
2100 |
59322001 |
amirrr |
F |
Aug. 22, 2019, 6:42 p.m. |
OK |
Kotlin |
TESTS |
98 |
2870 |
21708800 |
|
2100 |
59379657 |
Spheniscine |
F |
Aug. 24, 2019, 1:56 a.m. |
OK |
Kotlin |
TESTS |
98 |
2948 |
21913600 |
|
2100 |
59384851 |
og.kostya |
F |
Aug. 24, 2019, 5:51 a.m. |
OK |
Mono C# |
TESTS |
98 |
1341 |
6144000 |
|
2100 |
59338259 |
claw88 |
F |
Aug. 23, 2019, 6:19 a.m. |
OK |
Mono C# |
TESTS |
98 |
2713 |
9318400 |
|
2100 |
59370152 |
omikad |
F |
Aug. 23, 2019, 6:45 p.m. |
OK |
Mono C# |
TESTS |
98 |
3790 |
29184000 |
|
2100 |
60244240 |
vjudge1 |
F |
Sept. 8, 2019, 12:40 a.m. |
OK |
MS C++ |
TESTS |
98 |
1169 |
4096000 |
|
2100 |
63108641 |
vjudge2 |
F |
Oct. 22, 2019, 6:21 a.m. |
OK |
MS C++ |
TESTS |
98 |
1310 |
4608000 |
|
2100 |
60245141 |
vjudge1 |
F |
Sept. 8, 2019, 1:53 a.m. |
OK |
MS C++ |
TESTS |
98 |
1435 |
3072000 |
|
2100 |
60246057 |
vjudge3 |
F |
Sept. 8, 2019, 2:44 a.m. |
OK |
MS C++ |
TESTS |
98 |
2058 |
12083200 |
|
2100 |
60244695 |
vjudge5 |
F |
Sept. 8, 2019, 1:18 a.m. |
OK |
MS C++ |
TESTS |
98 |
2947 |
6144000 |
|
2100 |
64573189 |
vjudge1 |
F |
Nov. 9, 2019, 9:54 a.m. |
OK |
MS C++ |
TESTS |
98 |
2979 |
11980800 |
|
2100 |
60222619 |
vjudge2 |
F |
Sept. 7, 2019, 2:13 p.m. |
OK |
MS C++ |
TESTS |
98 |
3821 |
7987200 |
|
2100 |
60246019 |
vjudge4 |
F |
Sept. 8, 2019, 2:42 a.m. |
OK |
MS C++ |
TESTS |
98 |
3931 |
45670400 |
|
2100 |
60244963 |
vjudge2 |
F |
Sept. 8, 2019, 1:39 a.m. |
OK |
MS C++ |
TESTS |
98 |
3962 |
7987200 |
|
2100 |
63102079 |
vjudge3 |
F |
Oct. 22, 2019, 1:33 a.m. |
OK |
MS C++ 2017 |
TESTS |
98 |
1325 |
4096000 |
|
2100 |
59584601 |
CrashMaster |
F |
Aug. 27, 2019, 5:27 p.m. |
OK |
MS C++ 2017 |
TESTS |
98 |
1326 |
4505600 |
|
2100 |
60712053 |
pichulia |
F |
Sept. 17, 2019, 8:50 a.m. |
OK |
MS C++ 2017 |
TESTS |
98 |
1528 |
3993600 |
|
2100 |
59322463 |
j2v |
F |
Aug. 22, 2019, 6:54 p.m. |
OK |
MS C++ 2017 |
TESTS |
98 |
1528 |
4505600 |
|
2100 |
59422559 |
j2v |
F |
Aug. 24, 2019, 10:22 p.m. |
OK |
MS C++ 2017 |
TESTS |
98 |
1544 |
4812800 |
|
2100 |
59386507 |
yorky |
F |
Aug. 24, 2019, 6:37 a.m. |
OK |
MS C++ 2017 |
TESTS |
98 |
1699 |
3072000 |
|
2100 |
59322498 |
j2v |
F |
Aug. 22, 2019, 6:54 p.m. |
OK |
MS C++ 2017 |
TESTS |
98 |
1793 |
4812800 |
|
2100 |
61690239 |
min05 |
F |
Oct. 2, 2019, 5:27 a.m. |
OK |
MS C++ 2017 |
TESTS |
98 |
1809 |
3993600 |
|
2100 |
59322427 |
j2v |
F |
Aug. 22, 2019, 6:53 p.m. |
OK |
MS C++ 2017 |
TESTS |
98 |
1871 |
4812800 |
|
2100 |
59345730 |
TillEnd |
F |
Aug. 23, 2019, 9:35 a.m. |
OK |
MS C++ 2017 |
TESTS |
98 |
1996 |
44236800 |
|
2100 |
59344527 |
pajenegod |
F |
Aug. 23, 2019, 9:05 a.m. |
OK |
PyPy 2 |
TESTS |
98 |
2495 |
92467200 |
|
2100 |
59407536 |
erickjohnross |
F |
Aug. 24, 2019, 2:28 p.m. |
OK |
PyPy 3 |
TESTS |
98 |
3494 |
59699200 |
|
2100 |
59407847 |
erickjohnross |
F |
Aug. 24, 2019, 2:35 p.m. |
OK |
PyPy 3 |
TESTS |
98 |
3712 |
50073600 |
|
2100 |
59407673 |
erickjohnross |
F |
Aug. 24, 2019, 2:31 p.m. |
OK |
PyPy 3 |
TESTS |
98 |
3900 |
49766400 |
|
2100 |
59406998 |
erickjohnross |
F |
Aug. 24, 2019, 2:17 p.m. |
OK |
PyPy 3 |
TESTS |
98 |
3977 |
59801600 |
|
2100 |
59817881 |
brosucks |
F |
Aug. 31, 2019, 4:05 p.m. |
OK |
PyPy 3 |
TESTS |
98 |
3978 |
67788800 |
|
2100 |
59326729 |
sansen |
F |
Aug. 22, 2019, 9:08 p.m. |
OK |
Rust |
TESTS |
98 |
857 |
17100800 |
|
2100 |
59320342 |
sansen |
F |
Aug. 22, 2019, 6:07 p.m. |
OK |
Rust |
TESTS |
98 |
2027 |
18534400 |
|
2100 |
59373117 |
ValenKof |
F |
Aug. 23, 2019, 8:04 p.m. |
OK |
Rust |
TESTS |
98 |
2089 |
2355200 |
|
2100 |
59315602 |
arzk |
F |
Aug. 22, 2019, 4:51 p.m. |
OK |
Rust |
TESTS |
98 |
3962 |
8192000 |
|
2100 |
remove filters
Back to search problems