QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#621253#8557. Goldberg MachineFantasy_BallWA 136ms20216kbC++203.1kb2024-10-08 11:37:352024-10-08 11:37:36

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 12044kb

input:

7
2 0 2 3
3 0 1 4 5
3 0 1 6 7
1 0 2
1 0 2
1 0 3
1 0 3
5
Q 10
C 2 1
Q 10
C 3 2
Q 10

output:

1
4
1

result:

ok 3 number(s): "1 4 1"

Test #2:

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

input:

2
1 0 2
1 0 1
10000
Q 330436
Q 980610
Q 275
Q 22846
Q 85515
Q 339826
Q 647638
Q 689585
Q 153103
Q 934080
Q 633096
Q 431962
Q 692869
Q 914798
Q 436671
Q 832351
Q 78371
Q 328899
Q 727824
Q 351781
Q 819165
Q 267140
Q 722576
Q 133777
Q 414375
Q 205621
Q 160403
Q 445832
Q 628729
Q 532763
Q 934703
Q 80779...

output:

1
1
2
1
2
1
1
2
2
1
1
1
2
1
2
2
2
2
1
2
2
1
1
2
2
2
2
1
2
2
2
1
2
1
2
1
2
1
1
2
2
2
1
1
2
2
2
2
1
1
2
2
2
1
2
2
1
2
1
2
2
2
2
1
2
1
2
1
2
2
2
2
1
1
2
1
1
1
2
1
1
1
2
1
2
1
1
2
2
1
2
2
1
1
1
1
2
1
2
2
2
1
2
1
1
1
2
1
2
2
2
1
1
2
2
2
1
1
2
1
1
1
2
1
1
1
1
1
2
2
2
2
1
2
1
1
2
1
2
1
1
2
2
1
1
2
2
1
1
1
...

result:

ok 10000 numbers

Test #3:

score: 0
Accepted
time: 16ms
memory: 12048kb

input:

3
2 1 2 3
1 0 1
1 0 1
100000
C 2 0
C 2 0
Q 145832
C 3 0
Q 19924
Q 443533
C 1 0
C 1 0
C 3 0
C 2 0
C 3 0
Q 635031
Q 280859
Q 509745
C 1 1
Q 262631
Q 340848
C 2 0
C 3 0
C 2 0
C 2 0
Q 775790
Q 614349
C 2 0
Q 684238
Q 797643
C 1 1
C 1 1
C 3 0
C 2 0
C 1 0
Q 669611
Q 257133
Q 631101
Q 731654
C 2 0
Q 942620...

output:

1
1
3
3
3
2
2
1
1
3
1
2
3
2
2
1
1
3
2
2
2
3
1
3
3
3
3
1
2
1
2
2
1
1
2
2
1
1
1
3
2
2
1
3
3
1
2
1
2
3
1
3
2
1
1
1
3
1
1
1
2
1
3
2
1
1
2
1
2
1
3
3
3
1
3
2
1
2
2
1
2
2
1
3
3
3
1
1
1
3
1
3
3
1
1
1
2
1
1
1
1
1
1
1
1
1
3
3
1
2
1
3
1
1
3
3
1
2
1
3
3
1
2
3
2
1
3
2
2
3
2
1
1
3
1
1
1
1
3
3
1
3
2
1
2
3
1
1
1
1
...

result:

ok 50039 numbers

Test #4:

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

input:

100
3 1 2 7 3
5 2 12 82 1 45 5
6 4 50 4 83 9 1 6
4 2 16 22 59 3
4 3 11 2 10 21
5 2 20 27 3 14 60
4 0 53 1 13 8
6 5 56 39 15 96 7 68
4 0 80 3 18 31
6 2 48 30 5 65 24 36
2 1 5 23
3 0 2 81 33
3 2 7 37 17
3 1 69 73 6
4 2 78 26 8 19
2 0 4 54
2 1 13 100
5 4 61 57 9 28 32
2 1 29 15
2 0 66 6
2 0 5 35
4 0 25...

output:

15
10
8
5
11
71
13
12
2
7
49
17
16
23
20
45
20
3
39
10
36
59
90
76
8
96
65
14
59
24
30
69
55
56
40
4
69
39
22
53
4
57
45
77
7
2
21
42
53
48
19
5
2
29
85
5
3
82
69
39
67
30
61
39
31
85
39
3
39
49
84
5
93
49
17
75
60
40
70
88
42
18
3
63
54
22
39
39
39
9
1
7
22
17
36
2
48
24
61
95
31
16
10
96
77
14
13
...

result:

ok 50092 numbers

Test #5:

score: -100
Wrong Answer
time: 136ms
memory: 20216kb

input:

10000
1 0 2
2 1 3 1
2 0 4 2
2 0 5 3
2 0 6 4
2 1 7 5
2 1 6 8
2 1 7 9
2 1 8 10
2 1 11 9
2 1 12 10
2 1 11 13
2 1 14 12
2 0 15 13
2 1 14 16
2 0 15 17
2 1 18 16
2 1 17 19
2 1 18 20
2 1 19 21
2 0 20 22
2 1 21 23
2 1 24 22
2 1 23 25
2 1 24 26
2 0 27 25
2 0 26 28
2 0 27 29
2 1 28 30
2 1 31 29
2 1 32 30
2 0 ...

output:

3695
990
9138
6365
7789
2229
8894
5861
641
2476
8753
9427
7874
2143
4545
345
671
4962
804
8651
5824
3521
3148
3131
881
5289
8782
4911
1850
4322
1884
907
8889
7080
3122
5625
3466
6229
8699
7854
3894
6229
4632
7256
6904
1037
9768
1466
8497
7317
6172
6083
5301
4034
2898
3282
4029
1491
2165
4839
8191
71...

result:

wrong answer 2nd numbers differ - expected: '1238', found: '990'