UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#81021#793. 序列870840380100438ms3700kbC++1.1kb2019-10-26 09:00:442019-10-26 12:02:58

answer


Details

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

Subtask #1:

score: 30
Accepted

Test #1:

score: 30
Accepted
time: 0ms
memory: 1084kb

input:

100 269 4
485 603 637 728 140
989 957 446 369 839
483 32 502 31 92
291 806 345 79 177
386 7 753 980 ...

output:

2248

result:

ok 1 number(s): "2248"

Test #2:

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

input:

100 251 3
904 440 329 173
990 227 852 178
829 878 180 511
22 30 372 84
345 852 385 637
856 888 513 2...

output:

1816

result:

ok 1 number(s): "1816"

Test #3:

score: 0
Accepted
time: 1ms
memory: 1076kb

input:

100 251 6
522 61 724 608 328 20 89
346 459 312 580 773 688 94
320 775 229 309 792 589 18
662 731 478...

output:

2877

result:

ok 1 number(s): "2877"

Test #4:

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

input:

100 18247 3
647 435 255 181
906 980 214 351
229 736 473 615
676 215 463 901
838 118 445 869
56 661 7...

output:

584

result:

ok 1 number(s): "584"

Test #5:

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

input:

100 21874 4
528 942 877 177 81
819 84 219 540 504
561 762 906 232 822
492 274 896 296 62
424 297 447...

output:

887

result:

ok 1 number(s): "887"

Test #6:

score: 0
Accepted
time: 4ms
memory: 2992kb

input:

100 18364 1
682 577
299 473
519 379
847 779
52 268
392 422
892 916
912 372
532 678
148 531
964 554
1...

output:

50

result:

ok 1 number(s): "50"

Test #7:

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

input:

100 7889 1
688 196
946 806
886 987
865 205
828 596
531 34
117 573
831 13
330 9
762 715
697 891
134 3...

output:

84

result:

ok 1 number(s): "84"

Test #8:

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

input:

100 5887 6
476 184 839 470 986 298 5
411 831 100 730 84 627 47
176 650 368 620 678 892 85
768 367 52...

output:

1587

result:

ok 1 number(s): "1587"

Test #9:

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

input:

100 5214 6
825 34 569 14 110 304 119
904 136 434 49 390 626 45
142 586 28 276 505 48 67
345 757 975 ...

output:

1649

result:

ok 1 number(s): "1649"

Test #10:

score: 0
Accepted
time: 6ms
memory: 3468kb

input:

100 25934 5
29 995 679 185 852 361
380 858 503 117 863 312
747 217 240 70 90 194
257 992 707 548 121...

output:

1183

result:

ok 1 number(s): "1183"

Subtask #2:

score: 30
Accepted

Test #11:

score: 30
Accepted
time: 8ms
memory: 1084kb

input:

100000 299 4
504 637 676 447 537
120 358 775 645 76
989 61 532 75 321
499 298 338 819 318
761 692 15...

output:

4599403340480

result:

ok 1 number(s): "4599403340480"

Test #12:

score: 0
Accepted
time: 8ms
memory: 1084kb

input:

100000 276 3
18 668 598 388
488 54 158 73
813 183 478 945
80 172 91 485
781 759 488 854
7 512 707 63...

output:

11403478807

result:

ok 1 number(s): "11403478807"

Test #13:

score: 0
Accepted
time: 7ms
memory: 1084kb

input:

100000 284 5
719 407 495 110 761 418
453 118 927 245 377 485
714 302 223 524 23 884
714 509 8 33 488...

output:

1656880331769949

result:

ok 1 number(s): "1656880331769949"

Test #14:

score: 0
Accepted
time: 3ms
memory: 1088kb

input:

100000 259 6
606 692 403 750 394 126 15
5 474 823 616 33 681 5
427 491 403 560 642 574 37
32 431 642...

output:

191819984443923782

result:

ok 1 number(s): "191819984443923782"

Test #15:

score: 0
Accepted
time: 9ms
memory: 1088kb

input:

100000 265 1
295 667
136 760
645 555
912 181
91 186
238 867
912 25
325 862
166 44
209 188
700 449
54...

output:

36527

result:

ok 1 number(s): "36527"

Test #16:

score: 0
Accepted
time: 3ms
memory: 1084kb

input:

100000 264 7
359 777 550 281 562 645 15 0
627 844 833 802 671 603 92 0
583 928 234 856 739 715 26 0
...

output:

130852828531227209

result:

ok 1 number(s): "130852828531227209"

Test #17:

score: 0
Accepted
time: 8ms
memory: 1088kb

input:

100000 285 2
930 175 567
706 939 504
698 887 600
609 166 837
980 270 954
245 191 292
760 970 631
961...

output:

38604932

result:

ok 1 number(s): "38604932"

Test #18:

score: 0
Accepted
time: 9ms
memory: 1084kb

input:

100000 266 1
516 668
20 345
520 563
920 410
162 652
965 96
310 511
428 10
832 739
909 529
24 430
196...

output:

72369

result:

ok 1 number(s): "72369"

Test #19:

score: 0
Accepted
time: 8ms
memory: 1088kb

input:

100000 280 6
394 757 685 322 340 501 119
356 438 270 974 785 607 112
887 622 924 755 817 447 80
233 ...

output:

100458743381595284

result:

ok 1 number(s): "100458743381595284"

Test #20:

score: 0
Accepted
time: 8ms
memory: 1088kb

input:

100000 264 2
475 954 960
764 205 354
695 469 707
46 992 362
205 342 859
765 509 299
265 713 13
860 1...

output:

36759130

result:

ok 1 number(s): "36759130"

Subtask #3:

score: 20
Accepted

