QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#134433#2760. SimurghQwerty1232#13 206ms4100kbC++201.8kb2023-08-03 19:35:472024-07-04 01:15:49

Judging History

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

  • [2024-07-04 01:15:49]
  • 评测
  • 测评结果:13
  • 用时:206ms
  • 内存:4100kb
  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-08-03 19:35:47]
  • 提交

answer

#include "simurgh.h"

// #include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <random>

struct DSU {
    std::vector<int> prv;

    DSU(int n) {
        clear(n);
    }

    void clear(int n) {
        prv.assign(n, -1);
    }

    int get(int i) {
        return prv[i] == -1 ? i : prv[i] = get(prv[i]);
    }

    void merge(int u, int v) {
        u = get(u);
        v = get(v);
        assert(u != v);
        prv[u] = v;
    }
};

std::vector<int> find_roads(int n, std::vector<int> u, std::vector<int> v) {
    static std::mt19937 rnd;

    int m = u.size();
    std::vector<std::pair<int, int>> edg(m);
    for (int i = 0; i < m; i++) {
        edg[i] = {u[i], v[i]};
    }

    std::vector<int> all(m);
    std::iota(all.begin(), all.end(), 0);
    std::shuffle(all.begin(), all.end(), rnd);

    std::vector<int> ans;
    DSU dsu(n);

    for (int i : all) {
        auto [u, v] = edg[i];
        if (dsu.get(u) != dsu.get(v)) {
            dsu.merge(u, v);
            ans.push_back(i);
        }
    }

    int cnt_rl = count_common_roads(ans);
    while (cnt_rl != n - 1) {
        std::shuffle(all.begin(), all.end(), rnd);

        auto ans2 = ans;
        std::shuffle(ans2.begin(), ans2.end(), rnd);
        ans2.pop_back();
        dsu.clear(n);

        for (int i : ans2) {
            auto [u, v] = edg[i];
            dsu.merge(u, v);
        }
        for (int i : all) {
            auto [u, v] = edg[i];
            if (dsu.get(u) != dsu.get(v)) {
                dsu.merge(u, v);
                ans2.push_back(i);
            }
        }

        int cnt_rl2 = count_common_roads(ans2);
        if (cnt_rl2 >= cnt_rl) {
            ans = ans2;
            cnt_rl = cnt_rl2;
        }
    }
    return ans;
}

详细

Subtask #1:

score: 13
Accepted

Test #1:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
7 21 30000
2 0
0 1
5 2
2 6
1 3
3 0
6 0
4 5
3 2
4 0
1 4
0 5
4 3
4 6
6 1
2 1
5 3
2 4
5 6
5 1
6 3
7 10 9 13 12 17

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
17 12 13 9 10 7

result:

ok correct

Test #2:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
7 21 30000
4 6
1 6
2 3
0 3
2 1
2 6
5 6
6 3
0 2
1 0
4 2
1 3
5 2
5 0
0 6
5 3
4 5
5 1
3 4
1 4
4 0
4 16 10 0 20 18

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
16 10 4 20 0 18

result:

ok correct

Test #3:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
7 21 30000
2 5
0 4
4 5
4 3
5 3
1 3
3 6
4 1
6 0
5 6
6 2
6 1
6 4
3 2
2 1
1 0
0 2
5 0
5 1
4 2
0 3
20 17 15 9 2 19

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
17 9 19 15 2 20

result:

ok correct

Test #4:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
7 13 30000
2 4
4 3
3 2
0 3
0 4
6 3
6 1
4 5
6 2
1 3
5 6
6 0
6 4
3 9 12 7 0 4

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
9 4 3 12 7 0

result:

ok correct

Test #5:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
6 10 30000
5 2
0 1
1 2
0 3
3 2
1 4
0 5
3 5
4 3
1 3
5 0 7 2 1

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
7 2 1 5 0

result:

ok correct

Test #6:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
7 16 30000
3 4
2 5
2 1
0 5
1 5
0 2
2 6
6 1
4 6
0 1
2 3
6 3
3 1
1 4
4 5
3 5
0 9 5 15 3 11

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
0 11 5 15 3 9

