QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#858215#9676. Ancestorsnullptr_qwq0 566ms79108kbC++143.5kb2025-01-16 15:02:302025-01-16 15:02:42

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

7 5
3 1 0 5 3 5 1
1 3 1
5 7 2
1 5 1
4 7 1
4 7 2

output:

2
1
3
3
1

result:

ok 5 number(s): "2 1 3 3 1"

Test #2:

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

input:

1000 1000
686 337 192 336 405 0 108 485 350 762 258 780 179 939 25 657 571 662 119 786 604 224 935 494 685 575 369 178 249 740 954 204 598 592 68 771 498 86 55 38 298 704 239 292 993 286 16 813 719 187 14 476 792 49 944 52 227 720 310 470 900 243 663 950 627 300 728 189 45 610 673 548 873 95 48 841 ...

output:

452
68
611
117
316
486
354
35
559
585
167
265
576
96
489
289
136
287
26
282
151
192
146
141
148
131
35
72
69
29
5
15
57
22
12
30
87
162
9
217
232
23
178
334
122
156
293
400
299
351
529
632
592
296
640
678
715
708
56
465
323
731
2
69
110
286
172
-1
37
31
14
88
75
45
-5
94
540
115
357
10
11
431
581
37...

result:

wrong answer 2nd numbers differ - expected: '67', found: '68'

Subtask #2:

score: 0
Skipped

Dependency #1:

0%

Subtask #3:

score: 0
Wrong Answer

Test #30:

score: 0
Wrong Answer
time: 207ms
memory: 46080kb

input:

50000 200000
42574 43129 47328 17982 40521 6668 12729 32377 201 11940 8599 11734 18349 41045 26854 22540 9897 33419 7463 1243 47272 27135 49050 49111 22435 42539 39924 20272 5843 9308 45963 3283 31185 13692 38952 20583 15885 24802 4773 953 49907 28689 36942 23550 19449 8970 33340 31665 5407 46023 18...

output:

12045
1320
12290
2442
32446
36534
38574
30506
16465
16649
47148
41140
23403
1760
18561
6825
26482
29719
8898
16292
38560
29989
22056
7631
3825
34748
17587
6469
12641
23387
11659
16490
24437
11504
3944
2204
37811
13038
29050
24120
39169
34706
37333
20816
11765
41247
44355
17809
23453
26717
43109
4133...

result:

wrong answer 2nd numbers differ - expected: '1321', found: '1320'

Subtask #4:

score: 0
Skipped

Dependency #3:

0%

Subtask #5:

score: 0
Wrong Answer

Test #67:

score: 0
Wrong Answer
time: 566ms
memory: 79108kb

input:

100000 1000000
6457 23693 90928 23592 90440 75018 16865 3342 83718 16731 95103 31510 38719 27886 29093 41955 6596 46409 51839 10527 91993 61074 14405 34833 53674 42363 11490 43757 46191 6058 59164 96938 57858 40178 97523 84164 21582 72243 11267 47368 97058 6637 95208 60092 53943 16441 28363 64965 52...

output:

52955
18773
1318
13410
11045
444
50613
81484
6803
3634
58961
11002
68
4701
38
9519
39740
1166
67358
74638
2657
45206
4915
6773
1625
4199
52273
30463
60139
48666
29781
2801
6843
73096
21940
49716
9914
46807
29789
6867
2426
20785
2963
34668
4368
2437
4595
7518
38296
7253
3578
63821
28088
43827
20213
1...

result:

wrong answer 1st numbers differ - expected: '52956', found: '52955'

Subtask #6:

score: 0
Skipped

Dependency #1:

0%