QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#673637#6528. Sequencemakrav18 387ms69704kbC++204.9kb2024-10-25 03:21:232024-10-25 03:21:25

Judging History

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

  • [2024-10-25 03:21:25]
  • 评测
  • 测评结果:18
  • 用时:387ms
  • 内存:69704kb
  • [2024-10-25 03:21:23]
  • 提交

answer

#include "sequence.h"
#include <bits/stdc++.h>

using namespace std;

bool is_inter(pair<int, int> sg1, pair<int, int> sg2) {
    if (sg1.second < sg2.first || sg2.second < sg1.first) return false;
    return true;
}

struct node {
    int sm, minbal, maxbal;
};

node operator+(node a, node b) {
    int nsm = a.sm + b.sm, nminbal = min(a.minbal, a.sm + b.minbal), nmaxbal = max(a.maxbal, a.sm + b.maxbal);
    return {nsm, nminbal, nmaxbal};
}

struct segtree {
    int n;
    vector<int> a;
    vector<node> t;
    segtree() = default;
    segtree(int n_) {
        n = n_;
        a.assign(n, -1);
        t.resize(4 * n);
        build(1, 0, n);
    }

    void build(int v, int tl, int tr) {
        if (tl + 1 == tr) {
            t[v] = {a[tl], min(a[tl], 0), max(a[tl], 0)};
            return;
        }
        int tm = (tl + tr) / 2;
        build(v * 2, tl, tm); build(v * 2 + 1, tm, tr);
        t[v] = t[v * 2] + t[v * 2 + 1];
    }

    void upd(int v, int tl, int tr, int p, int vl) {
        if (tl + 1 == tr) {
            t[v] = {vl, min(0, vl), max(0, vl)};
            return;
        }
        int tm = (tl + tr) / 2;
        if (p < tm) upd(v * 2, tl, tm, p, vl);
        else upd(v * 2 + 1, tm, tr, p, vl);
        t[v] = t[v * 2] + t[v * 2 + 1];
    }

    node get(int v, int tl, int tr, int l, int r) {
        if (tl >= r || tr <= l) return {0, 1000000000, -1000000000};
        if (l <= tl && tr <= r) return t[v];
        int tm = (tl + tr) / 2;
        return get(v * 2, tl, tm, l, r) + get(v * 2 + 1, tm, tr, l, r);
    }
};

struct fenwick {
    int n;
    vector<int> t;
    fenwick() = default;
    fenwick(int n_) {
        n = n_;
        t.assign(n + 1, 0);
    }
 
    void upd(int p, int vl) {
        for (; p <= n; p = (p | (p + 1))) t[p] += vl;
    }
 
    int get(int p) {
        int sm = 0;
        for (; p > 0; p = (p & (p + 1)) - 1) sm += t[p];
        return sm;
    }
};

struct segtree2 {
    int n; 
    vector<int> t;
    segtree2() = default;
    segtree2(int n_) {
        n = n_;
        t.assign(4 * n, -1e9);
    }

    void upd(int v, int tl, int tr, int p, int vl) {
        if (tl + 1 == tr) {
            t[v] = vl;
            return;
        }
        int tm = (tl + tr) / 2;
        if (p < tm) upd(v * 2, tl, tm, p, vl);
        else upd(v * 2 + 1, tm, tr, p, vl);
        t[v] = max(t[v * 2], t[v * 2 + 1]);
    }

    int spusk(int v, int tl, int tr, int l, int r, int val) {
        if (tr <= l || tl >= r) return -1;
        if (l <= tl && tr <= r) {
            if (t[v] < val) return -1;
            if (tl + 1 == tr) return tl;
        }
        int tm = (tl + tr) / 2;
        int rsl = spusk(v * 2, tl, tm, l, r, val);
        if (rsl != -1) return rsl;
        return spusk(v * 2 + 1, tm, tr, l, r, val);
    }
};

