QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#139148#2670. Arranging shoesQwerty1232#45 25ms4896kbC++20369b2023-08-12 18:26:232024-07-04 01:39:47

Judging History

你现在查看的是最新测评结果

  • [2024-07-04 01:39:47]
  • 评测
  • 测评结果:45
  • 用时:25ms
  • 内存:4896kb
  • [2023-08-12 18:26:23]
  • 提交

answer

#include "shoes.h"

#include <algorithm>
#include <numeric>

long long count_swaps(std::vector<int> s) {
    int n = s.size() / 2;
    int64_t res = 0;
    for (int i = 0, c = 0; i < 2 * n; i++) {
        if (s[i] < 0) {
            int c2 = i - c;
            res += abs(c - c2);
        } else {
            c++;
        }
    }

    return res;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 1ms
memory: 3800kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
1
-1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 1ms
memory: 4088kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
1
1 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Subtask #2:

score: 0
Wrong Answer

Dependency #1:

100%
Accepted

Test #3:

score: 0
Wrong Answer
time: 1ms
memory: 4092kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 -2 2 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

wrong answer 3rd lines differ - expected: '2', found: '1'

Subtask #3:

score: 20
Accepted

Test #37:

score: 20
Accepted
time: 1ms
memory: 4100kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-2 -2 2 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #38:

score: 0
Accepted
time: 1ms
memory: 4052kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 1 -1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #39:

score: 0
Accepted
time: 1ms
memory: 3744kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 1 -1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #40:

score: 0
Accepted
time: 1ms
memory: 3788kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-2 -2 2 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #41:

score: 0
Accepted
time: 1ms
memory: 4088kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 1 1 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #42:

score: 0
Accepted
time: 1ms
memory: 3796kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
2 -2 -2 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #43:

score: 0
Accepted
time: 1ms
memory: 3796kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
1 1 -1 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
3

result:

ok 3 lines

Test #44:

score: 0
Accepted
time: 1ms
memory: 3776kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
2 -2 2 -2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
2

result:

ok 3 lines

Test #45:

score: 0
Accepted
time: 1ms
memory: 3792kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
1 1 -1 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
3

result:

ok 3 lines

Test #46:

score: 0
Accepted
time: 1ms
memory: 3808kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
3
2 -2 -2 2 -2 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #47:

score: 0
Accepted
time: 1ms
memory: 3800kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
8
-3 -3 -3 3 -3 -3 -3 3 3 3 3 3 3 3 -3 -3

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
15

result:

ok 3 lines

Test #48:

score: 0
Accepted
time: 1ms
memory: 4092kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
11
5 5 -5 5 5 -5 -5 5 5 -5 5 -5 -5 5 -5 -5 -5 -5 5 5 -5 5

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
19

result:

ok 3 lines

Test #49:

score: 0
Accepted
time: 1ms
memory: 3800kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
43
-35 -35 -35 35 35 -35 -35 -35 35 -35 35 -35 35 35 -35 35 35 -35 -35 35 35 35 -35 -35 -35 35 -35 35 -35 35 35 35 35 35 35 35 -35 35 -35 -35 -35 -35 35 35 35 35 -35 35 -35 35 35 -35 -35 -35 35 35 -35 35 -35 35 35 -35 35 35 35 35 -35 -35 -35 -35 -35 35 -35 -35 -3...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
117

result:

ok 3 lines

Test #50:

score: 0
Accepted
time: 1ms
memory: 3740kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
117
50 -50 -50 -50 50 50 -50 50 -50 -50 50 50 50 50 50 -50 -50 -50 50 -50 50 -50 50 50 50 50 50 50 50 -50 50 50 50 -50 -50 -50 50 50 -50 -50 50 50 50 -50 -50 -50 -50 -50 50 -50 50 -50 -50 50 -50 50 50 50 -50 50 -50 50 50 50 50 50 -50 50 50 -50 50 50 -50 50 -50 -5...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1000

result:

ok 3 lines

Test #51:

score: 0
Accepted
time: 1ms
memory: 3848kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
304
-44 -44 44 44 44 -44 -44 44 44 44 44 -44 -44 -44 44 -44 44 44 -44 -44 44 44 44 -44 -44 -44 -44 44 -44 44 -44 44 44 -44 -44 -44 44 44 -44 44 44 44 -44 -44 44 44 44 44 44 -44 44 44 -44 -44 -44 44 -44 44 -44 44 -44 -44 -44 -44 -44 -44 -44 44 -44 -44 44 44 -44 -4...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1711

result:

ok 3 lines

Test #52:

score: 0
Accepted
time: 1ms
memory: 4068kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
999
-636 636 636 -636 636 636 -636 636 -636 636 -636 636 -636 636 -636 636 -636 636 -636 -636 -636 636 636 -636 -636 -636 636 -636 636 -636 -636 -636 -636 636 -636 -636 636 -636 636 636 -636 -636 -636 636 -636 -636 -636 -636 636 636 636 636 636 -636 -636 -636 -63...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
19586

result:

ok 3 lines

Test #53:

score: 0
Accepted
time: 1ms
memory: 3804kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
1001
-498 -498 -498 -498 -498 -498 -498 -498 -498 -498 -498 498 -498 -498 -498 -498 498 -498 -498 -498 498 -498 498 498 498 498 -498 498 -498 498 -498 -498 498 -498 -498 498 -498 498 -498 -498 498 -498 498 498 498 498 -498 -498 -498 498 498 -498 -498 498 -498 -49...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
29174

result:

ok 3 lines

Test #54:

score: 0
Accepted
time: 0ms
memory: 3952kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
9998
-1466 1466 1466 1466 1466 1466 -1466 1466 1466 -1466 1466 1466 1466 1466 -1466 -1466 1466 1466 -1466 1466 -1466 -1466 1466 -1466 1466 -1466 -1466 1466 -1466 1466 -1466 -1466 -1466 -1466 1466 1466 1466 1466 -1466 -1466 -1466 -1466 -1466 -1466 -1466 1466 -1466...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
434563

result:

ok 3 lines

Test #55:

score: 0
Accepted
time: 3ms
memory: 3924kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
10003
-9391 -9391 9391 9391 -9391 -9391 -9391 9391 9391 9391 -9391 -9391 9391 -9391 9391 -9391 -9391 -9391 -9391 9391 -9391 9391 -9391 9391 -9391 -9391 9391 -9391 -9391 9391 9391 9391 9391 -9391 -9391 -9391 -9391 -9391 9391 -9391 -9391 -9391 9391 -9391 -9391 9391...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
662066

result:

ok 3 lines

Test #56:

score: 0
Accepted
time: 24ms
memory: 4684kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99999
-20650 -20650 20650 20650 -20650 -20650 -20650 20650 20650 20650 -20650 -20650 20650 20650 20650 20650 20650 20650 -20650 20650 20650 -20650 20650 20650 20650 20650 20650 -20650 20650 20650 20650 -20650 -20650 20650 20650 -20650 -20650 20650 20650 20650 206...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
9148558

result:

ok 3 lines

Test #57:

score: 0
Accepted
time: 22ms
memory: 4732kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #58:

score: 0
Accepted
time: 24ms
memory: 4684kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
26704 -26704 -26704 26704 26704 -26704 26704 -26704 26704 -26704 26704 -26704 26704 -26704 -26704 26704 -26704 26704 -26704 26704 -26704 26704 -26704 26704 26704 -26704 -26704 26704 -26704 -26704 -26704 -26704 26704 26704 -26704 26704 26704 -26704 26704 26...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1233583

result:

ok 3 lines

Test #59:

score: 0
Accepted
time: 22ms
memory: 4748kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #60:

score: 0
Accepted
time: 25ms
memory: 4748kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
59471 59471 -59471 -59471 59471 59471 59471 59471 59471 -59471 -59471 -59471 59471 59471 -59471 59471 59471 -59471 59471 -59471 59471 -59471 -59471 -59471 -59471 59471 -59471 59471 -59471 59471 59471 59471 59471 59471 59471 59471 -59471 59471 59471 -59471 ...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
7651686

result:

ok 3 lines

Test #61:

score: 0
Accepted
time: 21ms
memory: 4716kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 309...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
100000

result:

ok 3 lines

Test #62:

score: 0
Accepted
time: 22ms
memory: 4764kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 2937...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #63:

score: 0
Accepted
time: 22ms
memory: 4748kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 2937...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #64:

score: 0
Accepted
time: 18ms
memory: 4756kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 9015...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #65:

score: 0
Accepted
time: 23ms
memory: 4896kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-50400 -50400 50400 -50400 50400 50400 50400 -50400 50400 50400 -50400 -50400 -50400 50400 -50400 -50400 50400 50400 -50400 50400 -50400 -50400 -50400 -50400 50400 -50400 50400 50400 -50400 50400 -50400 50400 50400 -50400 50400 50400 -50400 -50400 50400 50...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
8109181

result:

ok 3 lines

Test #66:

score: 0
Accepted
time: 14ms
memory: 4748kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -335...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999950000

result:

ok 3 lines

Test #67:

score: 0
Accepted
time: 20ms
memory: 4772kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #68:

score: 0
Accepted
time: 22ms
memory: 4668kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 1302...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #69:

score: 0
Accepted
time: 1ms
memory: 3868kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
1
-1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #70:

score: 0
Accepted
time: 1ms
memory: 4088kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-2 -2 2 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #71:

score: 0
Accepted
time: 22ms
memory: 4764kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99998
-54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -5458...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999750003

result:

ok 3 lines

Test #72:

score: 0
Accepted
time: 22ms
memory: 4684kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99999
-30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -3046...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999850001

result:

ok 3 lines

Test #73:

score: 0
Accepted
time: 18ms
memory: 4684kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -452...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999950000

result:

ok 3 lines

Subtask #4:

score: 15
Accepted

Test #74:

score: 15
Accepted
time: 0ms
memory: 3740kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
1
-1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #75:

score: 0
Accepted
time: 1ms
memory: 3796kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 -2 1 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #76:

score: 0
Accepted
time: 1ms
memory: 3796kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-2 -1 2 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #77:

score: 0
Accepted
time: 1ms
memory: 3792kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 -1 1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #78:

score: 0
Accepted
time: 22ms
memory: 4748kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99998
-93375 -85998 -57472 -57320 -92144 -31526 -99604 -77181 -65443 -97629 -29716 -1904 -93293 -41761 -55949 -50927 -80082 -21357 -51929 -54 -33477 -36300 -49484 -70830 -98314 -40123 -79568 -89806 -90528 -51711 -49394 -2023 -42435 -61625 -61156 -82943 -47590 -69...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999750003

result:

ok 3 lines

Test #79:

score: 0
Accepted
time: 22ms
memory: 4768kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99998
-64484 -91038 -41308 -72712 -1564 -32642 -74991 -79372 -45318 -52023 -67151 -54049 -15705 -93770 -50858 -870 -77097 -19597 -37947 -54404 -36480 -50724 -53983 -59165 -98143 -39237 -2885 -32028 -44812 -25799 -96194 -55733 -39060 -13916 -50000 -79991 -2581 -10...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999750003

result:

ok 3 lines

Test #80:

score: 0
Accepted
time: 22ms
memory: 4880kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99999
-36895 -21252 -33272 -64005 -86598 -9597 -5512 -30508 -26724 -96513 -20778 -45208 -17858 -62202 -26096 -327 -58206 -18274 -97082 -70650 -96288 -97762 -77475 -40197 -33023 -89009 -73569 -12157 -57905 -50207 -78508 -26168 -35060 -45556 -93784 -78602 -5052 -22...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999850001

result:

ok 3 lines

Test #81:

score: 0
Accepted
time: 18ms
memory: 4716kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99999
-36659 -36659 -36659 -62235 -62235 -91177 -91177 -91177 -36659 -36659 -91177 -36659 -36659 -36659 -36659 -91177 -36659 -91177 -62235 -62235 -36659 -36659 -36659 -91177 -62235 -91177 -62235 -62235 -62235 -36659 -91177 -36659 -36659 -36659 -91177 -62235 -3665...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999850001

result:

ok 3 lines

Test #82:

score: 0
Accepted
time: 22ms
memory: 4892kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-4281 -88522 -73487 -80899 -25596 -23936 -5985 -80611 -91620 -63357 -2064 -5363 -5917 -83932 -25745 -67340 -51599 -48609 -50123 -28748 -14761 -68746 -22980 -35585 -29712 -89969 -30212 -84883 -7751 -2359 -22767 -84996 -42365 -23762 -94042 -88836 -54106 -755...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999950000

result:

ok 3 lines

Test #83:

score: 0
Accepted
time: 22ms
memory: 4832kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-82132 -5681 -82990 -92746 -50800 -22168 -28188 -80457 -35022 -36303 -88257 -92502 -8705 -42712 -42152 -43002 -73712 -86254 -26337 -27675 -16197 -24533 -39542 -29082 -28230 -91472 -50450 -72792 -26143 -17635 -56968 -42956 -60262 -77887 -73872 -72632 -56028...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999950000

result:

ok 3 lines

Subtask #5:

score: 0
Skipped

Dependency #2:

0%

Subtask #6:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%