QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#248661#7629. Make SYSU Great Again IIucup-team018#AC ✓1609ms83304kbC++233.4kb2023-11-11 20:46:372023-11-11 20:46:37

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4

output:

Yes
15 16 7 24 
16 11 0 3 
11 20 9 20 
4 9 18 1 

result:

ok 1

Test #2:

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

input:

1

output:

Yes
1 

result:

ok 1

Test #3:

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

input:

2

output:

Yes
7 0 
0 7 

result:

ok 1

Test #4:

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

input:

3

output:

Yes
15 16 7 
16 3 24 
13 0 5 

result:

ok 1

Test #5:

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

input:

5

output:

Yes
47 16 39 24 39 
16 43 0 3 24 
43 20 11 52 1 
20 41 4 9 54 
41 18 41 18 1 

result:

ok 1

Test #6:

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

input:

8

output:

Yes
95 32 79 48 71 56 71 56 
32 79 48 71 24 7 40 67 
91 0 75 16 99 8 83 44 
36 91 36 75 20 99 12 83 
27 36 89 4 105 20 97 12 
68 25 38 89 6 73 22 97 
57 70 9 34 17 34 65 26 
66 49 66 13 98 21 42 69 

result:

ok 1

Test #7:

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

input:

13

output:

Yes
239 272 111 400 47 464 47 336 143 304 207 304 79 
272 231 16 103 384 39 320 167 256 199 288 199 288 
231 280 103 408 39 216 7 88 135 312 71 312 195 
264 227 264 99 136 291 200 291 72 131 296 195 300 
215 264 243 268 115 140 307 204 307 76 147 300 211 
296 23 8 243 268 51 204 275 196 275 100 147 ...

result:

ok 1

Test #8:

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

input:

21

output:

Yes
479 544 351 672 95 928 31 992 31 480 543 352 671 96 911 112 911 112 911 112 399 
544 223 32 287 160 79 416 15 736 15 224 527 96 655 48 143 48 783 48 271 624 
159 288 727 0 855 128 599 384 23 704 279 192 791 64 903 48 199 16 583 144 263 
832 151 296 727 40 855 168 599 424 23 744 279 104 407 104 9...

result:

ok 1

Test #9:

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

input:

34

output:

Yes
1343 2752 319 3776 287 3808 287 2784 1311 2272 1823 2144 1439 2656 415 3680 159 3424 671 3424 671 1312 2655 1440 2655 1440 607 2464 1119 2976 95 3744 351 3744 
2752 1087 704 63 3264 31 2208 1055 2592 1055 2080 1935 2080 1423 2592 399 3616 143 2336 655 2368 655 1280 2639 1152 2639 128 1615 256 11...

result:

ok 1

Test #10:

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

input:

55

output:

Yes
7871 320 5823 2368 4799 3392 4799 3392 703 5440 2239 1856 191 6976 1215 6976 1215 2880 5311 832 7359 832 6335 320 5695 2240 5951 192 7999 192 4927 1216 6463 1600 447 7744 319 7744 319 3648 4159 2368 4671 1344 6719 1088 6207 1600 2111 4672 3135 4672 3135 576 5183 
64 1695 2112 4767 3136 4767 3136...

result:

ok 1

Test #11:

score: 0
Accepted
time: 2ms
memory: 3920kb

input:

89

output:

Yes
7551 8832 3455 12928 3455 12928 1407 14976 1407 6784 9599 2688 4479 9856 6527 1664 10623 5760 2431 13952 383 2688 13439 2944 13439 2944 13439 2944 5247 11136 5247 11136 1151 15232 1151 7040 9343 4992 11391 4992 11391 4992 3199 9088 7295 896 14463 1920 14463 1408 4735 9600 639 5504 8831 5504 1081...

result:

ok 1

Test #12:

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

input:

100

output:

Yes
19711 13056 19583 13184 19583 13184 19583 4992 27775 4992 25727 6528 26239 6528 26239 6528 9855 22912 1663 27008 5759 27008 5759 24960 7807 24960 7807 16768 11903 20864 3711 29056 2687 30080 2687 21888 10879 17792 6783 25728 4479 27264 383 31360 383 2688 30015 2752 30015 2752 13631 19136 5439 27...

result:

ok 1

Test #13:

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

input:

200

output:

