QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#213763#6440. Xingqiu's JokeMaMengQiWA 920ms20820kbC++171.9kb2023-10-14 15:59:112023-10-14 15:59:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
4 7
9 8
32 84
11 35
2 1

output:

2
7
5
4
0

result:

ok 5 number(s): "2 7 5 4 0"

Test #2:

score: 0
Accepted
time: 920ms
memory: 20820kb

input:

300
223528529 446621399
755625805 978718675
257717538 480810408
277875777 54782907
963091558 739998688
282469431 505562301
38752451 261845321
474429597 697522467
67026335 290119205
874629705 651536835
301964126 78871256
316864911 93772041
545942587 322849717
640801578 417708708
683070559 906163429
9...

output:

12
19
15
17
16
17
13
19
15
17
15
15
18
17
17
19
14
18
15
16
17
18
19
15
17
17
17
12
19
16
12
19
16
15
13
18
17
18
16
15
14
17
14
16
15
14
19
18
16
14
16
17
16
18
14
16
17
14
18
17
16
19
19
18
17
16
16
14
23
14
14
18
18
20
16
16
17
17
12
18
19
17
16
18
16
15
18
12
15
18
16
12
19
18
15
18
17
14
13
16
...

result:

ok 300 numbers

Test #3:

score: 0
Accepted
time: 32ms
memory: 4556kb

input:

300
636099362 669653794
640628976 607074544
492031079 458476647
420324662 386770230
234845232 201290800
416098756 382544324
513320531 546874963
245050186 278604618
688926901 722481333
458533405 424978973
863331691 896886123
638892374 672446806
849746534 816192102
761591596 728037164
369934525 403488...

output:

51
49
48
45
35
45
50
42
53
47
61
53
59
55
43
41
53
55
44
62
48
39
36
60
40
55
49
54
50
38
59
41
39
43
47
57
54
50
52
39
54
52
39
37
32
34
56
38
53
41
51
50
55
56
35
44
35
45
59
33
53
59
56
57
43
53
54
45
34
58
33
55
56
33
46
49
33
38
38
55
54
47
56
47
52
60
36
53
56
53
44
43
34
59
55
49
52
40
35
55
...

result:

ok 300 numbers

Test #4:

score: 0
Accepted
time: 17ms
memory: 4324kb

input:

300
867787179 877654074
403881553 407432589
201172453 192754452
822066929 815320907
516801596 518734008
278735158 276997924
39842929 46406996
229923235 222281597
958111516 962220928
514454467 511546909
66273896 56535006
603599579 602886043
99119397 89783150
606236932 603774684
948362977 945928285
92...

output:

33397
48909
859594
170
484
187
9768
1359
33428
10364
18
1664
2186
277
1043
2411
227
174111
60
367
572
540712
863
122
222
2212
1989
320715
1651
209
100
122
12752
245
213
297173
1028
1390798
858
77
6974
1773
83
197
16962
56842
310
452
70
1626
64838
160
1805
1556
1166
247
19389
6519
589
14465
157
244
2...

result:

ok 300 numbers

Test #5:

score: 0
Accepted
time: 15ms
memory: 4544kb

input:

300
444931791 453867214
642779735 650889499
768469200 759932977
134609333 127541032
543262545 533662538
588655171 585712884
757077977 751113265
161317175 158154061
892529978 885427686
795149579 788861982
241771671 251274046
302494348 311533914
889928290 899661013
920557338 930025416
203697226 200533...

output:

741
160
209219
311632
9495
197970
166
146
583369
2912482
363
749
119
7218
119212
2918
55779
545
46
377
763
37357
10528
3053
372686
5498
2710
1815
9471
1681
23722
3121
198441
179
184540
78019
62009
9912
816
162
1149
5903
723881
157
1198
17554
176
2222
245003
137138
7745
119
52478
4287
20434
3985
72
1...

result:

ok 300 numbers

Test #6:

score: -100
Wrong Answer
time: 13ms
memory: 4468kb

input:

300
815736190 821647539
717319350 721891990
679088597 681494998
289436765 281383905
346742284 353165330
345091279 339262087
225500907 221657013
929824953 932291419
902707251 900613118
290094789 283209001
984907015 988781551
480809075 475536306
538994292 545389379
184484298 194275007
200905296 204085...

output:

447
842
385
227
7356
4687
3832
413
1863
1817
11006
6637
1807068
476
512
1410
4656
169
574810
1418
321
4623
801
292
664
2030320
2758
674376
1115
786
1413
263
229
880
2236
124680
469
739
624
34515
525
474
480
379286
349429
115
649
280
110
2454
554
164
4109
7077
4658
380
3005
26132
61563
411
126
268
20...

result:

wrong answer 263rd numbers differ - expected: '141', found: '176'