QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#93068#6177. 外星飞碟问题Naitoah100 ✓8004ms3828kbC++14401b2023-03-31 10:33:102023-03-31 10:33:14

详细

Test #1:

score: 10
Accepted
time: 15ms
memory: 3816kb

input:

196679 119408054
139556 639056413
108421 23058954
76827 810567286
141325 706893211
159418 346829143
80743 441990981
62949 400438318
126255 63096254
168495 78086455

output:

1519212
638916856
22950532
810490458
706702134
227826120
12203482
400375368
6125288
77917959

result:

ok 10 numbers

Test #2:

score: 10
Accepted
time: 101ms
memory: 3716kb

input:

132379 547639237
184168 610364492
128903 207461329
184677 668580514
150444 649310849
55254 986168376
70946 942775530
152594 999393896
35423 607339416
132812 666897350
149277 444910828
152364 625118321
32066 455080800
178348 251156079
182876 684929182
145790 986448750
53745 495864737
177729 858132255...

output:

547506857
78143307
167242061
668395836
615084307
986113121
789610803
739122765
211493400
275565687
252171410
624965956
39536733
250977730
288204887
986302959
244592291
89981885
70620300
665109611
387937850
763918833
757214105
371365655
972618853
657114444
447255975
448348912
530223658
181925276
2851...

result:

ok 80 numbers

Test #3:

score: 10
Accepted
time: 329ms
memory: 3592kb

input:

129168 35938151
223594 45898981
212047 296387324
20586 227581375
217259 549343274
210104 232561616
22307 597220541
216524 563977938
28731 424844355
178349 131033593
6659 499298883
141278 941715241
226459 74763049
130068 678831453
58561 779116826
166605 667356298
65459 453939035
197085 441749759
1146...

output:

10838414
45675386
238497272
227560788
294476068
83401703
597198233
563761413
424815623
121539964
350397606
637982623
34624688
678701384
779058264
190063392
91024550
225131292
68794385
775473793
698012995
116990820
1726225
935417773
14748583
123130846
813594285
43748415
287844533
90902956
745701381
1...

result:

ok 270 numbers

Test #4:

score: 10
Accepted
time: 686ms
memory: 3652kb

input:

67373225 541424569

output:

474051343

result:

ok 1 number(s): "474051343"

Test #5:

score: 10
Accepted
time: 467ms
memory: 3716kb

input:

43819204 782826103

output:

461366461

result:

ok 1 number(s): "461366461"

Test #6:

score: 10
Accepted
time: 2677ms
memory: 3828kb

input:

212622591 970189217
41674302 963301923

output:

951601291
921627620

result:

ok 2 number(s): "951601291 921627620"

Test #7:

score: 10
Accepted
time: 0ms
memory: 3708kb

input:

93945642 294
631475133 142
655200125 113968
437976844 478738
244315421 256801
133974115 33971
17147958 772701
617693174 5492181
128060599 2259698
322318763 51104

output:

293
2
1906
68425
159130
7508
624164
2923278
742186
45268

result:

ok 10 numbers

Test #8:

score: 10
Accepted
time: 3489ms
memory: 3624kb

input:

417365434 162713
328251632 101777
86590425 27144869
79610521 80257179
123491825 257321924
554029049 28059811
137588420 707085059

output:

156123
80969
21989050
646657
133830098
7167170
569496638

result:

ok 7 numbers

Test #9:

score: 10
Accepted
time: 4831ms
memory: 3684kb

input:

2064117264480231174 5245870381
1031717467477756643 2517762343
1751807801386987912 423859236
1456051307076879026 5827682483
2679989361342544345 3728162989
1482474591100056088 7531402127
166731755056326606 5602167196
3642122198956086335 873282349
2401403346327604718 8630674782
2628573383020497799 8363...

output:

4676759144
1536455750
340915291
4104814346
3065864425
6070360659
1052697353
597417707
6660214101
7155820370
5714390346
1141614472
7054512619
3495139201
8289443337
8264609311
1774412953
1856213546
7819362902
3722118425
2966118866
3887375596
10668845306
1037297606
3142137905
6009959597
3755717484
2348...

result:

ok 40 numbers

Test #10:

score: 10
Accepted
time: 8004ms
memory: 3816kb

input:

3839457577192093527 1421791562
2110487033921815264 3077877797
2867460280973710255 3876447449
263240744084161973 269918073
1491682756826874382 3164787027
3535324804266404040 10678924687
3191751383633490714 8618313684
2346753039773760695 10655661982
2952520790288604566 6406394756
1194076755260824413 4...

output:

567612998
1055820957
381751753
74966184
1039932712
10038863144
5734577657
1398547688
4942895469
850417901
5252994484
3414858694
1205506705
3843745094
2875155225
33433035
2532865145
7108506215
2444273856
4371939316
1628099929
297372068
1949504627
2260170013
2930566274
6840980673
5065954378
2240376175...

result:

ok 50 numbers