int sequence(int N, vector<int> A) {
    vector<vector<int>> pos(N + 1);
    for (int i = 0; i < N; i++) pos[A[i]].push_back(i);
    segtree sg(N);
    fenwick fw(N + 3);
    vector<pair<int, int>> left(N), right(N);
    int tot = -N;
    for (int i = 1; i <= N; i++) fw.upd(i, -1);
    for (int val = 1; val <= N; val++) {
        for (int p : pos[val]) {
            sg.upd(1, 0, N, p, 1);
            fw.upd(p + 1, 2);
        }
        tot += 2 * pos[val].size();
        for (int p : pos[val]) {
            if (p == 0) {
                left[p] = {0, 0};
            } else {
                node rs = sg.get(1, 0, N, 0, p);
                left[p] = {rs.minbal, rs.maxbal};
            }

            if (p == N - 1) {
                right[p] = {tot, tot};
            } else {
                int ls = fw.get(p + 1);
                node rs = sg.get(1, 0, N, p + 1, N);
                right[p] = {ls + rs.minbal, ls + rs.maxbal};
            }
        }
    }
    
    int ans = 1;
    for (int val = 1; val <= N; val++) {
        //cout << val << '\n';
        if (pos[val].empty()) continue;
        segtree2 sg2(pos[val].size());
        for (int i = 0; i < pos[val].size(); i++) {
            //cout << left[pos[val][i]].first << ' ' << left[pos[val][i]].second << ' ' << right[pos[val][i]].first << ' ' << right[pos[val][i]].second << '\n';
            sg2.upd(1, 0, pos[val].size(), i, left[pos[val][i]].second - 2 * i + 2);
        }
        for (int i = 1; i < pos[val].size(); i++) {
            int L = -1, R = i;
            while (R - L > 1) {
                int M = (L + R) / 2;
                if (right[pos[val][i]].second - left[pos[val][M]].first < 0) L = M;
                else R = M;
            }
            //cout << i << ' ' << R << '\n';
            if (R < i) {
                int result = sg2.spusk(1, 0, pos[val].size(), R, i, right[pos[val][i]].first - 2 * i);
                //cout << result << '\n';
                ans = max(ans, i - result + 1);
            }
            
        }
    }
    return ans;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 1ms
memory: 3832kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
98
92 89 9 86 80 6 42 20 84 82 46 56 52 30 44 39 35 82 57 33 18 38 32 63 27 55 33 44 41 39 62 26 46 59 21 85 36 60 7 36 50 22 87 83 71 27 4 3 87 47 17 62 70 24 9 20 81 21 57 50 13 32 68 70 11 95 5 56 64 90 47 42 44 72 71 46 84 72 56 63 37 35 80 78 4 54 74 79 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
3

result:

ok 

Test #2:

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

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
96
1 6 1 4 6 2 5 1 1 2 8 2 4 4 1 9 8 9 8 5 3 6 6 4 9 4 2 8 8 8 2 9 1 3 6 6 1 6 5 5 3 7 9 7 1 8 5 6 8 5 1 1 4 9 6 7 2 6 6 7 4 2 2 8 5 6 4 8 2 6 5 8 6 1 6 2 1 3 4 6 3 6 8 2 5 7 8 2 4 1 5 6 2 3 6 6

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
18

result:

ok 

Test #3:

score: 11
Accepted
time: 0ms
memory: 3816kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
99
1 3 5 1 2 4 1 3 4 1 5 5 3 1 1 4 2 1 4 5 5 4 1 4 4 2 1 2 2 1 5 2 4 2 1 5 1 3 3 4 3 2 3 1 3 2 2 4 1 5 4 2 2 2 4 5 3 4 3 2 3 4 5 4 5 1 2 2 2 5 3 1 3 5 1 2 1 2 1 2 3 1 4 4 4 5 3 3 3 5 1 3 4 2 4 4 2 1 2

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
19

result:

ok 

Test #4:

score: 11
Accepted
time: 0ms
memory: 4084kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
100
29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
100

result:

ok 

Test #5:

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

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
97
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 8...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
1

result:

ok 

Test #6:

score: 11
Accepted
time: 0ms
memory: 4084kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
100
48 40 13 1 8 31 46 19 42 9 13 8 33 43 85 9 36 21 83 49 4 49 49 24 49 82 9 88 24 33 23 99 79 46 83 49 2 4 40 92 49 44 92 99 49 49 38 49 12 29 49 89 100 81 79 85 22 38 49 8 27 29 3 100 100 42 82 49 31 26 40 49 46 10 49 49 84 77 93 20 33 90 49 18 49 49 18 84...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
18

result:

ok 

Test #7:

score: 11
Accepted
time: 0ms
memory: 3756kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
97
42 47 7 23 9 10 53 75 53 53 2 1 75 14 4 16 53 35 32 37 97 31 47 91 77 84 53 87 93 85 70 80 2 19 53 53 67 85 25 3 37 41 52 21 30 84 25 15 37 30 97 53 22 97 33 97 53 9 69 38 71 6 74 4 13 26 27 90 91 47 11 90 7 76 97 17 80 53 23 95 73 53 1 21 43 42 2 33 29 32...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
11

result:

ok 

Test #8:

score: 11
Accepted
time: 0ms
memory: 4096kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
98
72 73 8 81 47 26 17 61 93 69 95 7 25 42 15 45 17 88 42 94 68 49 23 50 93 42 97 43 11 7 83 42 43 42 57 12 76 54 61 76 71 42 62 87 87 7 42 83 92 47 72 66 88 1 23 51 42 26 74 42 84 70 59 42 83 14 60 81 53 56 42 20 56 8 92 69 42 76 42 24 87 70 4 80 79 61 66 93...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
5

result:

ok 

Test #9:

score: 11
Accepted
time: 0ms
memory: 3756kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
99
85 88 94 94 59 47 63 75 75 40 38 35 59 56 81 48 96 47 46 34 96 62 35 46 83 34 95 34 69 48 15 10 3 92 67 34 38 92 84 84 42 49 86 63 82 65 39 89 80 14 34 69 55 42 67 34 68 86 15 72 18 96 2 7 1 89 16 68 65 97 52 38 92 34 87 16 2 62 34 18 34 74 34 8 21 77 45 8...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
7

result:

ok 

Subtask #2:

score: 0
Wrong Answer

Dependency #1:

100%
Accepted

Test #10:

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

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
1999
486 1494 1286 1247 138 393 816 1646 971 1657 1284 1320 702 194 602 1775 13 1856 61 1264 1005 681 1679 1174 718 1781 1407 97 365 1949 1805 1609 1066 637 98 1686 1361 584 146 1879 941 62 1433 1850 729 1754 71 1292 1945 1328 1705 362 591 407 998 1909 1690 2...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
6

result:

wrong answer 1st lines differ - on the 1st token, expected: '4', found: '6'

Subtask #3:

score: 7
Accepted

Test #20:

score: 7
Accepted
time: 235ms
memory: 63796kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
499996
53 78 81 111 119 124 126 130 164 175 219 227 233 249 282 298 332 341 348 436 437 448 452 455 462 465 495 535 557 558 576 600 620 627 632 642 643 659 695 696 713 730 743 805 816 865 869 872 875 882 883 902 924 937 990 998 1025 1092 1137 1145 1166 1176 1...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
8

result:

ok 

Test #21:

score: 7
Accepted
time: 237ms
memory: 64188kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
499996
5 7 11 19 19 19 19 23 23 27 29 31 32 33 34 37 37 40 45 49 53 57 67 69 70 76 79 80 82 82 84 89 91 96 105 109 109 109 110 111 112 113 116 119 120 121 122 129 133 135 136 142 145 147 148 151 155 160 161 162 162 171 174 177 178 179 180 181 185 189 191 192 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
9

result:

ok 

Test #22:

score: 7
Accepted
time: 291ms
memory: 57752kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
500000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
100281

result:

ok 

Test #23:

score: 7
Accepted
time: 244ms
memory: 63000kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
500000
1 7 8 11 15 17 18 19 19 20 22 24 29 33 33 35 37 39 46 47 48 49 49 49 52 54 57 60 60 62 62 63 68 70 71 72 72 78 79 79 85 86 86 92 94 94 97 99 100 100 106 108 110 114 116 118 119 122 125 127 128 133 133 134 136 137 144 144 145 148 152 153 153 153 160 161...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
9

result:

ok 

Test #24:

score: 7
Accepted
time: 237ms
memory: 62912kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
499996
18 24 36 39 56 61 85 128 159 164 225 240 252 254 258 263 313 365 387 387 396 439 443 476 481 489 509 526 547 582 583 584 631 635 645 673 679 699 709 724 728 731 741 757 768 785 785 817 827 828 834 836 846 851 858 864 892 900 908 920 920 922 929 962 989...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
11

result:

ok 

Test #25:

score: 7
Accepted
time: 258ms
memory: 56664kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
499996
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
8818

result:

ok 

Test #26:

score: 7
Accepted
time: 257ms
memory: 56668kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
500000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
7068

result:

ok 

Test #27:

score: 7
Accepted
time: 278ms
memory: 58872kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
499998
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
176759

result:

ok 

Subtask #4:

score: 0
Wrong Answer

Test #28:

score: 12
Accepted
time: 305ms
memory: 60520kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
499999
2 1 2 2 2 1 2 3 1 3 1 2 2 1 2 1 1 2 1 1 2 1 1 2 1 2 1 1 1 1 1 2 2 1 1 2 1 1 1 2 1 2 1 1 1 2 3 3 3 3 1 3 1 2 2 1 1 1 3 1 3 1 1 2 1 2 2 2 1 3 2 1 1 1 2 2 1 2 2 3 1 2 2 1 2 2 1 1 2 1 1 2 2 1 2 2 1 1 1 1 2 2 1 1 1 1 1 2 1 1 2 1 1 3 2 1 1 1 3 1 1 2 1 3 1 1 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
277713

result:

ok 

Test #29:

score: 0
Wrong Answer
time: 297ms
memory: 58576kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
499999
2 3 1 3 3 3 1 2 3 3 3 2 2 1 1 3 1 2 1 3 3 3 2 2 2 2 3 3 2 2 2 1 1 2 3 3 1 3 1 1 2 3 3 1 1 1 2 1 1 1 2 3 2 2 1 2 1 1 3 1 1 1 3 1 1 2 1 3 2 3 1 3 1 3 3 2 1 3 1 2 1 3 2 1 1 2 3 1 2 1 3 3 1 2 1 3 3 3 2 3 2 1 1 2 1 2 3 1 1 2 2 1 3 2 3 2 3 2 2 1 3 2 3 1 3 3 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
167380

result:

wrong answer 1st lines differ - on the 1st token, expected: '166105', found: '167380'

Subtask #5:

score: 0
Wrong Answer

Test #33:

score: 13
Accepted
time: 386ms
memory: 69560kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
499999
490225 471440 499001 369862 494577 479599 486292 476071 471988 486939 482356 482290 497141 488452 495446 494292 404798 493826 482595 481107 447196 477441 418064 495941 448927 483365 418585 489220 443224 482574 487957 467944 493253 472016 475543 442250 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
1

result:

ok 

Test #34:

score: 13
Accepted
time: 376ms
memory: 69704kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
499999
490225 471440 499001 369862 494577 479599 486292 476071 471988 486939 482356 482290 497141 488452 495446 494292 404798 493826 482595 481107 447196 477441 418064 495941 448927 483365 418585 489220 443224 482574 487957 467944 493253 472016 475543 442250 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
1

result:

ok 

Test #35:

score: 13
Accepted
time: 374ms
memory: 69072kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
499999
8693 471440 17469 369862 13045 479599 4760 476071 471988 5407 824 758 15609 6920 13914 12760 404798 12294 1063 481107 447196 477441 418064 14409 448927 1833 418585 7688 443224 1042 6425 467944 11721 472016 475543 442250 17475 477814 477933 468083 40726...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
2

result:

ok 

Test #36:

score: 13
Accepted
time: 387ms
memory: 68988kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
499999
8693 471440 17469 369862 13045 479599 4760 476071 471988 5407 824 758 15609 6920 13914 12760 404798 12294 1063 481107 447196 477441 418064 14409 448927 1833 418585 7688 443224 1042 6425 467944 11721 472016 475543 442250 17475 477814 477933 468083 40726...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
2

result:

ok 

Test #37:

score: 13
Accepted
time: 305ms
memory: 65588kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
500000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
2

result:

ok 

Test #38:

score: 13
Accepted
time: 291ms
memory: 65556kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
500000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
1

result:

ok 

Test #39:

score: 0
Wrong Answer
time: 216ms
memory: 64612kb

input:

8wq90di9812978rqwiok0k0o21klklm21oiwi121
500000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 ...

output:

nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp
OK
3

result:

wrong answer 1st lines differ - on the 1st token, expected: '1', found: '3'

Subtask #6:

score: 0
Skipped

Dependency #2:

0%

Subtask #7:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%