QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#932306 | #436. Swapping Cities | xiaowuc1 | 100 ✓ | 89ms | 22308kb | C++20 | 2.7kb | 2025-03-12 14:22:31 | 2025-03-12 14:22:38 |
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
Subtask #1:
score: 0
Accepted
Test #1:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
2 1 0 1 7 1 0 1
output:
-1
result:
ok single line: '-1'
Subtask #2:
score: 0
Accepted
Test #3:
score: 0
Accepted
time: 0ms
memory: 5964kb
input:
3 2 0 1 17 1 2 31 4 0 1 1 2 0 2 0 1
output:
-1 -1 -1 -1
result:
ok 4 lines
Subtask #3:
score: 0
Accepted
Test #9:
score: 0
Accepted
time: 67ms
memory: 21996kb
input:
78487 78486 21940 24079 593765451 9058 50840 275027221 12096 22343 27089177 43977 52298 190799385 5430 49666 122910535 1966 50992 106732940 22047 65169 949810064 27980 65052 751605553 15372 20060 848481254 38243 77115 484610983 61070 66606 631024623 6943 50841 979259732 42129 51057 828673666 50591 6...
output:
-1 -1
result:
ok 2 lines
Subtask #4:
score: 0
Accepted
Test #14:
score: 0
Accepted
time: 76ms
memory: 21224kb
input:
78254 78253 9775 28301 780798184 24132 40634 94556968 10169 55532 346574336 2603 65541 873326115 22699 58466 669409812 16474 42626 302001067 15127 56693 625109610 64811 67816 578907024 46689 60091 972201244 27305 39328 642009505 12305 64823 890024771 14652 41221 804727810 14493 38064 692491627 39467...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok 18751 lines
Subtask #5:
score: 0
Accepted
Test #19:
score: 0
Accepted
time: 89ms
memory: 22308kb
input:
94623 94622 0 75305 622253738 0 54796 462724128 0 75886 137979635 0 66452 665511713 0 64781 420871714 0 2628 102391513 0 74571 844600388 0 76649 57731825 0 36212 950028495 0 47294 149834685 0 28114 545648033 0 56460 673370408 0 66350 337337539 0 18222 283237145 0 72426 916482721 0 57766 119923766 0 ...
output:
860148668 999773640 548578490 665594696 855392447 897265657 892048171 845668166 355156446 277230669 913611642 453737557 492253954 853354202 989302450 974664128 857227765 280875614 845329631 943817066 884159669 715125377 852337346 939409087 937559913 551196227 555263380 881942828 583059294 196822146 ...
result:
ok 189713 lines
Subtask #6:
score: 0
Accepted
Test #27:
score: 0
Accepted
time: 0ms
memory: 6120kb
input:
990 989 47 838 302271558 273 492 664559881 148 815 976564144 331 495 44254198 669 820 218690102 188 882 677033947 643 698 971006957 488 729 679293846 256 281 332371780 127 771 383138407 134 679 846068552 596 599 203286566 613 941 328910657 432 852 151755209 145 463 456917162 0 71 752175798 152 789 8...
output:
846613094 995525905 947339716 995525905
result:
ok 4 lines
Subtask #7:
score: 0
Accepted
Test #36:
score: 0
Accepted
time: 9ms
memory: 8200kb
input:
13604 13603 8356 8403 796466173 5628 8429 906962701 3920 11930 959959178 6663 6830 290048491 915 9376 663274411 8722 13162 195512431 2211 6043 263205971 8174 13268 998861827 10074 10858 784154000 8290 11604 141391920 20 7972 249696621 3338 4649 65522585 3608 11223 132978393 2265 5109 973339144 5136 ...
output:
997836405
result:
ok single line: '997836405'
Subtask #8:
score: 0
Accepted
Test #47:
score: 0
Accepted
time: 11ms
memory: 6528kb
input:
12312 12311 2916 8085 175102149 1475 6850 309919528 6782 9694 260794553 2517 8281 584952046 4250 7806 662855436 412 9797 731092675 6802 9405 845105258 3077 10964 132387860 225 5421 28087274 1741 11558 107203447 4227 11940 313968264 4567 6286 246562765 8712 9079 851022380 6136 7008 430961650 3459 540...
output:
924041708 997007573 999543724 999543724 999543724 986867837 999543724 997881243 995634941 999543724 997881243 999543724 999543724 999543724 999543724 999543724 995634941 999543724 916268961 999543724 999543724 999543724 997617085 985021618 999543724 999543724 996107097 999543724 999543724 999543724 ...
result:
ok 20276 lines
Subtask #9:
score: 0
Accepted
Test #58:
score: 0
Accepted
time: 49ms
memory: 10404kb
input:
15780 15780 9590 14917 123113565 8122 11966 171896575 4538 9640 684944907 310 15055 407333658 6468 6696 360870061 14420 14762 755531343 1519 7305 780579452 4826 10759 449674098 962 6310 894674872 1063 3895 307635821 1732 6606 796058884 9844 13284 963137200 3006 11229 839846442 9699 12787 436669041 3...
output:
999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 999989524 ...
result:
ok 159998 lines
Subtask #10:
score: 0
Accepted
Test #63:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
700 981 98 105 341789735 208 604 709973200 335 644 104865354 338 602 812201660 343 518 643785882 573 628 351487907 34 371 52914687 309 353 606226854 279 656 985748970 225 364 196001300 31 40 990562200 355 510 995899482 258 663 316091802 270 314 981972681 39 383 327795015 177 199 325653340 44 342 461...
output:
861519786 688215423 760926930 532860158
result:
ok 4 lines
Subtask #11:
score: 0
Accepted
Test #73:
score: 0
Accepted
time: 73ms
memory: 21804kb
input:
78545 146764 18353 73568 390778280 12956 64342 108778687 15074 61576 760673206 42118 71716 240356072 2787 39663 244001782 56627 68256 551718402 41708 74741 185084427 54908 55871 646459940 34896 59980 645111379 2554 54709 139732994 222 57068 172643582 34548 53342 121908641 17689 46437 342955316 42968...
output:
555397722 503859531 330832204 367074456 731191626
result:
ok 5 lines
Subtask #12:
score: 0
Accepted
Test #85:
score: 0
Accepted
time: 34ms
memory: 10288kb
input:
31126 49978 11370 29373 763709607 7784 30527 424491075 6825 18769 724126326 8225 28703 895476400 5674 25870 738364236 7240 26466 498917748 6427 27557 798811343 11304 27132 672101930 27476 31031 629664039 24050 29200 377006402 6716 18044 763174184 4099 4891 290207161 24287 26673 841170290 4755 16253 ...
output:
697457584 573424065 555191004 543296805 590546490 623748100 396796606 431618352 677679639 453461864 425099107 655065249 567987779 466633532 600275452 487944580 503124310 671769005 735875066 506389901 461728729 557590959 640594394 511355590 647260235 592189433 523526435 631878306 685616708 523816574 ...
result:
ok 50515 lines
Extra Test:
score: 0
Extra Test Passed