QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#200524#5249. Banditsucup-team1426WA 515ms27316kbC++176.1kb2023-10-04 17:17:592023-10-04 17:17:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 515ms
memory: 27316kb

input:

100000
2670 75097 4080
87477 75802 1712
51835 36626 2883
19412 25923 5852
23976 19312 2520
82536 19514 2492
27160 66601 4483
99087 15088 3504
47050 58820 2964
37063 5696 9901
7717 1496 4891
79136 5448 4340
22575 81285 9289
96280 3803 9877
41980 32139 2855
44236 64938 3298
5983 99947 9666
95856 62545...

output:

0
0
0
2
2
5
2
2
3
4
4
7
8
9
11
10
14
12
12
10
11
10
10
9
10
11
11
9
15
11
14
13
14
16
11
17
15
13
15
14
14
20
15
20
22
22
20
17
23
23
24
29
24
26
30
31
36
28
37
39
35
34
45
39
46
45
43
46
42
49
44
50
43
47
52
50
49
57
51
56
61
58
68
66
69
69
61
63
67
63
72
74
78
72
73
78
77
73
85
76
86
82
85
76
82
8...

result:

ok 50000 lines

Test #2:

score: 0
Accepted
time: 301ms
memory: 22352kb

input:

100000
30038 18547 1594
65857 34063 4575
36600 72585 2328
99199 77595 1590
64257 48199 589
72301 40302 5083
69474 97536 606
60079 67381 9331
65982 39033 205
84122 65285 8508
18167 44905 3704
93490 94986 5941
27155 46374 6616
36232 62969 2212
79807 68652 7199
87352 59101 6880
94571 53224 3552
63610 8...

output:

0
1
3
3
3
3
4
6
10
10
12
14
14
16
18
19
19
19
19
22
22
23
23
23
23
24
25
26
26
26
26
26
26
28
31
31
31
31
31
34
34
36
40
41
41
42
42
42
42
42
44
44
44
47
48
48
48
48
48
48
48
48
48
49
50
50
53
54
54
55
55
56
56
56
56
56
59
62
62
62
62
62
62
62
62
62
62
63
65
67
69
69
69
73
73
73
74
76
76
76
76
76
79...

result:

ok 50000 lines

Test #3:

score: 0
Accepted
time: 182ms
memory: 20600kb

input:

100000
61878 94907 27495452
40498 66053 163324081
9987 91760 269034612
88613 6169 634714395
87422 83687 263182872
22328 64374 595886322
57437 38976 201931120
75020 26926 516189886
88639 96262 269100132
88285 44915 173237252
88407 91931 174315082
12843 50312 641940581
13297 52746 120211351
89089 4638...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 50000 lines

Test #4:

score: 0
Accepted
time: 188ms
memory: 20172kb

input:

100000
45843 69600 747867718
13793 70429 681785830
79985 74443 517803908
38369 67457 257059055
49843 59820 901603712
26439 25214 598556764
10275 5998 613157018
13517 10279 61272074
45577 49749 153772596
30727 68824 827689136
21752 9334 936611496
49173 73121 899562409
67808 9217 665070707
38351 13721...

output:

0
0
0
0
3
0
0
0
0
1
1
0
4
2
0
1
1
0
2
0
3
1
0
0
0
1
1
0
1
2
1
0
0
1
0
1
1
2
2
2
0
0
0
0
2
0
1
1
0
0
3
2
0
0
0
0
0
1
0
1
0
1
0
0
0
2
2
2
0
0
1
0
0
1
1
0
0
0
1
3
2
0
0
0
0
0
0
2
2
0
0
0
0
3
2
3
1
1
0
0
3
1
1
0
2
1
1
2
1
0
1
2
1
0
4
2
1
3
1
1
1
0
0
0
0
1
3
1
1
1
2
1
2
1
0
1
1
0
0
0
2
0
0
0
3
3
1
0
1
1
...

result:

ok 50000 lines

Test #5:

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

input:

10
1 6 50
5 7 60
10 7 57
1 7 7
8 10 71
9 8 66
1 3 79
9 4 92
8 2 41
8
? 5
? 2
+ 5 159
? 7
? 4
+ 9 184
? 7
+ 3 291

output:

0
0
1
1
1

result:

ok 5 lines

Test #6:

score: -100
Wrong Answer
time: 397ms
memory: 22800kb

input:

100000
34346 47902 18
27392 33766 77
6756 26094 49
22936 48815 19
5650 6237 49
30025 40524 59
54595 38103 73
31226 14746 66
90535 30187 7
31954 7326 41
88688 84625 35
87060 2678 4
51031 33729 53
78866 33403 76
16783 75299 96
96244 52833 50
72746 8315 62
3610 74402 43
5479 75776 55
98976 97524 74
261...

output:

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

result:

wrong answer 22790th lines differ - expected: '150', found: '149'