result:

ok correct

Test #7:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
2 1 30000
0 1
0

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
0

result:

ok correct

Test #8:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
3 3 30000
0 1
2 0
1 2
2 0

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
0 2

result:

ok correct

Test #9:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
6 5 30000
2 4
5 4
4 0
4 1
3 4
3 1 4 0 2

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
3 2 4 0 1

result:

ok correct

Test #10:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
6 14 30000
4 2
1 3
4 5
4 1
0 4
0 1
2 3
2 1
0 3
5 3
0 5
0 2
5 2
1 5
13 8 10 7 3

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
8 10 7 13 3

result:

ok correct

Test #11:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
7 6 30000
3 0
3 5
4 0
5 6
0 2
1 3
3 4 1 5 0 2

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
2 3 0 5 4 1

result:

ok correct

Test #12:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
6 15 30000
4 3
2 3
3 5
2 0
5 2
1 3
1 4
0 5
3 0
4 0
1 0
2 1
4 5
4 2
5 1
9 13 12 6 0

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
0 13 9 6 12

result:

ok correct

Test #13:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
7 21 30000
0 2
2 5
3 4
0 3
5 4
4 2
2 1
4 6
5 3
0 1
4 0
1 6
3 6
1 3
1 5
5 0
0 6
4 1
6 5
3 2
2 6
16 3 18 17 4 6

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
17 16 4 18 6 3

result:

ok correct

Subtask #2:

score: 0
Wrong Answer

Dependency #1:

100%
Accepted

Test #14:

score: 17
Accepted
time: 206ms
memory: 3808kb

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 1225 30000
47 4
24 48
42 13
5 42
19 17
29 31
23 48
37 25
37 43
27 22
43 30
19 44
49 37
39 14
26 46
46 35
49 15
40 19
6 31
37 1
21 0
26 45
6 4
38 36
6 8
20 4
18 24
20 35
5 29
1 19
35 49
29 20
25 10
10 36
2 22
26 11
7 9
24 3
35 38
48 41
22...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
61 166 1033 848 62 221 552 1006 795 377 299 277 1199 458 1205 768 746 1058 770 322 440 923 24 679 333 497 1042 1107 195 478 212 760 591 638 584 119 860 257 1071 503 127 355 397 706 754 851 866 880 509

result:

ok correct

Test #15:

score: 0
Accepted
time: 67ms
memory: 4100kb

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 1225 30000
44 29
11 44
39 16
20 31
6 3
9 27
49 27
12 0
27 1
48 49
46 12
35 36
35 11
49 13
23 20
28 26
12 1
42 37
5 15
28 32
6 10
16 7
4 43
4 31
49 34
9 14
2 46
44 30
40 17
14 29
41 18
27 44
13 3
23 40
47 24
16 3
6 26
45 18
24 42
11 10
23...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
181 95 294 204 297 256 633 496 913 933 497 182 354 649 472 1051 48 849 456 88 501 97 562 607 1037 21 151 776 279 1185 230 315 723 552 228 678 600 577 1173 280 1055 196 769 89 420 701 178 67 275

result:

ok correct

Test #16:

score: 0
Accepted
time: 62ms
memory: 3812kb

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 1225 30000
12 30
6 44
33 47
7 33
0 2
10 30
30 46
14 11
43 42
13 27
49 24
6 17
21 2
12 21
24 38
5 21
17 0
16 4
26 5
27 32
20 45
6 20
19 0
20 35
47 39
17 39
0 23
26 33
1 17
3 20
4 46
48 21
21 35
24 40
9 29
28 23
9 1
43 34
4 44
18 37
40 13
...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
1048 907 859 95 273 466 997 1075 966 438 948 524 535 795 374 326 1064 290 67 790 482 160 894 885 150 470 25 882 874 213 1082 382 847 93 24 1141 841 204 834 610 166 222 1068 261 198 917 784 56 513

result:

ok correct

Test #17:

