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'William has an array of non-negative numbers a_1, a_2, ... , a_n . He wants you to find out how many segments l <= r pass the check. The check is performed in the following manner: The first line contains a single integer n ( 1 <= n <= 10^6 ), the size of array a . The second line contains n integers a_1, a_2, ... , a_n ( 0 <= a_i <= 10^{18} ), the contents of array a . Output a single number -- the total number of segments that passed the check. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
137267556 |
happyguy656 |
F |
Nov. 28, 2021, 5:04 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
748 |
48640000 |
|
2800 |
137273444 |
Grzmot |
F |
Nov. 28, 2021, 6:20 p.m. |
OK |
GNU C++14 |
TESTS |
31 |
763 |
48128000 |
|
2800 |
137261344 |
_xyj |
F |
Nov. 28, 2021, 4:37 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
811 |
40038400 |
|
2800 |
137263709 |
Chinese_zjc_ |
F |
Nov. 28, 2021, 4:48 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
1013 |
7987200 |
|
2800 |
137289093 |
MagicSpark |
F |
Nov. 29, 2021, 2:23 a.m. |
OK |
GNU C++14 |
TESTS |
31 |
1044 |
51609600 |
|
2800 |
137270728 |
Kaycee |
F |
Nov. 28, 2021, 5:45 p.m. |
OK |
GNU C++14 |
TESTS |
31 |
1076 |
28057600 |
|
2800 |
137309654 |
A_M--Unstoppable |
F |
Nov. 29, 2021, 4:58 a.m. |
OK |
GNU C++17 |
TESTS |
31 |
374 |
53350400 |
|
2800 |
137272646 |
serotonin |
F |
Nov. 28, 2021, 6:09 p.m. |
OK |
GNU C++17 |
TESTS |
31 |
607 |
41574400 |
|
2800 |
137272294 |
serotonin |
F |
Nov. 28, 2021, 6:04 p.m. |
OK |
GNU C++17 |
TESTS |
31 |
623 |
41676800 |
|
2800 |
137261864 |
alexxela12345 |
F |
Nov. 28, 2021, 4:39 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
638 |
53862400 |
|
2800 |
137282980 |
Nson |
F |
Nov. 28, 2021, 9:55 p.m. |
OK |
GNU C++17 |
TESTS |
31 |
654 |
28057600 |
|
2800 |
137252722 |
he_____hezhou |
F |
Nov. 28, 2021, 4 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
655 |
22425600 |
|
2800 |
137253359 |
Torta |
F |
Nov. 28, 2021, 4:02 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
655 |
34918400 |
|
2800 |
137264448 |
aropan |
F |
Nov. 28, 2021, 4:52 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
670 |
61644800 |
|
2800 |
137282907 |
Nson |
F |
Nov. 28, 2021, 9:53 p.m. |
OK |
GNU C++17 |
TESTS |
31 |
686 |
28057600 |
|
2800 |
137282774 |
Nson |
F |
Nov. 28, 2021, 9:48 p.m. |
OK |
GNU C++17 |
TESTS |
31 |
686 |
28057600 |
|
2800 |
137262103 |
SSHS |
F |
Nov. 28, 2021, 4:41 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
436 |
44236800 |
|
2800 |
137269465 |
w0nsh |
F |
Nov. 28, 2021, 5:35 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
498 |
75161600 |
|
2800 |
137261214 |
HJKL1018 |
F |
Nov. 28, 2021, 4:36 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
498 |
260505600 |
|
2800 |
137261839 |
Endagorion |
F |
Nov. 28, 2021, 4:39 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
514 |
44134400 |
|
2800 |
137256821 |
satashun |
F |
Nov. 28, 2021, 4:16 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
529 |
48128000 |
|
2800 |
137265640 |
golikovnik |
F |
Nov. 28, 2021, 4:57 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
592 |
84172800 |
|
2800 |
137288613 |
He_Ren |
F |
Nov. 29, 2021, 2:05 a.m. |
OK |
GNU C++17 (64) |
TESTS |
31 |
670 |
58163200 |
|
2800 |
137262362 |
Barichek |
F |
Nov. 28, 2021, 4:42 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
686 |
24064000 |
|
2800 |
137254312 |
natsugiri |
F |
Nov. 28, 2021, 4:06 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
686 |
35635200 |
|
2800 |
137281258 |
errorgorn |
F |
Nov. 28, 2021, 8:58 p.m. |
OK |
GNU C++17 (64) |
TESTS |
31 |
701 |
180326400 |
|
2800 |
137271450 |
.__. |
F |
Nov. 28, 2021, 5:53 p.m. |
OK |
GNU C++20 (64) |
TESTS |
31 |
124 |
65638400 |
|
2800 |
137271345 |
.__. |
F |
Nov. 28, 2021, 5:52 p.m. |
OK |
GNU C++20 (64) |
TESTS |
31 |
124 |
65638400 |
|
2800 |
137271329 |
.__. |
F |
Nov. 28, 2021, 5:52 p.m. |
OK |
GNU C++20 (64) |
TESTS |
31 |
140 |
99328000 |
|
2800 |
137270775 |
.__. |
F |
Nov. 28, 2021, 5:46 p.m. |
OK |
GNU C++20 (64) |
TESTS |
31 |
249 |
31539200 |
|
2800 |
137269920 |
.__. |
F |
Nov. 28, 2021, 5:38 p.m. |
OK |
GNU C++20 (64) |
TESTS |
30 |
265 |
31539200 |
|
2800 |
137259934 |
.__. |
F |
Nov. 28, 2021, 4:30 p.m. |
OK |
GNU C++20 (64) |
TESTS |
30 |
265 |
31539200 |
|
2800 |
137269740 |
.__. |
F |
Nov. 28, 2021, 5:37 p.m. |
OK |
GNU C++20 (64) |
TESTS |
30 |
296 |
31539200 |
|
2800 |
137256642 |
receed |
F |
Nov. 28, 2021, 4:16 p.m. |
OK |
GNU C++20 (64) |
TESTS |
30 |
358 |
46489600 |
|
2800 |
137255439 |
Amoo_Safar |
F |
Nov. 28, 2021, 4:10 p.m. |
OK |
GNU C++20 (64) |
TESTS |
30 |
420 |
32051200 |
|
2800 |
137267322 |
minhcool |
F |
Nov. 28, 2021, 5:04 p.m. |
OK |
GNU C++20 (64) |
TESTS |
30 |
420 |
82841600 |
|
2800 |
137276807 |
mmaxio |
F |
Nov. 28, 2021, 7:16 p.m. |
OK |
Java 11 |
TESTS |
31 |
1949 |
32358400 |
|
2800 |
137258858 |
sansen |
F |
Nov. 28, 2021, 4:25 p.m. |
OK |
Rust |
TESTS |
30 |
810 |
213913600 |
|
2800 |
137275232 |
sansen |
F |
Nov. 28, 2021, 6:48 p.m. |
OK |
Rust |
TESTS |
31 |
826 |
249446400 |
|
2800 |
137262174 |
qwerty787788 |
F |
Nov. 28, 2021, 4:41 p.m. |
OK |
Rust |
TESTS |
30 |
982 |
234393600 |
|
2800 |
137278457 |
sansen |
F |
Nov. 28, 2021, 7:52 p.m. |
OK |
Rust 2021 |
TESTS |
31 |
654 |
113766400 |
|
2800 |
137276981 |
sansen |
F |
Nov. 28, 2021, 7:20 p.m. |
OK |
Rust 2021 |
TESTS |
31 |
795 |
213913600 |
|
2800 |
remove filters
Back to search problems