QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#524500#2670. Arranging shoesarbuzick#30 72ms17144kbC++201.9kb2024-08-19 18:36:382024-08-19 18:36:39

Judging History

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

  • [2024-08-19 18:36:39]
  • 评测
  • 测评结果:30
  • 用时:72ms
  • 内存:17144kb
  • [2024-08-19 18:36:38]
  • 提交

answer

#include "shoes.h"

#include <bits/stdc++.h>

using namespace std;

struct Fenwick {
    int n;
    vector<int> f;

    Fenwick(int _n) {
        n = _n;
        f.assign(n, 0);
    }

    void add(int pos, int val) {
        for (int i = pos; i < n; i += i & -i) {
            f[i] += val;
        }
    }

    int get(int pos) {
        int ans = 0;
        for (int i = pos; i > 0; i -= i & -i) {
            ans += f[i];
        }
        return ans;
    }
};

long long count_inv(vector<int> ord) {
    int len = ord.size();
    Fenwick f(len + 1);
    long long ans = 0;
    for (auto vl : ord) {
        ans += f.get(len) - f.get(vl);
        f.add(vl, 1);
    }
    return ans;
}

long long count_swaps(vector<int> s) {
    int n = s.size() / 2;
    vector<vector<pair<int, int>>> pos(n + 1);
    for (int i = 0; i < n * 2; ++i) {
        pos[abs(s[i])].emplace_back(i, s[i]);
    }
    long long ans = 0;
    for (int sz = 1; sz <= n; ++sz) {
        int pos_l = 1, pos_r = 2;
        vector<int> ord_nw;
        for (auto [p, vl] : pos[sz]) {
            if (vl < 0) {
                ord_nw.push_back(pos_l);
                pos_l += 2;
            } else {
                ord_nw.push_back(pos_r);
                pos_r += 2;
            }
        }
        ans += count_inv(ord_nw);
        for (int i = 0; i < (int)pos[sz].size(); ++i) {
            if (i % 2 == 0) {
                s[pos[sz][i].first] = -sz;
            } else {
                s[pos[sz][i].first] = sz;
            }
        }
    }
    vector<int> ord_nw;
    int pos_l = 1;
    map<int, int> pos_r;
    for (int i = 0; i < n * 2; ++i) {
        if (s[i] < 0) {
            ord_nw.push_back(pos_l);
            pos_r[-s[i]] = pos_l + 1;
            pos_l += 2;
        } else {
            ord_nw.push_back(pos_r[s[i]]);
        }
    }
    ans += count_inv(ord_nw);
    return ans;
}

詳細信息

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 0ms
memory: 4056kb

input:

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

output:

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

result:

ok 3 lines

Test #2:

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

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: 20
Accepted
time: 0ms
memory: 4028kb

input:

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

output:

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

result:

ok 3 lines

Test #4:

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

input:

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

output:

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

result:

ok 3 lines

Test #5:

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

input:

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

output:

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

result:

ok 3 lines

Test #6:

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

input:

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

output:

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

result:

ok 3 lines

Test #7:

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

input:

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

output:

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

result:

ok 3 lines

Test #8:

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

input:

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

output:

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

result:

ok 3 lines

Test #9:

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

input:

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

output:

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

result:

ok 3 lines

Test #10:

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

input:

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

output:

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

result:

ok 3 lines

Test #11:

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

input:

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

output:

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

result:

ok 3 lines

Test #12:

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

input:

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

output:

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

result:

ok 3 lines

Test #13:

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

input:

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

output:

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

result:

ok 3 lines

Test #14:

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

input:

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

output:

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

result:

ok 3 lines

Test #15:

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

input:

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

output:

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

result:

ok 3 lines

Test #16:

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

input:

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

output:

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

result:

ok 3 lines

Test #17:

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

input:

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

output:

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

result:

ok 3 lines

Test #18:

score: 0
Wrong Answer
time: 0ms
memory: 3724kb

input:

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

output:

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

result:

wrong answer 3rd lines differ - expected: '12', found: '10'

Subtask #3:

score: 20
Accepted

Test #37:

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

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: 20
Accepted
time: 0ms
memory: 3792kb

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: 20
Accepted
time: 0ms
memory: 3772kb

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: 20
Accepted
time: 0ms
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: 20
Accepted
time: 0ms
memory: 3756kb

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: 20
Accepted
time: 0ms
memory: 3800kb

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: 20
Accepted
time: 0ms
memory: 3708kb

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: 20
Accepted
time: 0ms
memory: 4060kb

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: 20
Accepted
time: 0ms
memory: 4060kb

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: 20
Accepted
time: 0ms
memory: 4024kb

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: 20
Accepted
time: 0ms
memory: 4072kb

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: 20
Accepted
time: 0ms
memory: 3796kb

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: 20
Accepted
time: 0ms
memory: 4068kb

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: 20
Accepted
time: 0ms
memory: 3728kb

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: 20
Accepted
time: 0ms
memory: 3888kb

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: 20
Accepted
time: 1ms
memory: 3804kb

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: 20
Accepted
time: 1ms
memory: 3948kb

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: 20
Accepted
time: 0ms
memory: 3984kb

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: 20
Accepted
time: 3ms
memory: 4048kb

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: 20
Accepted
time: 30ms
memory: 11320kb

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: 20
Accepted
time: 21ms
memory: 11304kb

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: 20
Accepted
time: 24ms
memory: 11304kb

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: 20
Accepted
time: 20ms
memory: 11320kb

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: 20
Accepted
time: 24ms
memory: 11260kb

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: 20
Accepted
time: 24ms
memory: 11276kb

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: 20
Accepted
time: 24ms
memory: 11440kb

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: 20
Accepted
time: 12ms
memory: 11328kb

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: 20
Accepted
time: 17ms
memory: 11240kb

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: 20
Accepted
time: 28ms
memory: 11324kb

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: 20
Accepted
time: 24ms
memory: 11512kb

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: 20
Accepted
time: 20ms
memory: 11232kb

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: 20
Accepted
time: 24ms
memory: 11376kb

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: 20
Accepted
time: 0ms
memory: 3848kb

input:

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

output:

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

result:

ok 3 lines

Test #70:

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

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: 20
Accepted
time: 18ms
memory: 11292kb

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: 20
Accepted
time: 22ms
memory: 11244kb

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: 20
Accepted
time: 20ms
memory: 11388kb

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: 0
Wrong Answer

Test #74:

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

input:

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

output:

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

result:

ok 3 lines

Test #75:

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

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: 15
Accepted
time: 0ms
memory: 3724kb

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: 15
Accepted
time: 0ms
memory: 3728kb

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: 15
Accepted
time: 72ms
memory: 17144kb

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
Wrong Answer
time: 49ms
memory: 12060kb

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
655728679

result:

wrong answer 3rd lines differ - expected: '4999750003', found: '655728679'

Subtask #5:

score: 0
Skipped

Dependency #2:

0%

Subtask #6:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%