score: 0
Accepted
time: 120ms
memory: 3900kb

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 1002 30000
35 6
20 23
17 3
16 48
49 29
31 32
38 3
10 39
16 4
47 13
0 19
24 25
42 39
48 44
39 32
1 42
18 8
17 15
19 32
33 23
21 18
7 13
6 0
26 35
34 22
39 13
48 47
6 21
44 7
21 13
43 16
41 43
36 6
25 14
3 49
3 33
47 29
25 45
45 13
12 13
3...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
591 20 304 685 370 116 837 402 348 229 823 801 670 4 403 313 560 712 614 372 941 841 808 828 875 28 401 420 963 351 266 440 858 112 213 357 436 96 237 90 221 174 308 783 559 135 898 636 668

result:

ok correct

Test #18:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 371 30000
20 0
5 9
13 38
4 3
12 23
20 42
43 12
27 28
1 42
23 42
14 41
39 9
2 9
10 13
14 32
18 30
6 7
32 3
39 38
12 34
33 0
10 41
32 30
15 43
13 6
2 30
20 14
36 21
17 2
0 28
24 29
19 7
25 15
10 48
21 49
31 7
2 44
7 44
28 40
38 17
33 48
18...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
74 309 27 349 102 16 234 38 129 62 290 300 156 35 14 121 233 344 140 105 0 216 135 210 277 139 101 82 279 18 24 239 93 224 257 274 294 364 45 314 193 46 237 21 212 131 89 152 238

result:

ok correct

Test #19:

score: 0
Accepted
time: 119ms
memory: 3892kb

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 1027 30000
46 5
15 29
43 39
16 32
38 5
4 22
13 4
41 5
0 41
39 6
6 8
3 13
25 6
40 25
17 40
47 0
26 15
30 11
27 31
43 45
30 17
35 37
8 27
2 38
35 19
7 12
36 31
41 21
14 25
14 35
15 17
37 2
27 46
24 39
24 29
19 10
28 1
22 35
24 41
16 46
13 ...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
983 140 173 660 497 148 885 313 816 238 994 488 198 77 158 839 220 398 585 928 170 986 571 112 83 487 988 31 670 607 974 5 196 506 142 521 674 639 1007 1001 85 645 406 417 13 583 1005 230 1021

result:

ok correct

Test #20:

score: 0
Accepted
time: 111ms
memory: 3888kb

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 965 30000
28 25
38 23
12 44
1 35
45 46
39 4
19 22
40 23
25 49
20 29
30 9
17 2
15 32
32 14
45 7
19 12
40 22
12 35
10 5
49 37
29 31
19 40
22 6
28 46
23 11
2 1
40 24
14 44
44 40
16 47
7 14
38 47
43 34
4 18
17 22
32 30
33 13
36 21
47 37
37 3...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
138 48 505 766 841 251 332 541 799 952 544 352 901 213 114 546 353 335 182 45 125 673 796 911 127 551 846 16 161 698 50 820 109 74 570 907 273 146 257 259 6 79 157 346 93 679 508 371 837

result:

ok correct

Test #21:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 900 30000
25 47
5 46
35 22
46 22
15 35
37 46
27 46
29 20
0 7
7 14
8 19
28 38
11 7
9 16
28 0
38 29
30 47
23 11
26 10
3 38
30 49
28 13
45 3
7 17
42 0
30 1
48 2
47 22
18 49
26 34
12 20
40 9
12 38
46 16
24 16
40 30
31 33
45 34
16 25
14 31
4 ...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
252 763 727 524 645 78 211 40 566 551 502 870 32 323 745 27 530 428 433 533 575 816 291 423 65 653 46 298 805 699 703 430 877 557 897 404 300 196 487 751 590 256 605 351 704 288 561 360 498

result:

ok correct

Test #22:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 701 30000
1 47
37 0
2 41
32 33
15 40
38 42
5 27
0 9
0 8
10 36
26 42
5 25
41 35
27 2
21 15
40 28
0 15
43 29
37 3
28 18
9 3
47 27
32 38
48 47
28 13
34 32
27 23
40 8
38 15
46 7
24 14
12 46
47 28
20 43
2 48
2 28
22 45
14 27
23 42
30 35
26 18...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
25 29 61 17 31 70 11 33 8 26 22 86 51 15 10 12 56 60 18 24 37 62 39 6 14 28 57 55 477 5 9 30 42 0 32 23 7 13 84 36 2 3 1 16 46 76 21 4 19

