QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#512675 | #9177. String and Nails | ucup-team3742# | AC ✓ | 63ms | 6388kb | C++23 | 2.5kb | 2024-08-10 15:20:49 | 2024-08-10 15:20:51 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3600kb
input:
3 1 1 2 4 3 1
output:
YES 3 1 1 1
result:
ok Everything ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
1 1000000000 0
output:
YES
result:
ok Everything ok
Test #3:
score: 0
Accepted
time: 59ms
memory: 6164kb
input:
200000 500000000 500000000 500244009 499720246 500488018 499440492 500732027 499160738 500976036 498880984 501220045 498601230 501464054 498321476 501708063 498041722 501952072 497761968 502196081 497482214 502440090 497202460 502684099 496922706 502928108 496642952 503172117 496363198 503416126 496...
output:
YES 828032037 688093945 827752283 687849936 827472529 687605927 827192775 687361918 826913021 687117909 826633267 686873900 826353513 686629891 826073759 686385882 825794005 686141873 825514251 685897864 825234497 685653855 824954743 685409846 824674989 685165837 824395235 684921828 824115481 684677...
result:
ok Everything ok
Test #4:
score: 0
Accepted
time: 50ms
memory: 6220kb
input:
200000 500000000 500000000 500222156 499645622 500444312 499291244 500666468 498936866 500888624 498582488 501110780 498228110 501332936 497873732 501555092 497519354 501777248 497164976 501999404 496810598 502221560 496456220 502443716 496101842 502665872 495747464 502888028 495393086 503110184 495...
output:
YES 898232666 651412622 897878288 651190466 897523910 650968310 897169532 650746154 896815154 650523998 896460776 650301842 896106398 650079686 898010510 651767000 895752020 649857530 897656132 651544844 895397642 649635374 897301754 651322688 895043264 649413218 896947376 651100532 894688886 649191...
result:
ok Everything ok
Test #5:
score: 0
Accepted
time: 45ms
memory: 6388kb
input:
200000 500000000 500000000 500000000 499720246 500000000 499440492 500000000 499160738 500000000 498880984 500000000 498601230 500000000 498321476 500000000 498041722 500000000 497761968 500000000 497482214 500000000 497202460 500000000 496922706 500000000 496642952 500000000 496363198 500000000 496...
output:
YES 779474246 444328954 779194492 444328954 779474246 444608708 778914738 444328954 779194492 444608708 779474246 444888462 778634984 444328954 778914738 444608708 779194492 444888462 779474246 445168216 778355230 444328954 778634984 444608708 778914738 444888462 779194492 445168216 779474246 445447...
result:
ok Everything ok
Test #6:
score: 0
Accepted
time: 54ms
memory: 6212kb
input:
200000 500000000 500000000 500040773 499984682 500081546 499969364 500122319 499954046 500163092 499938728 500203865 499923410 500244638 499908092 500285411 499892774 500326184 499877456 500366957 499862138 500407730 499846820 500448503 499831502 500489276 499816184 500530049 499800866 500570822 499...
output:
YES 500774687 499708958 500790005 499749731 500805323 499790504 500733914 499724276 500820641 499831277 500749232 499765049 500835959 499872050 500764550 499805822 500693141 499739594 500851277 499912823 500779868 499846595 500708459 499780367 500866595 499953596 500795186 499887368 500723777 499821...
result:
ok Everything ok
Test #7:
score: 0
Accepted
time: 57ms
memory: 6188kb
input:
200000 500000000 500000000 500003221 499984460 500006442 499968920 500009663 499953380 500012884 499937840 500016105 499922300 500019326 499906760 500022547 499891220 500025768 499875680 500028989 499860140 500032210 499844600 500035431 499829060 500038652 499813520 500041873 499797980 500045094 499...
output:
YES 564556639 189244529 564541099 189241308 564525559 189238087 564553418 189260069 564510019 189234866 564537878 189256848 564494479 189231645 564522338 189253627 564550197 189275609 564478939 189228424 564506798 189250406 564534657 189272388 564463399 189225203 564491258 189247185 564519117 189269...
result:
ok Everything ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
100 29 58 10 60 7 34 47 47 48 29 37 25 30 42 47 32 60 28 0 2 53 1 42 32 3 34 52 24 45 7 32 60 40 1 15 22 60 43 17 19 17 54 24 22 21 38 37 26 11 46 18 59 27 18 11 19 34 14 8 16 50 38 29 10 34 59 5 28 14 36 34 41 57 53 25 8 17 0 35 5 60 52 36 10 38 8 50 41 38 18 45 39 44 16 33 21 18 19 51 25 35 58 49 ...
output:
YES 60 6 53 1 49 0 56 13 52 12 40 1 45 7 52 16 60 28 38 8 35 5 52 24 44 16 51 25 36 10 27 4 49 28 34 13 28 7 38 18 34 14 57 38 48 29 29 10 60 43 25 8 17 0 52 36 53 38 47 32 43 30 17 4 50 38 37 25 33 21 37 26 42 32 50 41 27 18 60 52 56 48 45 39 57 53 35 32 37 35 30 28 24 22 46 45 20 19 47 47 18 19 17...
result:
ok Everything ok
Test #9:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
100 42 46 57 9 21 58 30 46 43 25 43 31 15 28 33 8 31 28 48 26 47 54 57 13 33 11 4 1 5 0 28 45 4 10 9 56 54 49 6 20 49 22 33 43 31 15 42 56 51 15 3 29 46 23 22 29 49 50 16 20 60 48 41 16 42 53 14 41 17 45 31 6 50 19 6 0 57 50 36 40 29 34 0 33 52 59 17 7 37 23 20 31 8 14 56 28 2 53 44 3 54 18 22 59 53...
output:
YES 60 11 57 9 49 4 57 13 51 7 45 1 59 16 44 3 57 18 54 18 51 15 36 4 32 0 50 19 38 7 56 28 53 26 49 22 57 32 41 16 33 8 31 6 36 12 46 23 48 26 36 14 33 11 23 1 43 25 36 20 31 15 37 23 60 48 43 31 22 10 44 34 17 7 30 21 57 50 6 0 54 49 5 0 20 16 51 48 31 28 4 1 11 9 2 1 10 10 49 50 47 48 44 45 55 57...
result:
ok Everything ok
Test #10:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
100 47 30 32 14 26 29 13 41 45 17 42 34 56 2 11 57 11 28 39 0 40 47 19 43 59 57 21 39 33 45 16 17 17 22 60 42 39 55 52 18 28 48 42 6 44 48 56 29 26 40 41 31 43 40 24 32 9 44 41 23 30 5 30 36 36 35 22 12 6 46 57 44 9 21 25 29 3 0 18 26 25 35 29 50 23 42 43 15 58 49 37 10 42 30 8 40 6 18 8 27 30 44 47...
output:
YES 59 3 56 2 58 7 51 4 39 0 56 19 42 6 52 18 48 15 44 14 44 15 45 17 43 15 33 5 56 29 37 10 30 5 51 28 53 31 60 42 41 23 32 14 47 30 22 6 44 30 41 27 57 44 49 36 26 13 42 30 27 15 12 1 41 31 22 12 58 49 9 0 42 34 34 29 13 8 60 56 8 4 43 40 27 24 19 16 3 0 59 57 53 52 42 41 36 35 47 47 16 17 46 48 2...
result:
ok Everything ok
Test #11:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
100 60 19 19 20 36 57 54 36 40 17 45 45 32 49 58 41 47 28 26 28 38 48 39 24 24 43 30 8 53 45 12 2 35 30 54 19 33 0 36 24 60 8 2 27 1 25 0 59 13 13 47 52 22 60 6 36 54 51 25 8 52 51 57 9 39 45 51 41 6 51 32 43 52 40 57 39 4 4 36 6 9 18 21 13 50 1 50 33 38 29 31 53 47 37 56 45 53 21 13 34 1 23 42 18 3...
output:
YES 60 8 53 3 50 1 57 9 48 0 48 2 49 4 44 1 60 19 57 18 54 15 43 6 57 21 54 19 33 0 53 21 36 6 35 7 29 1 60 33 43 17 31 5 42 18 40 17 30 7 30 8 54 34 47 28 57 39 54 36 58 41 55 38 50 33 25 8 31 15 39 24 46 32 52 40 36 24 56 45 60 50 51 41 47 37 12 2 38 29 53 45 21 13 42 37 35 30 54 51 36 33 52 51 55...
result:
ok Everything ok
Test #12:
score: 0
Accepted
time: 45ms
memory: 6116kb
input:
200000 658 517 723 846 391 133 564 468 633 202 556 954 760 456 151 969 436 184 984 490 896 355 871 985 101 474 136 92 220 747 833 272 839 145 783 485 78 888 819 829 177 209 233 546 709 414 105 273 955 945 748 593 182 181 160 645 532 327 491 354 512 24 190 152 147 539 476 300 474 289 478 772 157 853 ...
output:
YES 999 0 998 1 997 1 995 0 994 0 996 2 1000 6 993 0 996 3 996 4 997 5 998 6 993 3 997 7 989 0 990 1 991 2 995 6 990 2 993 5 995 7 999 11 987 0 992 5 995 8 999 12 986 0 988 2 993 7 994 8 999 13 994 9 999 15 988 5 989 6 994 11 998 15 983 1 986 4 990 8 991 9 995 13 999 17 982 1 987 6 990 9 992 11 994 ...
result:
ok Everything ok
Test #13:
score: 0
Accepted
time: 45ms
memory: 6340kb
input:
200000 378 842 689 0 407 360 925 706 35 241 517 296 157 365 379 630 234 828 370 628 28 136 367 483 546 638 995 367 901 983 479 253 812 610 454 878 250 0 618 535 221 325 346 583 470 440 997 887 197 643 613 711 687 194 468 519 837 984 844 159 220 857 101 701 120 531 391 802 361 11 519 944 370 285 766 ...
output:
YES 1000 1 1000 2 998 2 999 3 1000 5 998 5 999 6 994 2 991 0 995 4 996 5 991 1 994 5 989 1 998 10 991 4 992 5 995 8 987 1 995 9 997 11 985 0 988 3 989 4 995 10 984 0 987 3 995 11 996 12 990 7 995 12 996 13 997 14 994 12 996 14 985 4 995 14 1000 19 986 6 995 15 999 19 1000 20 980 1 984 5 988 9 991 12...
result:
ok Everything ok
Test #14:
score: 0
Accepted
time: 49ms
memory: 6208kb
input:
200000 860 546 26 774 422 975 277 563 812 661 98 259 937 887 599 299 41 472 376 385 154 919 855 361 229 191 472 22 572 217 506 227 15 75 116 501 803 733 799 860 893 53 459 238 223 848 127 889 821 952 105 439 182 960 529 12 761 640 824 576 920 681 631 241 85 531 314 542 240 734 933 124 972 710 593 79...
output:
YES 997 0 998 1 999 2 1000 3 996 1 994 1 995 2 996 3 997 4 999 6 992 1 993 2 989 0 990 1 992 3 998 9 989 1 998 10 987 0 999 12 988 2 991 5 993 7 987 2 993 8 998 14 999 15 1000 16 988 5 995 12 997 14 998 15 987 5 989 7 985 4 987 6 989 8 992 11 994 13 999 18 990 10 994 14 996 16 987 8 994 15 981 3 988...
result:
ok Everything ok
Test #15:
score: 0
Accepted
time: 62ms
memory: 6344kb
input:
200000 824175840 488750041 893673855 438646868 506562578 184637200 761446161 4953165 923499503 652902113 817153029 230202371 946810300 303530617 906604390 328096095 697686565 540398115 228789229 425571938 208244496 326466740 966638889 820582012 90257817 655318977 216563076 98765025 574316317 6924138...
output:
YES 999436779 1164850 997016850 1163940 992688784 878336 996114303 2668507 995692505 3375659 996640748 4287233 995555061 4446194 989890998 1729992 992611746 3289276 986605967 353522 986530597 411357 994724248 4546860 998763907 7049160 985164731 272142 997575575 7592954 999357754 8750682 984941122 17...
result:
ok Everything ok
Test #16:
score: 0
Accepted
time: 63ms
memory: 6280kb
input:
200000 1433020 626069928 229180372 161196849 900502139 7107082 972307164 933305447 771737287 191739450 323730061 8183918 949678944 490542724 523994382 985258262 953870673 374422949 96559137 217074405 627267233 174567394 573638149 400359707 141414987 321531687 809839237 701887439 316867805 708592231 ...
output:
YES 997416866 1587312 996054192 1530436 991402209 216877 992232365 943432 991606308 1218445 997918515 4745588 995031646 3948141 992674880 4233935 992061739 4315286 985746278 1368675 982841229 234251 987219437 2497891 991102047 4728587 983199278 893601 992129185 5436990 996307321 7576701 997795429 88...
result:
ok Everything ok
Test #17:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
5 0 1000000000 1000000000 0 0 0 1000000000 1000000000 500000000 500000000
output:
YES 1000000000 0 1000000000 1000000000 500000000 500000000 0 0
result:
ok Everything ok
Test #18:
score: 0
Accepted
time: 62ms
memory: 6120kb
input:
200000 178690201 763389816 228250401 473681415 925845481 534609673 814571948 566690436 30040488 435609496 125274385 81132757 247514879 898893195 67755446 273824208 841458560 282076711 669361754 713609582 46289970 432733465 107008482 685170111 487539449 987744399 108148105 83671488 722982805 72477062...
output:
YES 999226352 3625203 994387843 1351146 996237830 2324138 998008605 4015179 990033899 1105673 993655659 3237506 996738619 5165912 998172088 6185523 997288486 6427342 998434151 7448322 994953030 5933535 983819678 406649 989250516 3232549 982654665 139642 994506324 6441782 983019211 892291 995541646 7...
result:
ok Everything ok
Test #19:
score: 0
Accepted
time: 62ms
memory: 6152kb
input:
200000 60980090 900709703 858724210 491198688 319785041 430708482 25432950 790010009 878278273 384512251 926818709 490518084 176754595 380872594 685145439 562390155 24013739 116101546 537131662 136515830 833908927 617270608 8975034 264947807 833663911 990393598 406456974 391826610 170567002 74094902...
output:
YES 999156344 209893 997416116 519317 996935539 1024193 998249799 3270898 999062927 4291269 995817240 2934807 991442966 795336 993513155 2352258 998284382 5183968 991983871 2697395 986727986 547881 985854691 113936 993810902 4231774 989692757 2884074 999110922 7632791 992429761 5531063 981990350 356...
result:
ok Everything ok
Test #20:
score: 0
Accepted
time: 62ms
memory: 6316kb
input:
200000 943269980 38029589 857794239 582344890 713724603 253178364 572730442 718362290 726516058 923349589 728363033 563466923 179623240 789223065 933939212 555988811 575165138 655159089 404901571 633051007 957964373 170403969 910941587 918354431 884821081 656606308 999733135 363545243 281714710 9784...
output:
YES 999788077 400349 999678686 1679269 999076826 3005970 997431407 2297871 997657682 3061587 994308414 1607458 997450288 3440513 993270476 1449632 999422056 4555229 989634433 162647 997691677 4263404 994646652 3380971 990060934 1186060 990336447 1623910 998010175 5578422 997461152 5548848 995304988 ...
result:
ok Everything ok
Test #21:
score: 0
Accepted
time: 55ms
memory: 6120kb
input:
200000 415494452 470316769 193300756 599862164 34035236 780680955 709962518 351747279 279786550 167219634 529907356 46481178 477459176 271202463 182732984 844554758 757720317 857780143 977704188 129586183 376987109 723537332 107875431 498132126 230945542 322819018 298042004 376733073 319233490 99464...
output:
YES 999055859 1060476 997404535 868562 995559337 97881 998685085 2388774 994410053 412306 994621577 524971 994413018 747112 996958713 2160764 996281875 2382147 995087769 1975378 998376516 3790123 997127985 3349943 988326711 814438 989955422 1726639 995026056 4474183 997225222 5714251 997221533 60251...
result:
ok Everything ok
Test #22:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
100 500000000 500000000 500000000 489443908 500000000 478887816 500000000 468331724 500000000 457775632 500000000 447219540 500000000 436663448 500000000 426107356 500000000 415551264 500000000 404995172 510556092 500000000 510556092 489443908 510556092 478887816 510556092 468331724 510556092 457775...
output:
YES 595004828 404995172 584448736 404995172 595004828 415551264 573892644 404995172 584448736 415551264 595004828 426107356 563336552 404995172 573892644 415551264 584448736 426107356 595004828 436663448 552780460 404995172 563336552 415551264 573892644 426107356 584448736 436663448 595004828 447219...
result:
ok Everything ok
Test #23:
score: 0
Accepted
time: 57ms
memory: 6108kb
input:
200000 571121104 497369632 424233472 502802176 635651583 494983014 459708961 501490138 627796261 495273538 615283564 495736312 535668814 498680812 639758509 494831122 592923243 496563294 523187049 499142442 426839493 502705794 378712816 504485728 394223105 503912090 581741325 496976850 619310348 495...
output:
YES 640600000 494800000 640599297 494800026 640597891 494800078 640594376 494800208 640592267 494800286 640588049 494800442 640587346 494800468 640586643 494800494 640584534 494800572 640583128 494800624 640581722 494800676 640581019 494800702 640580316 494800728 640579613 494800754 640578910 494800...
result:
ok Everything ok
Extra Test:
score: 0
Extra Test Passed