QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#503832#3888. Mountaineersxiaowuc1AC ✓711ms14464kbC++172.5kb2024-08-04 01:33:162024-08-04 01:33:17

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 5652kb

input:

3 5 3
1 3 2 1 3
2 4 5 4 4
2 1 3 2 2
1 1 3 2
2 4 2 2
1 4 3 4

output:

2
4
3

result:

ok 3 lines

Test #2:

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

input:

2 3 8
17 43 20
99 4 13
1 1 1 1
1 2 1 2
1 3 1 3
2 1 2 1
2 2 2 2
2 3 2 3
1 2 1 2
1 1 2 3

output:

17
43
20
99
4
13
43
43

result:

ok 8 lines

Test #3:

score: 0
Accepted
time: 711ms
memory: 14464kb

input:

424 255 96321
609973 853916 208437 995119 791409 385291 96180 97032 847714 807295 44243 237163 872650 873888 481031 937907 98321 470077 892710 162835 451952 199898 854154 697671 461830 606919 142238 452375 673686 310460 400943 998867 825153 816773 465784 233787 248921 561198 208327 129374 905035 303...

output:

589369
731137
682208
703844
594859
653297
590552
749451
606099
844688
591886
884902
855495
596431
930330
618967
627798
652955
574853
648041
594429
739067
602284
768679
625284
748668
870345
603728
597571
602284
944620
916409
584565
597571
967065
636795
869325
871505
593038
728527
587904
597571
947154...

result:

ok 96321 lines

Test #4:

score: 0
Accepted
time: 369ms
memory: 11372kb

input:

429 427 12692
802706 516173 69978 761736 45734 350936 890067 828490 381510 837068 199714 689940 35150 146199 596323 187113 331993 567448 701802 929044 365049 982027 172133 374596 790187 506221 228861 962301 663776 757131 282623 16822 587613 509269 153840 397957 326494 28994 720204 408640 842325 5451...

output:

974667
880949
662435
949949
712758
626342
818099
598788
651454
564111
659214
929437
957658
594473
902811
937882
602737
846070
607865
654439
726347
580497
898768
841488
631961
931792
604156
752450
796861
910010
683960
819069
924550
607348
913808
611421
623630
935417
607812
646592
607348
706384
651856...

result:

ok 12692 lines

Test #5:

score: 0
Accepted
time: 348ms
memory: 9612kb

input:

84 280 80262
680849 982279 371696 787800 948339 112158 227755 207433 336573 567850 467549 893868 592376 915609 160201 408062 307115 284544 535501 744552 685259 245271 178840 187335 547495 598185 577228 873737 905481 833161 496472 150125 812553 631867 360785 209479 868515 681669 581525 208074 463379 ...

output:

778861
996878
947226
849198
611995
662342
577957
624179
738039
604786
891607
908707
859357
685294
910326
961296
853116
631249
692764
753041
920128
892855
791154
975629
625316
961030
827075
956514
708312
662342
594825
746424
856718
783415
599807
610686
749935
615237
624179
608387
815219
625695
608387...

result:

ok 80262 lines

Test #6:

score: 0
Accepted
time: 260ms
memory: 9576kb

input:

323 99 49624
641156 633154 884272 380025 894445 458898 705419 247934 431802 840955 587959 579302 840502 101237 69275 73899 373987 520167 20003 658175 343447 541372 400171 406249 656370 427678 967888 155936 808340 315812 969405 452750 843649 345328 885297 473159 385723 517209 378167 811307 445263 865...

output:

609561
662701
889804
958428
647682
569630
732560
595519
616233
981932
640309
860655
609561
653576
805799
691825
916089
922599
609561
681454
885299
985990
569630
841282
648635
786447
508870
935353
814366
616233
601188
740476
616233
723846
611924
929475
609561
620972
609561
687263
621582
764847
809295...

result:

ok 49624 lines

Test #7:

score: 0
Accepted
time: 533ms
memory: 13440kb

input:

477 284 51729
328478 40956 785587 685858 930170 125406 744158 708935 137646 606886 433734 647553 509656 443272 736321 250219 952868 712700 847422 769670 732179 993142 640765 760433 263363 519765 3081 756894 56342 326565 244586 931881 541478 128654 92013 35273 703530 59396 689273 645158 381541 700053...

output:

604399
699844
988506
831731
732629
668921
612160
889590
798357
607578
792480
913760
703393
893462
904573
602015
938356
689511
940312
718028
970054
870529
649791
804421
619434
630918
689934
917829
572754
913291
857441
602015
612938
688208
774579
909180
938585
891604
783230
840928
605092
772706
800517...

result:

ok 51729 lines

Test #8:

score: 0
Accepted
time: 342ms
memory: 10032kb

input:

122 181 80447
255468 1442 19691 109637 253134 651264 452270 94596 619817 241240 205907 446574 506455 77425 418031 156657 787773 348560 991312 781246 185533 904609 349382 227568 682459 486322 711268 836731 666743 602040 284866 742216 369798 444462 722491 79010 964612 216665 802959 459907 369613 54320...

output:

620147
765482
968090
634191
733935
599981
935365
708292
595689
933319
909195
649957
621667
909195
625514
818837
599981
998584
714019
599981
905125
599981
716196
842661
994378
620147
633876
750108
721453
870854
983941
755815
937518
721830
761049
620147
996424
776590
791620
835300
599981
620147
572709...

result:

ok 80447 lines

Test #9:

score: 0
Accepted
time: 230ms
memory: 8756kb

input:

95 227 49367
413130 61119 300664 872095 347227 207384 11048 855274 880861 383985 561712 336389 229721 755672 264159 854114 316995 941248 499884 759695 621289 342462 445576 164847 587257 745308 277714 919765 686138 416605 593083 196174 421237 372344 25547 28764 5540 436402 41144 772598 794076 353363 ...

output:

728366
565654
683104
821594
961397
798131
948046
596426
698708
807593
726563
780048
998104
889302
610444
608185
941086
821419
580978
829387
596426
677356
891752
657979
951857
655640
762249
878272
939144
923130
716526
582486
785745
742800
991884
684900
686962
618679
727107
586388
747289
601264
891321...

result:

ok 49367 lines

Test #10:

score: 0
Accepted
time: 45ms
memory: 8508kb

input:

240 15 15432
93782 176842 626879 728246 175366 294772 777786 568172 768156 751820 600142 737433 95157 135067 540270
383869 760630 57127 555683 186892 491254 277720 517287 968820 109443 36455 568839 335878 533132 496031
848267 238917 818692 522097 450978 254563 159336 608817 137155 457989 949719 8237...

output:

673980
713672
639364
945399
693528
721624
880393
757769
700239
978404
917158
713672
999564
977866
636700
713672
713672
673980
848313
692119
713672
825083
784932
777713
840341
713672
759612
971064
796715
966690
713672
713672
639364
997308
700239
713672
709138
713672
716504
769194
723288
713672
673980...

result:

ok 15432 lines

Test #11:

score: 0
Accepted
time: 126ms
memory: 6896kb

input:

27 13 89054
142012 52484 425475 693106 256070 351761 939726 540615 53290 116146 169826 9620 252926
390292 903231 917483 667570 259998 701593 678060 889904 974643 683878 545299 773074 53207
797392 816425 987333 533554 220578 513254 521298 508963 639724 424757 603012 960388 278435
987479 116976 295511...

output:

679809
985321
677418
909605
867362
692679
730522
730522
959440
929885
603012
503511
814569
816256
476499
518378
646345
693106
518378
797392
668146
816256
905634
503511
762702
730522
917066
539966
677418
957717
667570
846231
692679
515588
476499
611540
794882
987333
957717
884035
521298
598815
518378...

result:

ok 89054 lines

Test #12:

score: 0
Accepted
time: 409ms
memory: 11428kb

input:

402 167 62924
723604 13854 270564 603783 779517 924971 809719 66203 996802 336284 698560 199560 952634 17539 954886 143566 140163 116267 463268 66466 585891 703088 186077 114425 573939 959395 928767 973402 571264 151150 289454 241055 495306 842015 338943 580696 421988 528991 853202 967925 91942 4729...

output:

616511
587725
613938
627514
617985
627514
792501
919704
612145
993301
559765
884520
755376
889311
654427
617985
672582
637379
613938
854680
963414
903103
661698
674398
635021
968708
859791
585779
643661
951299
635021
920772
878911
627514
944975
816222
630117
658818
919864
735279
867206
914021
995581...

result:

ok 62924 lines