UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#109866#131. B君的第二题LightningUZ100354ms4412kbC++111.4kb2020-06-14 17:28:172020-06-14 17:28:20

answer


详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 5
Accepted
time: 1ms
memory: 1228kb

input:

271 603
132085811
83338654
374994517
253293780
264081618
847746375
216669228
623415163
954695919
561...

output:

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

result:

ok 271 lines

Test #2:

score: 5
Accepted
time: 0ms
memory: 1248kb

input:

584 237
80518109
258122698
731923337
691033621
624911335
279483207
303922447
365056476
809208206
240...

output:

0
0
1
1
1
0
0
0
1
0
0
0
0
0
0
1
1
1
0
0
1
0
0
1
0
1
1
0
0
1
0
0
1
0
1
1
1
0
0
0
1
0
1
0
1
1
1
1
0
0
...

result:

ok 584 lines

Test #3:

score: 5
Accepted
time: 0ms
memory: 1252kb

input:

844 786
377513825
651255498
534960083
633201535
952404588
287299703
843799537
184188246
225845702
81...

output:

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

result:

ok 844 lines

Test #4:

score: 5
Accepted
time: 0ms
memory: 1232kb

input:

448 176
574614571
265056988
36421289
252724751
328270306
5725058
242894468
598470827
19798310
551672...

output:

0
0
0
0
0
0
0
1
0
0
0
1
1
0
0
0
0
1
1
1
0
1
0
1
0
0
1
1
1
0
1
1
0
1
0
0
0
1
0
1
0
1
0
1
0
1
1
0
1
1
...

result:

ok 448 lines

Test #5:

score: 5
Accepted
time: 0ms
memory: 1256kb

input:

906 699
644199830
292207233
931778528
364897299
599117624
421080658
725209186
247422336
509625960
69...

output:

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

result:

ok 906 lines

Test #6:

score: 5
Accepted
time: 27ms
memory: 4224kb

input:

75190 83985
902929621
490031164
157184633
349441219
577909236
401547775
892440980
814041077
19122007...

output:

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

result:

ok 75190 lines

Test #7:

score: 5
Accepted
time: 20ms
memory: 4184kb

input:

70099 52639
786191130
407177752
411214624
257752586
255948444
949506528
829588080
212550233
40243278...

output:

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

result:

ok 70099 lines

Test #8:

score: 5
Accepted
time: 4ms
memory: 1588kb

input:

10230 67832
329549796
647914942
681131725
327286873
549700076
777024458
543398540
265422066
55886396...

output:

4
9
9
4
7
11
7
3
7
5
9
1
7
0
12
6
11
8
9
9
9
6
13
5
0
11
3
1
0
7
10
3
9
9
9
13
10
7
1
9
12
7
11
11
2...

result:

ok 10230 lines

Test #9:

score: 5
Accepted
time: 39ms
memory: 4408kb

input:

98337 52281
608214568
991498408
255635141
910828051
55499636
536000239
226445885
801616094
845554484...

output:

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

result:

ok 98337 lines

Test #10:

score: 5
Accepted
time: 18ms
memory: 2804kb

input:

44325 90485
864871625
841953366
864267481
454280765
78563465
805315754
863224642
837977630
184988927...

output:

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

result:

ok 44325 lines

Test #11:

score: 5
Accepted
time: 18ms
memory: 2872kb

input:

52681 40884
835995182
51129331
888439480
465563495
670574611
961713046
840123675
387339517
891876365...

output:

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

result:

ok 52681 lines

Test #12:

score: 5
Accepted
time: 36ms
memory: 4360kb

input:

92310 73601
61848011
985648722
652519726
692368952
71072793
409176045
531484382
506865768
752858264
...

output:

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

result:

ok 92310 lines

Test #13:

score: 5
Accepted
time: 28ms
memory: 4376kb

input:

94929 23314
265516455
65302853
555653211
102976198
922299907
835680306
291082097
681215055
214286393...

output:

0
0
0
0
1
1
0
0
0
0
0
1
1
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
0
0
1
0
1
...

result:

ok 94929 lines

Test #14:

score: 5
Accepted
time: 21ms
memory: 3044kb

input:

59772 317530566
773378116
357460925
575797570
42454567
577878679
222070858
445450127
275009730
87523...

output:

8211
3795
6113
450
6136
2358
4729
2920
9293
2634
5671
3278
3041
29
8781
1074
8752
7052
2519
9624
155...

result:

ok 59772 lines

Test #15:

score: 5
Accepted
time: 23ms
memory: 4156kb

input:

66105 270312558
82182623
525313592
83068390
552026673
242824661
39978779
658184142
577198433
1474054...

output:

671
4290
678
4509
1983
326
5376
4714
1204
5600
424
7963
1151
1137
6033
183
7803
6712
1713
2232
2889
...

result:

ok 66105 lines

Test #16:

score: 5
Accepted
time: 23ms
memory: 4160kb

input:

67365 813903834
995417416
250190693
731376734
214928939
324848324
618592883
199694901
305057828
4090...

output:

24013
6035
17643
5184
7836
14922
4817
7359
9866
22248
6008
18289
5423
1522
13578
7759
15661
1913
111...

result:

ok 67365 lines

Test #17:

score: 5
Accepted
time: 25ms
memory: 3028kb

input:

56884 538543311
197714334
821107335
400728532
830089879
214380247
155729518
492501308
667597395
6395...

output:

3749
15573
7600
15743
4066
2953
9340
12661
12130
2895
6282
15512
11187
3245
3484
17339
6478
16395
14...

result:

ok 56884 lines

Test #18:

score: 5
Accepted
time: 31ms
memory: 4288kb

input:

83059 459008905
972553547
343191669
567944354
674826090
270484553
589837585
603263772
622754349
8755...

output:

10754
3795
6280
7462
2991
6522
6670
6886
968
3828
803
5467
8953
4864
6750
10781
7623
2995
9373
3430
...

result:

ok 83059 lines

Test #19:

score: 5
Accepted
time: 40ms
memory: 4412kb

input:

99316 586983015
6005984
853621192
661977259
43139280
130396303
870208173
65942075
985886177
37166504...

output:

71
10099
7832
510
1542
10296
780
11664
4397
11714
6354
5185
5828
7072
5548
2928
6872
11782
6001
7541...

result:

ok 99316 lines

Test #20:

score: 5
Accepted
time: 0ms
memory: 1252kb

input:

598 266
734784096
437709341
687578291
874675459
419145603
305676664
754765358
667526812
738329470
59...

output:

1
0
1
1
0
0
1
1
1
1
0
0
0
1
0
0
1
1
0
0
1
0
0
0
1
1
0
1
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
1
0
0
0
0
0
1
...

result:

ok 598 lines