QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#383359 | #4633. Coprime Matrices | HuangHanSheng | AC ✓ | 6ms | 4872kb | C++14 | 789b | 2024-04-09 11:06:12 | 2024-04-09 11:06:13 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3656kb
input:
3 3 2 1 3
output:
Yes 7 8 6 3 9 1 4 5 2
result:
ok OK, Accepted.
Test #2:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
1 1 1 1 1
output:
Yes 1
result:
ok OK, Accepted.
Test #3:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
8 3 4 2 9
output:
Yes 1 2 24 6 3 4 7 8 5 12 9 10 13 14 11 18 15 16 19 20 17 23 21 22
result:
ok OK, Accepted.
Test #4:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
7 6 7 2 28
output:
Yes 4 37 38 32 33 31 5 6 39 40 34 35 16 7 8 41 42 36 17 18 9 10 1 2 25 19 20 11 12 3 26 27 21 22 13 14 30 28 29 23 24 15
result:
ok OK, Accepted.
Test #5:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
6 8 1 2 7
output:
Yes 19 7 8 46 47 41 42 40 20 21 9 10 48 1 43 44 30 22 23 11 12 2 3 45 31 32 24 25 13 14 4 5 37 33 34 26 27 15 16 6 38 39 35 36 28 29 17 18
result:
ok OK, Accepted.
Test #6:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
8 8 7 3 56
output:
Yes 26 13 14 4 5 63 64 62 27 28 15 16 6 7 1 2 41 29 30 17 18 8 9 3 42 43 31 32 19 20 10 11 52 44 45 33 34 21 22 12 53 54 46 47 35 36 23 24 59 55 56 48 49 37 38 25 60 61 57 58 50 51 39 40
result:
ok OK, Accepted.
Test #7:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
2 4 2 1 8
output:
Yes 7 3 4 2 8 1 5 6
result:
ok OK, Accepted.
Test #8:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
6 6 4 2 17
output:
Yes 4 31 32 26 27 25 5 6 33 34 28 29 15 7 8 35 36 30 16 17 9 10 1 2 22 18 19 11 12 3 23 24 20 21 13 14
result:
ok OK, Accepted.
Test #9:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
8 6 3 1 33
output:
Yes 21 12 13 7 8 6 22 23 14 15 9 10 33 24 25 16 17 11 34 35 26 27 18 19 44 36 37 28 29 20 45 46 38 39 30 31 3 47 48 40 41 32 4 5 1 2 42 43
result:
ok OK, Accepted.
Test #10:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
2 8 2 4 15
output:
Yes 16 12 13 8 9 4 5 3 1 2 14 15 10 11 6 7
result:
ok OK, Accepted.
Test #11:
score: 0
Accepted
time: 3ms
memory: 4720kb
input:
295 280 79 198 74034
output:
Yes 17618 17061 17062 16508 16509 15959 15960 15414 15415 14873 14874 14336 14337 13803 13804 13274 13275 12749 12750 12228 12229 11711 11712 11198 11199 10689 10690 10184 10185 9683 9684 9186 9187 8693 8694 8204 8205 7719 7720 7238 7239 6761 6762 6288 6289 5819 5820 5354 5355 4893 4894 4436 4437 39...
result:
ok OK, Accepted.
Test #12:
score: 0
Accepted
time: 1ms
memory: 4144kb
input:
300 26 55 17 3020
output:
Yes 2000 1951 1952 1906 1907 1865 1866 1828 1829 1795 1796 1766 1767 1741 1742 1720 1721 1703 1704 1690 1691 1681 1682 1676 1677 1675 2001 2002 1953 1954 1908 1909 1867 1868 1830 1831 1797 1798 1768 1769 1743 1744 1722 1723 1705 1706 1692 1693 1683 1684 1678 1679 2052 2003 2004 1955 1956 1910 1911 1...
result:
ok OK, Accepted.
Test #13:
score: 0
Accepted
time: 3ms
memory: 4752kb
input:
288 282 125 58 43649
output:
Yes 26692 26131 26132 25574 25575 25021 25022 24472 24473 23927 23928 23386 23387 22849 22850 22316 22317 21787 21788 21262 21263 20741 20742 20224 20225 19711 19712 19202 19203 18697 18698 18196 18197 17699 17700 17206 17207 16717 16718 16232 16233 15751 15752 15274 15275 14801 14802 14332 14333 13...
result:
ok OK, Accepted.
Test #14:
score: 0
Accepted
time: 3ms
memory: 4100kb
input:
128 299 59 164 38067
output:
Yes 12990 12991 12734 12735 12478 12479 12222 12223 11966 11967 11710 11711 11454 11455 11198 11199 10942 10943 10686 10687 10430 10431 10174 10175 9918 9919 9662 9663 9406 9407 9150 9151 8894 8895 8638 8639 8382 8383 8126 8127 7870 7871 7614 7615 7358 7359 7102 7103 6846 6847 6590 6591 6334 6335 60...
result:
ok OK, Accepted.
Test #15:
score: 0
Accepted
time: 3ms
memory: 4768kb
input:
300 300 286 253 60209
output:
Yes 50600 50003 50004 49410 49411 48821 48822 48236 48237 47655 47656 47078 47079 46505 46506 45936 45937 45371 45372 44810 44811 44253 44254 43700 43701 43151 43152 42606 42607 42065 42066 41528 41529 40995 40996 40466 40467 39941 39942 39420 39421 38903 38904 38390 38391 37881 37882 37376 37377 36...
result:
ok OK, Accepted.
Test #16:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
240 77 171 56 15870
output:
Yes 6829 6830 6680 6681 6535 6536 6394 6395 6257 6258 6124 6125 5995 5996 5870 5871 5749 5750 5632 5633 5519 5520 5410 5411 5305 5306 5204 5205 5107 5108 5014 5015 4925 4926 4840 4841 4759 4760 4682 4683 4609 4610 4540 4541 4475 4476 4414 4415 4357 4358 4304 4305 4255 4256 4210 4211 4169 4170 4132 4...
result:
ok OK, Accepted.
Test #17:
score: 0
Accepted
time: 2ms
memory: 3968kb
input:
165 141 69 107 11237
output:
Yes 15680 15681 15403 15404 15130 15131 14861 14862 14596 14597 14335 14336 14078 14079 13825 13826 13576 13577 13331 13332 13090 13091 12853 12854 12620 12621 12391 12392 12166 12167 11945 11946 11728 11729 11515 11516 11306 11307 11101 11102 10900 10901 10703 10704 10510 10511 10321 10322 10136 10...
result:
ok OK, Accepted.
Test #18:
score: 0
Accepted
time: 0ms
memory: 4196kb
input:
300 200 106 195 36560
output:
Yes 50255 49858 49859 49465 49466 49076 49077 48691 48692 48310 48311 47933 47934 47560 47561 47191 47192 46826 46827 46465 46466 46108 46109 45755 45756 45406 45407 45061 45062 44720 44721 44383 44384 44050 44051 43721 43722 43396 43397 43075 43076 42758 42759 42445 42446 42136 42137 41831 41832 41...
result:
ok OK, Accepted.
Test #19:
score: 0
Accepted
time: 1ms
memory: 4000kb
input:
247 46 55 25 776
output:
Yes 10710 10621 10622 10536 10537 10455 10456 10378 10379 10305 10306 10236 10237 10171 10172 10110 10111 10053 10054 10000 10001 9951 9952 9906 9907 9865 9866 9828 9829 9795 9796 9766 9767 9741 9742 9720 9721 9703 9704 9690 9691 9681 9682 9676 9677 9675 10711 10712 10623 10624 10538 10539 10457 104...
result:
ok OK, Accepted.
Test #20:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
18 300 15 168 2858
output:
Yes 202 166 167 130 131 94 95 58 59 22 23 5386 5387 5350 5351 5314 5315 5278 5279 5242 5243 5206 5207 5170 5171 5134 5135 5098 5099 5062 5063 5026 5027 4990 4991 4954 4955 4918 4919 4882 4883 4846 4847 4810 4811 4774 4775 4738 4739 4702 4703 4666 4667 4630 4631 4594 4595 4558 4559 4522 4523 4486 448...
result:
ok OK, Accepted.
Test #21:
score: 0
Accepted
time: 0ms
memory: 4112kb
input:
300 58 71 22 15741
output:
Yes 12914 12801 12802 12692 12693 12587 12588 12486 12487 12389 12390 12296 12297 12207 12208 12122 12123 12041 12042 11964 11965 11891 11892 11822 11823 11757 11758 11696 11697 11639 11640 11586 11587 11537 11538 11492 11493 11451 11452 11414 11415 11381 11382 11352 11353 11327 11328 11306 11307 11...
result:
ok OK, Accepted.
Test #22:
score: 0
Accepted
time: 5ms
memory: 4872kb
input:
290 262 3 217 58080
output:
Yes 15158 14637 14638 14120 14121 13607 13608 13098 13099 12593 12594 12092 12093 11595 11596 11102 11103 10613 10614 10128 10129 9647 9648 9170 9171 8697 8698 8228 8229 7763 7764 7302 7303 6845 6846 6392 6393 5943 5944 5498 5499 5057 5058 4620 4621 4187 4188 3758 3759 3333 3334 2912 2913 2495 2496 ...
result:
ok OK, Accepted.
Test #23:
score: 0
Accepted
time: 4ms
memory: 4128kb
input:
231 272 226 145 45674
output:
Yes 30065 29603 29604 29141 29142 28679 28680 28217 28218 27755 27756 27293 27294 26831 26832 26369 26370 25907 25908 25445 25446 24983 24984 24521 24522 24059 24060 23597 23598 23135 23136 22673 22674 22211 22212 21749 21750 21287 21288 20825 20826 20364 20365 19907 19908 19454 19455 19005 19006 18...
result:
ok OK, Accepted.
Test #24:
score: 0
Accepted
time: 0ms
memory: 4076kb
input:
300 116 15 107 32192
output:
Yes 3757 3528 3529 3303 3304 3082 3083 2865 2866 2652 2653 2443 2444 2238 2239 2037 2038 1840 1841 1647 1648 1458 1459 1273 1274 1092 1093 915 916 742 743 573 574 408 409 247 248 90 91 34737 34738 34588 34589 34443 34444 34302 34303 34165 34166 34032 34033 33903 33904 33778 33779 33657 33658 33540 3...
result:
ok OK, Accepted.
Test #25:
score: 0
Accepted
time: 3ms
memory: 3956kb
input:
126 300 67 285 17771
output:
Yes 6316 6064 6065 5812 5813 5560 5561 5308 5309 5056 5057 4804 4805 4552 4553 4300 4301 4048 4049 3796 3797 3544 3545 3292 3293 3040 3041 2788 2789 2536 2537 2284 2285 2032 2033 1780 1781 1528 1529 1276 1277 1024 1025 772 773 520 521 268 269 16 17 37564 37565 37312 37313 37060 37061 36808 36809 365...
result:
ok OK, Accepted.
Test #26:
score: 0
Accepted
time: 2ms
memory: 4052kb
input:
231 117 51 40 8557
output:
Yes 7076 7077 6847 6848 6622 6623 6401 6402 6184 6185 5971 5972 5762 5763 5557 5558 5356 5357 5159 5160 4966 4967 4777 4778 4592 4593 4411 4412 4234 4235 4061 4062 3892 3893 3727 3728 3566 3567 3409 3410 3256 3257 3107 3108 2962 2963 2821 2822 2684 2685 2551 2552 2422 2423 2297 2298 2176 2177 2059 2...
result:
ok OK, Accepted.
Test #27:
score: 0
Accepted
time: 3ms
memory: 4192kb
input:
300 124 203 13 3245
output:
Yes 16952 16707 16708 16466 16467 16229 16230 15996 15997 15767 15768 15542 15543 15321 15322 15104 15105 14891 14892 14682 14683 14477 14478 14276 14277 14079 14080 13886 13887 13697 13698 13512 13513 13331 13332 13154 13155 12981 12982 12812 12813 12647 12648 12486 12487 12329 12330 12176 12177 12...
result:
ok OK, Accepted.
Test #28:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
62 146 44 52 331
output:
Yes 740 616 617 492 493 368 369 244 245 120 121 9048 9049 8924 8925 8800 8801 8676 8677 8552 8553 8428 8429 8304 8305 8180 8181 8056 8057 7932 7933 7808 7809 7684 7685 7560 7561 7436 7437 7312 7313 7188 7189 7064 7065 6940 6941 6816 6817 6692 6693 6568 6569 6444 6445 6320 6321 6196 6197 6072 6073 59...
result:
ok OK, Accepted.
Test #29:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
40 52 22 17 1571
output:
Yes 1384 1304 1305 1224 1225 1144 1145 1064 1065 984 985 904 905 827 828 754 755 685 686 620 621 559 560 502 503 449 450 400 401 355 356 314 315 277 278 244 245 215 216 190 191 169 170 152 153 139 140 130 131 125 126 124 1385 1386 1306 1307 1226 1227 1146 1147 1066 1067 986 987 906 907 829 830 756 7...
result:
ok OK, Accepted.
Test #30:
score: 0
Accepted
time: 3ms
memory: 4872kb
input:
300 300 23 278 19171
output:
Yes 63031 62434 62435 61841 61842 61252 61253 60667 60668 60086 60087 59509 59510 58936 58937 58367 58368 57802 57803 57241 57242 56684 56685 56131 56132 55582 55583 55037 55038 54496 54497 53959 53960 53426 53427 52897 52898 52372 52373 51851 51852 51334 51335 50821 50822 50312 50313 49807 49808 49...
result:
ok OK, Accepted.
Test #31:
score: 0
Accepted
time: 0ms
memory: 4872kb
input:
271 253 159 69 51872
output:
Yes 31451 31452 30950 30951 30453 30454 29960 29961 29471 29472 28986 28987 28505 28506 28028 28029 27555 27556 27086 27087 26621 26622 26160 26161 25703 25704 25250 25251 24801 24802 24356 24357 23915 23916 23478 23479 23045 23046 22616 22617 22191 22192 21770 21771 21353 21354 20940 20941 20531 20...
result:
ok OK, Accepted.
Test #32:
score: 0
Accepted
time: 2ms
memory: 3848kb
input:
124 259 8 165 20677
output:
Yes 7637 7638 7389 7390 7141 7142 6893 6894 6645 6646 6397 6398 6149 6150 5901 5902 5653 5654 5405 5406 5157 5158 4909 4910 4661 4662 4413 4414 4165 4166 3917 3918 3669 3670 3421 3422 3173 3174 2925 2926 2677 2678 2429 2430 2181 2182 1933 1934 1685 1686 1437 1438 1189 1190 941 942 693 694 445 446 19...
result:
ok OK, Accepted.
Test #33:
score: 0
Accepted
time: 4ms
memory: 4212kb
input:
300 179 80 58 9660
output:
Yes 5608 5609 5255 5256 4906 4907 4561 4562 4220 4221 3883 3884 3550 3551 3221 3222 2896 2897 2575 2576 2258 2259 1945 1946 1636 1637 1331 1332 1030 1031 733 734 440 441 151 152 53566 53567 53285 53286 53008 53009 52735 52736 52466 52467 52201 52202 51940 51941 51683 51684 51430 51431 51181 51182 50...
result:
ok OK, Accepted.
Test #34:
score: 0
Accepted
time: 1ms
memory: 3828kb
input:
97 95 71 13 1081
output:
Yes 6247 6248 6062 6063 5881 5882 5704 5705 5531 5532 5362 5363 5197 5198 5036 5037 4879 4880 4726 4727 4577 4578 4432 4433 4291 4292 4154 4155 4021 4022 3892 3893 3767 3768 3646 3647 3529 3530 3416 3417 3307 3308 3202 3203 3101 3102 3004 3005 2911 2912 2822 2823 2737 2738 2656 2657 2579 2580 2506 2...
result:
ok OK, Accepted.
Test #35:
score: 0
Accepted
time: 6ms
memory: 4748kb
input:
288 300 233 151 62807
output:
Yes 42212 41636 41637 41060 41061 40484 40485 39908 39909 39332 39333 38756 38757 38183 38184 37614 37615 37049 37050 36488 36489 35931 35932 35378 35379 34829 34830 34284 34285 33743 33744 33206 33207 32673 32674 32144 32145 31619 31620 31098 31099 30581 30582 30068 30069 29559 29560 29054 29055 28...
result:
ok OK, Accepted.
Test #36:
score: 0
Accepted
time: 6ms
memory: 4740kb
input:
300 259 206 73 42316
output:
Yes 11653 11654 11140 11141 10631 10632 10126 10127 9625 9626 9128 9129 8635 8636 8146 8147 7661 7662 7180 7181 6703 6704 6230 6231 5761 5762 5296 5297 4835 4836 4378 4379 3925 3926 3476 3477 3031 3032 2590 2591 2153 2154 1720 1721 1291 1292 866 867 445 446 28 29 77315 77316 76906 76907 76501 76502 ...
result:
ok OK, Accepted.
Test #37:
score: 0
Accepted
time: 3ms
memory: 4060kb
input:
149 295 129 201 30873
output:
Yes 41345 41346 41047 41048 40749 40750 40451 40452 40153 40154 39855 39856 39557 39558 39259 39260 38961 38962 38663 38664 38365 38366 38067 38068 37769 37770 37471 37472 37173 37174 36875 36876 36577 36578 36279 36280 35981 35982 35683 35684 35385 35386 35087 35088 34789 34790 34491 34492 34193 34...
result:
ok OK, Accepted.
Test #38:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
121 252 57 39 17402
output:
Yes 15301 15059 15060 14817 14818 14575 14576 14333 14334 14091 14092 13849 13850 13607 13608 13365 13366 13123 13124 12881 12882 12639 12640 12397 12398 12155 12156 11913 11914 11671 11672 11429 11430 11187 11188 10945 10946 10703 10704 10461 10462 10219 10220 9977 9978 9735 9736 9493 9494 9251 925...
result:
ok OK, Accepted.
Test #39:
score: 0
Accepted
time: 1ms
memory: 4128kb
input:
300 37 136 22 4789
output:
Yes 529 530 460 461 395 396 334 335 277 278 224 225 175 176 130 131 89 90 52 53 19 20 11090 11091 11065 11066 11044 11045 11027 11028 11014 11015 11005 11006 11000 11001 10999 602 531 532 462 463 397 398 336 337 279 280 226 227 177 178 132 133 91 92 54 55 21 22 11092 11093 11067 11068 11046 11047 11...
result:
ok OK, Accepted.
Test #40:
score: 0
Accepted
time: 6ms
memory: 4848kb
input:
300 300 298 186 66405
output:
Yes 38651 38054 38055 37461 37462 36872 36873 36287 36288 35706 35707 35129 35130 34556 34557 33987 33988 33422 33423 32861 32862 32304 32305 31751 31752 31202 31203 30657 30658 30116 30117 29579 29580 29046 29047 28517 28518 27992 27993 27471 27472 26954 26955 26441 26442 25932 25933 25427 25428 24...
result:
ok OK, Accepted.