Test #21:

score: 20
Accepted
time: 10ms
memory: 1088kb

input:

100000 259 1
328 241
589 414
132 769
134 904
554 18
152 748
912 631
338 977
316 622
726 293
588 622
...

output:

69009

result:

ok 1 number(s): "69009"

Test #22:

score: 0
Accepted
time: 9ms
memory: 1088kb

input:

100000 282 1
832 191
53 215
689 815
219 388
470 446
444 670
729 662
227 127
158 384
531 319
394 401
...

output:

39094

result:

ok 1 number(s): "39094"

Test #23:

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

input:

100000 299 1
268 158
838 48
3 903
548 129
94 387
655 925
512 744
415 326
513 951
709 617
532 595
99 ...

output:

39287

result:

ok 1 number(s): "39287"

Test #24:

score: 0
Accepted
time: 14ms
memory: 3512kb

input:

100000 26673 1
665 5
340 785
536 776
65 77
720 122
591 779
172 515
902 735
407 973
841 635
475 713
2...

output:

1061

result:

ok 1 number(s): "1061"

Test #25:

score: 0
Accepted
time: 25ms
memory: 3700kb

input:

100000 29649 1
759 637
796 813
81 803
442 475
646 337
758 345
440 816
355 266
485 301
141 685
604 17...

output:

1009

result:

ok 1 number(s): "1009"

Test #26:

score: 0
Accepted
time: 21ms
memory: 3664kb

input:

100000 29072 1
582 546
168 757
426 353
271 223
524 365
918 773
769 34
404 19
382 382
766 564
458 264...

output:

1054

result:

ok 1 number(s): "1054"

Test #27:

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

input:

100000 8493 1
655 984
170 930
385 342
416 378
310 492
890 37
127 130
612 434
453 578
33 154
132 776
...

output:

2108

result:

ok 1 number(s): "2108"

Test #28:

score: 0
Accepted
time: 23ms
memory: 3128kb

input:

100000 20421 1
687 769
48 388
234 703
359 443
869 235
761 803
95 859
147 725
91 344
689 895
848 591
...

output:

1258

result:

ok 1 number(s): "1258"

Test #29:

score: 0
Accepted
time: 24ms
memory: 3456kb

input:

100000 25743 1
12 366
352 648
445 36
875 706
29 250
304 436
394 615
349 153
59 637
937 218
692 187
8...

output:

1100

result:

ok 1 number(s): "1100"

Test #30:

score: 0
Accepted
time: 20ms
memory: 2912kb

input:

100000 16990 1
192 313
736 533
620 653
212 184
156 284
668 360
489 936
77 785
104 844
684 469
479 69...

output:

1413

result:

ok 1 number(s): "1413"

Subtask #4:

score: 20
Accepted

Test #31:

score: 20
Accepted
time: 7ms
memory: 1080kb

input:

100000 253 7
15 411 742 447 941 588 23 0
578 24 14 190 443 350 114 0
6 153 371 229 389 775 85 0
22 4...

output:

165106770356214254

result:

ok 1 number(s): "165106770356214254"

Test #32:

score: 0
Accepted
time: 8ms
memory: 1088kb

input:

100000 258 6
150 928 495 647 328 493 136
395 432 667 89 853 136 12
885 554 156 660 267 344 107
566 9...

output:

152803125114396141

result:

ok 1 number(s): "152803125114396141"

Test #33:

score: 0
Accepted
time: 9ms
memory: 1084kb

input:

100000 268 1
18 395
989 659
33 787
512 399
362 444
249 386
849 955
587 353
288 86
954 822
121 201
23...

output:

68801

result:

ok 1 number(s): "68801"

Test #34:

score: 0
Accepted
time: 22ms
memory: 3696kb

input:

100000 29575 1
543 336
59 923
227 868
397 340
633 428
260 66
532 297
261 699
484 90
703 566
809 769
...

output:

1025

result:

ok 1 number(s): "1025"

Test #35:

score: 0
Accepted
time: 12ms
memory: 1504kb

input:

100000 4369 2
26 717 756
935 308 13
945 623 94
177 333 984
431 591 686
713 659 420
766 654 139
625 5...

output:

164555

result:

ok 1 number(s): "164555"

Test #36:

score: 0
Accepted
time: 23ms
memory: 2920kb

input:

100000 17199 7
417 206 551 357 56 110 44 0
184 295 463 813 792 222 12 0
26 370 189 869 37 129 25 0
5...

output:

9229419

result:

ok 1 number(s): "9229419"

Test #37:

score: 0
Accepted
time: 26ms
memory: 3036kb

input:

100000 19036 5
400 489 185 57 397 960
795 127 923 408 926 362
176 695 349 565 785 282
767 438 596 64...

output:

2986371

result:

ok 1 number(s): "2986371"

Test #38:

score: 0
Accepted
time: 20ms
memory: 2268kb

input:

100000 12493 2
982 721 265
789 57 335
651 721 79
613 79 808
473 255 464
615 548 386
944 607 683
119 ...

output:

25480

result:

ok 1 number(s): "25480"

Test #39:

score: 0
Accepted
time: 28ms
memory: 3400kb

input:

100000 24836 3
410 328 868 934
867 567 858 506
342 187 314 193
347 897 118 883
208 55 755 567
703 38...

output:

46033

result:

ok 1 number(s): "46033"

Test #40:

score: 0
Accepted
time: 24ms
memory: 3336kb

input:

100000 23867 4
535 350 63 928 656
853 948 603 106 693
502 140 310 831 912
640 600 808 528 968
923 67...

output:

241568

result:

ok 1 number(s): "241568"

Extra Test:

score: 0
Extra Test Passed