Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

5005
13360
Accepted
100

Subtask Results

Subtask no. Testdata Range Constraints Score
1 0~2 $N = 1$ 4 / 4
2 3~7 $1\leq N \leq \sum |S_i| \leq 20$ 6 / 6
3 3~17 $1\leq N \leq\sum |S_i| \leq 300$ 15 / 15
4 3~26 $1\leq N \leq\sum |S_i| \leq 3500$ 25 / 25
5 0~39 $1\leq N \leq\sum |S_i| \leq 2 \times 10^ 5$ 50 / 50

Testdata Results

Testdata no. Subtasks Time (ms) Memory (VSS, KiB) Memory (RSS, KiB) Verdict Score
0 1 5 0002.9 6360 3744 Accepted 100
1 1 5 0002.9 6360 3588 Accepted 100
2 1 5 0002.8 6360 3696 Accepted 100
3 2 3 4 5 0002.5 6208 3636 Accepted 100
4 2 3 4 5 0002.6 6208 3496 Accepted 100
5 2 3 4 5 0002.6 6208 3700 Accepted 100
6 2 3 4 5 0002.5 6208 3640 Accepted 100
7 2 3 4 5 0002.5 6208 3572 Accepted 100
8 3 4 5 0002.6 6208 3580 Accepted 100
9 3 4 5 0002.6 6208 3636 Accepted 100
10 3 4 5 0002.9 6208 3576 Accepted 100
11 3 4 5 0002.7 6208 3644 Accepted 100
12 3 4 5 0003.0 6208 3660 Accepted 100
13 3 4 5 0002.6 6208 3564 Accepted 100
14 3 4 5 0002.6 6208 3708 Accepted 100
15 3 4 5 0002.5 6208 3596 Accepted 100
16 3 4 5 0002.8 6208 3652 Accepted 100
17 3 4 5 0002.6 6208 3636 Accepted 100
18 4 5 0005.5 6208 3664 Accepted 100
19 4 5 0008.9 6344 3792 Accepted 100
20 4 5 0004.8 6208 3704 Accepted 100
21 4 5 0003.7 6208 3572 Accepted 100
22 4 5 0004.3 6208 3652 Accepted 100
23 4 5 0006.4 6352 3704 Accepted 100
24 4 5 0005.6 6208 3792 Accepted 100
25 4 5 0007.4 6340 3676 Accepted 100
26 4 5 0005.9 6348 3640 Accepted 100
27 5 0704.2 16980 12136 Accepted 100
28 5 0278.3 10608 7208 Accepted 100
29 5 0432.3 12716 8956 Accepted 100
30 5 0137.4 8460 5336 Accepted 100
31 5 0169.4 9188 5864 Accepted 100
32 5 0312.7 10860 7288 Accepted 100
33 5 0397.8 12332 8652 Accepted 100
34 5 0277.4 10580 7244 Accepted 100
35 5 0796.0 18236 13360 Accepted 100
36 5 0222.8 9864 6692 Accepted 100
37 5 0314.2 10488 7052 Accepted 100
38 5 0427.4 12088 8296 Accepted 100
39 5 0434.4 11068 7596 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
2.48 KB
Back to Top