Yes
83711 47360 82687 48384 82687 48384 17151 15616 49919 72960 58111 72960 58111 7424 25343 105728 8959 89344 41727 85248 45823 85248 45823 85248 45823 19712 13055 101632 29439 101632 29439 68864 54015 77056 54015 77056 21247 109824 4863 124160 6911 124160 6911 91392 39679 9472 117503 13568 117503 ...

result:

ok 1

Test #14:

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

input:

300

output:

Yes
144895 51712 202239 59904 202239 59904 71167 190976 5631 125440 136703 92672 169471 92672 169471 27136 103935 141824 87551 174592 22015 43520 17919 203264 26111 72192 173567 88576 173567 88576 42495 23040 108031 6656 206335 51712 206335 18944 75263 150016 9727 100864 160255 101888 160255 101888 ...

result:

ok 1

Test #15:

score: 0
Accepted
time: 57ms
memory: 7152kb

input:

400

output:

Yes
373759 150528 308223 216064 308223 216064 46079 478208 13311 445440 78847 183296 340991 52224 406527 101376 422399 101888 422399 101888 422399 101888 160255 364032 160255 364032 29183 429568 94719 429568 94719 298496 209407 314880 209407 314880 209407 52736 340479 183808 340479 183808 274943 249...

result:

ok 1

Test #16:

score: 0
Accepted
time: 69ms
memory: 8308kb

input:

500

output:

Yes
470527 53760 208383 315904 200191 324096 200191 324096 200191 61952 331263 193024 69119 455168 3583 389632 134655 127488 396799 94720 429567 94720 429567 94720 167423 356864 36351 487936 36351 422400 101887 291328 232959 29184 364031 143872 347647 176640 347647 176640 85503 307712 151039 373248 ...

result:

ok 1

Test #17:

score: 0
Accepted
time: 98ms
memory: 12492kb

input:

600

output:

Yes
1027071 21504 764927 283648 633855 414720 633855 414720 109567 152576 830463 218112 830463 218112 306175 742400 44031 873472 175103 87040 928767 119808 928767 119808 404479 644096 142335 906240 11263 1037312 11263 775168 273407 709632 338943 709632 338943 578560 207871 840704 76799 840704 68607 ...

result:

ok 1

Test #18:

score: 0
Accepted
time: 123ms
memory: 13116kb

input:

700

output:

Yes
1027071 21504 764927 283648 633855 414720 633855 414720 109567 939008 44031 1004544 44031 1004544 44031 480256 568319 218112 830463 218112 306175 611328 175103 349184 666623 381952 666623 381952 666623 381952 142335 644096 273407 775168 273407 709632 338943 709632 338943 185344 601087 316416 732...

result:

ok 1

Test #19:

score: 0
Accepted
time: 179ms
memory: 19520kb

input:

800

output:

Yes
1751039 346112 1226751 870400 178175 1918976 47103 1918976 145407 1427456 669695 1361920 210943 1886208 79871 444416 1652735 182272 1390591 706560 1325055 706560 1382399 714752 1381375 715776 1381375 715776 332799 1240064 857087 191488 1643519 453632 1643519 453632 1119231 846848 1250303 846848 ...

result:

ok 1

Test #20:

score: 0
Accepted
time: 220ms
memory: 21848kb

input:

900

output:

Yes
1502207 594944 453631 1643520 191487 857088 1240063 332800 1764351 70656 846847 1250304 322559 1774592 322559 1774592 60415 463872 1633279 332800 715775 1119232 584703 1119232 945151 1152000 945151 1152000 945151 103424 1469439 627712 1469439 627712 1207295 889856 158719 1414144 683007 365568 68...

result:

ok 1

Test #21:

score: 0
Accepted
time: 271ms
memory: 23276kb

input:

1000

output:

Yes
911359 1185792 845823 1251328 321535 1775616 321535 1775616 59391 202752 1861631 235520 1861631 235520 1861631 235520 813055 1284096 813055 1284096 287743 1809408 287743 1809408 25599 1285120 549887 1416192 680959 367616 1205247 891904 1205247 629760 1467391 629760 1467391 105472 1991679 105472 ...

result:

ok 1

Test #22:

score: 0
Accepted
time: 470ms
memory: 37672kb

input:

1200

output:

Yes
1005567 3188736 481279 3713024 481279 567296 3364863 829440 3364863 305152 2840575 1353728 743423 3450880 743423 2402304 219135 2402304 1660927 2533376 1660927 2533376 1660927 2533376 612351 3581952 612351 1484800 2185215 960512 3233791 436224 3233791 698368 3495935 698368 2447359 1222656 297164...

result:

ok 1

Test #23:

score: 0
Accepted
time: 664ms
memory: 43640kb

input:

1400

output:

Yes
1222655 2971648 174079 3495936 43007 3364864 829439 3364864 829439 1136640 2402303 1660928 2402303 612352 1353727 2709504 305151 2185216 567295 3495936 43007 1398784 2140159 1398784 2140159 350208 1091583 2250752 862207 1202176 2959359 153600 3483647 546816 3483647 546816 1386495 2643968 337919 ...

result:

ok 1

Test #24:

score: 0
Accepted
time: 1130ms
memory: 68136kb

input:

1600

output:

Yes
5584895 2803712 4536319 3852288 4274175 2017280 2177023 5163008 1128447 6735872 604159 7784448 604159 5687296 2635775 5490688 2897919 5490688 2897919 5490688 800767 7587840 276479 7981056 407551 7981056 407551 3786752 4601855 1689600 6699007 1689600 6699007 641024 7747583 641024 5650431 2738176 ...

result:

ok 1

Test #25:

score: 0
Accepted
time: 1353ms
memory: 74452kb

input:

1800

output:

Yes
2676735 5711872 579583 1517568 2152447 2041856 55295 5187584 3201023 5187584 1103871 6760448 1595391 6531072 1857535 6531072 1857535 2336768 5003263 1288192 7100415 239616 5527551 2729984 5658623 2729984 5658623 2729984 5658623 2729984 1464319 4827136 3561471 4827136 3561471 632832 6707199 16814...

result:

ok 1

Test #26:

score: 0
Accepted
time: 1433ms
memory: 80508kb

input:

1900

output:

Yes
6412287 403456 5822463 2566144 1628159 6760448 1628159 468992 6871039 1517568 6871039 1517568 2676735 5711872 579583 7809024 579583 7546880 841727 7546880 841727 7546880 841727 3352576 5036031 1255424 7133183 1255424 2938879 5449728 2938879 4401152 3463167 4925440 3463167 4925440 3463167 731136 ...

result:

ok 1

Test #27:

score: 0
Accepted
time: 1446ms
memory: 80428kb

input:

1920

output:

Yes
8157183 231424 8157183 231424 3962879 4425728 2914303 5474304 817151 7571456 817151 7571456 292863 5998592 2390015 4950016 1341439 2852864 5519359 2869248 5519359 2869248 5519359 2869248 1325055 772096 3422207 4966400 2373631 6014976 2373631 1820672 6567935 1296384 7092223 1296384 800767 3393536...

result:

ok 1

Test #28:

score: 0
Accepted
time: 1609ms
memory: 83304kb

input:

2000

output:

Yes
6991871 1396736 2797567 5591040 700415 3493888 4894719 3493888 4370431 4018176 4370431 4018176 4370431 4018176 176127 6115328 2273279 6115328 2273279 1921024 6467583 1921024 6467583 872448 1224703 7163904 1191935 7196672 1191935 7196672 1191935 3002368 5386239 3002368 5386239 905216 3289087 5099...

result:

ok 1

Test #29:

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

input:

62

output:

Yes
7807 384 7743 448 5695 2496 5183 2496 4159 1728 6463 1728 4415 2752 5439 2752 1343 4800 3391 4800 3391 704 319 7360 831 7360 831 3264 4927 1216 2111 4288 63 4288 2623 192 4671 1344 6847 320 5311 2624 5567 576 7615 576 6591 1600 6591 1600 4543 3648 4287 3648 4287 3136 4799 3136 4799 1088 6335 64 ...

result:

ok 1

Test #30:

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

input:

130

output:

Yes
51071 14464 50047 15488 50047 15488 17279 48256 895 56448 9087 56448 9087 52352 13183 52352 13183 35968 21375 44160 4991 58496 7039 58496 7039 42112 19327 46208 18815 45696 19839 45696 19839 37504 25983 37504 9599 49792 1407 41600 18815 640 10623 54400 11135 38016 27519 36992 24959 39040 24959 3...

result:

ok 1

Test #31:

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

input:

126

output:

Yes
31999 768 21631 896 25727 4992 26751 896 14463 17792 14975 17792 6783 25984 6783 25984 2687 30080 2687 30080 2687 13696 19071 5504 10879 21888 8831 19840 12927 19840 12927 3456 21119 11648 4735 9600 17023 5504 639 31104 1663 31104 1663 14720 18047 6528 24703 6528 127 27008 4223 18816 12415 2432 ...

result:

ok 1

Test #32:

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

input:

66

output:

Yes
6079 10304 5055 11328 5055 9280 6591 9792 6591 9792 2495 13888 447 15936 447 12864 3263 13120 3263 13120 1215 11072 4287 12096 4287 10048 6335 9536 4799 11584 703 10560 5823 8512 1727 12608 575 15552 831 11456 4927 9408 2367 12992 1343 10944 5439 10944 1343 2752 4415 8896 319 704 319 10432 5183 ...

result:

ok 1

Test #33:

score: 0
Accepted
time: 285ms
memory: 23672kb

input:

1021

output:

Yes
1391615 705536 1391615 705536 343039 1754112 80895 967680 1129471 967680 1063935 246784 1850367 115712 801791 1164288 277503 640000 1326079 640000 1063935 902144 1063935 902144 15359 377856 539647 1426432 138239 1958912 138239 910336 1055743 254976 1842175 254976 793599 1172480 269311 1696768 26...

result:

ok 1

Test #34:

score: 0
Accepted
time: 323ms
memory: 23620kb

input:

1022

output:

Yes
2091007 6144 74751 1711104 9215 1055744 771071 7168 508927 1584128 185343 1911808 185343 1911808 185343 1911808 185343 863232 1233919 863232 1233919 338944 1627135 207872 1364991 732160 1364991 732160 316415 1780736 54271 732160 1102847 207872 578559 1256448 578559 1256448 54271 1256448 54271 13...

result:

ok 1

Test #35:

score: 0
Accepted
time: 345ms
memory: 23824kb

input:

1023

output:

Yes
1091583 1005568 1058815 22528 1319935 7168 9215 1317888 771071 1055744 771071 1321984 709631 1387520 709631 1387520 709631 1387520 709631 338944 1233919 863232 1233919 338944 1627135 470016 1627135 470016 578559 1256448 316415 1780736 316415 1780736 54271 732160 1102847 207872 1627135 207872 110...

result:

ok 1

Test #36:

score: 0
Accepted
time: 310ms
memory: 23880kb

input:

1024

output:

Yes
2009087 88064 1976319 88064 2008063 7168 795647 1186816 115711 928768 1102847 732160 1364991 732160 316415 1649664 185343 1387520 709631 1387520 709631 338944 1233919 338944 1233919 338944 185343 1649664 185343 1649664 316415 1649664 316415 601088 1102847 601088 1102847 76800 578559 1125376 5427...

result:

ok 1

Test #37:

score: 0
Accepted
time: 375ms
memory: 32624kb

input:

1025

output:

Yes
3942399 251904 3680255 448512 3737599 415744 3187711 793600 3286015 7168 1426431 2763776 1364991 2829312 1364991 2829312 1364991 732160 2413567 1780736 316415 1256448 2675711 1518592 2675711 470016 3724287 207872 3199999 207872 2151423 1256448 54271 1649664 2282495 1649664 185343 2698240 1233919...

result:

ok 1

Test #38:

score: 0
Accepted
time: 374ms
memory: 31992kb

input:

1026

output:

Yes
3365887 828416 3365887 828416 3234815 959488 3234815 959488 3234815 959488 1137663 3056640 89087 4105216 89087 3580928 613375 3580928 613375 2532352 1661951 435200 3759103 173056 3496959 697344 1399807 2794496 351231 1745920 2382847 1811456 2382847 1811456 2382847 1811456 285695 2860032 1334271 ...

result:

ok 1

Test #39:

score: 0
Accepted
time: 363ms
memory: 33436kb

input:

1027

output:

Yes
1923071 2271232 1398783 2795520 350207 3844096 88063 2009088 2185215 2009088 2185215 960512 3168255 894976 3299327 370688 3823615 108544 399359 3729408 464895 3729408 464895 1632256 2299903 1370112 2824191 321536 3868671 325632 1771519 2422784 722943 3471360 198655 3733504 460799 3733504 329727 ...

result:

ok 1

Extra Test:

score: 0
Extra Test Passed