result:

ok correct

Test #23:

score: 0
Accepted
time: 97ms
memory: 3820kb

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 626 30000
49 25
30 31
0 3
6 11
25 10
19 13
10 49
43 31
7 19
24 28
39 31
15 7
32 30
27 41
18 23
31 13
26 40
19 41
42 30
47 28
5 4
41 24
42 27
15 45
29 14
29 37
42 6
2 42
45 13
27 32
32 20
4 29
4 21
20 24
16 44
14 12
28 6
25 37
10 22
8 48
...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
91 15 12 16 23 25 66 46 11 54 13 49 4 97 38 27 1 77 47 51 30 35 8 24 21 19 39 10 61 20 37 52 56 2 18 43 0 14 3 32 26 7 17 34 44 5 9 31 41

result:

ok correct

Test #24:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 601 30000
28 10
43 16
22 35
42 20
8 39
34 33
47 44
47 49
3 9
10 32
34 5
4 14
9 18
19 33
29 38
31 25
8 2
5 4
5 8
40 23
27 21
36 23
10 6
14 26
39 27
44 36
29 47
6 1
2 46
21 15
43 13
28 38
1 23
41 45
3 49
26 15
39 2
11 17
22 0
45 47
48 46
4...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
2 39 9 6 65 49 40 130 7 10 16 56 38 29 37 27 1 11 24 47 28 12 52 34 13 70 22 33 26 4 0 14 50 5 31 60 18 20 30 3 44 19 17 15 21 8 23 59 25

result:

ok correct

Test #25:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 85 30000
33 16
22 4
21 25
32 42
13 46
7 38
18 16
38 33
44 27
19 2
3 2
30 24
0 47
49 12
20 47
17 32
23 26
45 28
35 8
31 20
40 34
25 36
25 43
5 40
11 46
24 1
49 35
30 9
17 41
33 29
11 13
28 19
9 32
6 48
11 39
15 23
16 29
31 0
6 38
27 4
3 0...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
12 24 11 46 22 61 18 40 82 17 34 27 28 13 16 70 4 21 9 32 26 35 0 45 2 44 7 19 41 10 14 8 15 1 38 52 31 5 39 20 84 23 25 33 47 69 29 6 3

result:

ok correct

Test #26:

score: 0
Accepted
time: 44ms
memory: 3820kb

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 602 30000
23 30
14 19
2 28
37 21
18 35
1 24
35 1
2 7
11 14
41 11
15 30
6 47
16 25
27 21
14 31
26 30
36 14
43 8
47 7
1 15
18 14
38 31
16 10
19 45
49 27
40 4
25 13
31 3
43 26
19 39
47 27
30 1
2 27
34 33
43 36
45 18
4 37
39 23
11 17
37 44
2...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
6 7 29 40 93 20 0 13 19 9 11 18 5 47 25 27 22 67 218 36 21 24 39 15 44 10 75 56 3 16 38 33 71 14 42 4 45 28 96 17 23 26 1 51 41 8 2 12 30

result:

ok correct

Test #27:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 627 30000
2 46
48 6
42 10
35 38
19 24
47 39
37 7
12 39
12 31
6 43
9 5
25 28
12 26
30 16
41 48
45 11
44 31
47 15
31 32
36 37
32 43
36 15
7 48
27 28
26 20
0 6
31 18
45 35
37 3
9 20
5 20
40 2
7 43
35 33
39 15
40 27
0 39
28 42
0 38
17 46
6 7...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
89 56 8 104 18 11 6 7 24 42 20 45 17 26 21 39 2 23 49 14 33 4 10 37 9 48 16 13 76 38 93 1 29 74 27 3 0 35 72 19 5 15 12 84 59 31 28 25 53

result:

ok correct

Test #28:

score: 0
Accepted
time: 12ms
memory: 4076kb

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 270 30000
20 36
24 11
20 31
45 48
12 16
11 10
36 8
19 31
3 49
6 45
31 33
37 20
41 46
19 33
45 13
44 26
23 20
49 16
40 27
46 45
19 26
33 28
15 25
28 26
43 16
1 31
9 16
19 36
30 9
13 41
0 48
15 49
13 21
28 35
25 49
35 1
47 14
21 41
16 25
1...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
15 173 7 21 1 159 5 51 217 16 10 62 17 8 18 87 36 56 28 25 11 43 77 65 33 135 20 22 86 12 19 72 55 9 4 26 30 31 44 3 75 32 76 14 24 2 6 57 0

result:

ok correct

Test #29:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 130 30000
26 14
28 25
10 31
20 12
12 39
12 28
41 19
48 5
20 24
27 4
21 43
21 45
11 29
14 46
29 13
36 27
40 11
0 30
32 34
22 30
27 46
6 22
34 40
46 4
13 15
6 49
22 8
49 22
46 36
42 5
45 43
16 32
30 9
26 27
21 37
27 14
2 30
34 23
18 42
21 ...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
37 26 45 17 38 49 34 20 53 39 65 29 123 3 9 47 51 25 1 19 5 43 15 6 22 8 14 24 12 16 2 31 7 36 54 64 0 4 83 18 48 21 13 46 11 118 32 70 10

result:

ok correct

Test #30:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 625 30000
34 44
19 12
6 24
31 33
30 11
10 40
7 43
46 39
47 4
36 15
8 27
42 21
35 16
26 48
17 29
2 1
0 25
23 14
20 3
32 18
49 13
41 37
22 9
28 38
5 45
17 7
32 0
26 19
19 43
34 45
48 37
48 3
23 37
39 12
22 37
32 49
17 38
19 11
46 26
24 27
...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
7 14 18 46 2 27 28 32 58 75 4 37 34 16 29 12 36 13 42 64 17 20 25 39 40 33 24 10 8 0 55 9 1 15 21 54 19 41 26 11 3 45 30 5 22 31 6 23 35

result:

ok correct

Test #31:

score: -17
Wrong Answer
time: 172ms
memory: 3988kb

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
50 625 30000
37 43
38 19
3 37
27 46
35 26
15 7
47 34
25 49
2 45
5 20
28 44
11 22
33 1
36 31
16 42
40 32
43 24
6 8
12 14
18 4
9 21
23 48
41 30
13 29
10 0
42 27
20 26
20 9
24 0
32 39
11 10
14 21
11 28
20 46
24 14
18 34
13 18
42 30
43 41
16 9
...

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
WA
NO

result:

wrong answer WA in grader: NO

Subtask #3:

score: 0
Skipped

Dependency #2:

0%

Subtask #4:

score: 0
Time Limit Exceeded

Test #58:

score: 19
Accepted
time: 0ms
memory: 4036kb

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
2 1 12000
1 0
0

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
0

result:

ok correct

Test #59:

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

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
10 45 12000
4 8
0 5
2 0
5 8
8 0
3 8
6 4
4 1
2 3
2 1
6 2
1 7
3 7
8 1
7 0
8 6
0 6
9 5
9 6
7 4
7 6
7 9
1 6
3 5
2 5
7 5
3 9
0 3
3 6
2 9
1 5
0 4
7 8
5 4
9 4
5 6
3 1
2 8
7 2
2 4
1 0
9 8
4 3
1 9
9 0
22 41 3 16 7 25 28 11 39

output:

lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs
OK
39 3 41 28 7 22 25 11 16

result:

ok correct

Test #60:

score: -19
Time Limit Exceeded

input:

wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd
400 79800 12000
32 64
96 254
115 203
7 171
112 81
124 143
336 175
217 328
152 133
124 331
19 91
92 232
152 43
215 169
4 341
363 18
83 99
52 46
248 66
242 187
150 319
335 158
172 150
3 49
126 256
60 153
165 230
265 68
119 380
171 22
35 169
3...

output:

Unauthorized output

result:


Subtask #5:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%