QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#249865#7629. Make SYSU Great Again II_map_AC ✓200ms30524kbC++2010.5kb2023-11-12 17:05:202023-11-12 17:05:20

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3560kb

input:

4

output:

Yes
0 10 1 8 
10 5 8 4 
4 2 5 0 
2 1 0 0 

result:

ok 1

Test #2:

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

input:

1

output:

Yes
0

result:

ok 1

Test #3:

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

input:

2

output:

Yes
0 0
0 0

result:

ok 1

Test #4:

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

input:

3

output:

Yes
0 10 1 
10 5 8 
4 2 5 

result:

ok 1

Test #5:

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

input:

5

output:

Yes
0 54 1 52 2 
54 9 52 10 49 
8 38 9 36 10 
38 17 36 18 33 
16 14 17 12 18 

result:

ok 1

Test #6:

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

input:

8

output:

Yes
0 54 1 52 2 49 6 48 
54 9 52 10 49 14 48 8 
8 38 9 36 10 33 14 32 
38 17 36 18 33 22 32 16 
16 14 17 12 18 9 22 8 
14 49 12 50 9 54 8 48 
48 6 49 4 50 1 54 0 
6 1 4 2 1 6 0 0 

result:

ok 1

Test #7:

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

input:

13

output:

Yes
0 238 1 236 3 232 4 233 2 228 8 227 12 
238 17 236 19 232 20 233 18 228 24 227 28 225 
16 206 17 204 19 200 20 201 18 196 24 195 28 
206 49 204 51 200 52 201 50 196 56 195 60 193 
48 142 49 140 51 136 52 137 50 132 56 131 60 
142 65 140 67 136 68 137 66 132 72 131 76 129 
64 158 65 156 67 152 68...

result:

ok 1

Test #8:

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

input:

21

output:

Yes
0 990 1 988 3 984 7 976 14 977 12 979 8 982 9 980 2 969 22 968 19 
990 33 988 35 984 39 976 46 977 44 979 40 982 41 980 34 969 54 968 51 972 
32 926 33 924 35 920 39 912 46 913 44 915 40 918 41 916 34 905 54 904 51 
926 97 924 99 920 103 912 110 913 108 915 104 918 105 916 98 905 118 904 115 908...

result:

ok 1

Test #9:

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

input:

34

output:

Yes
0 4030 1 4028 3 4024 7 4016 15 4000 30 4001 28 4003 24 4007 16 4014 17 4012 19 4008 23 3976 54 3977 52 3979 36 3995 4 4025 2 3972 
4030 65 4028 67 4024 71 4016 79 4000 94 4001 92 4003 88 4007 80 4014 81 4012 83 4008 87 3976 118 3977 116 3979 100 3995 68 4025 66 3972 91 
64 3902 65 3900 67 3896 7...

result:

ok 1

Test #10:

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

input:

55

output:

Yes
0 4030 1 4028 3 4024 7 4016 15 4000 30 4001 28 4003 24 4007 16 4014 17 4012 19 4008 23 3976 54 3977 52 3979 36 3995 4 4025 2 3972 27 4004 11 4020 9 4022 8 3991 40 3987 44 3985 46 3984 39 3992 35 3996 33 3998 32 
4030 65 4028 67 4024 71 4016 79 4000 94 4001 92 4003 88 4007 80 4014 81 4012 83 4008...

result:

ok 1

Test #11:

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

input:

89

output:

Yes
0 16254 1 16252 3 16248 7 16240 15 16224 31 16192 62 16193 60 16195 56 16199 48 16207 32 16222 33 16220 35 16216 39 16208 47 16144 110 16145 108 16147 104 16151 72 16183 8 16246 9 16244 11 16228 27 16196 59 16132 122 16133 114 16141 98 16157 66 16189 2 16249 6 16241 14 16225 24 16197 34 16152 97...

result:

ok 1

Test #12:

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

input:

100

output:

Yes
0 16254 1 16252 3 16248 7 16240 15 16224 31 16192 62 16193 60 16195 56 16199 48 16207 32 16222 33 16220 35 16216 39 16208 47 16144 110 16145 108 16147 104 16151 72 16183 8 16246 9 16244 11 16228 27 16196 59 16132 122 16133 114 16141 98 16157 66 16189 2 16249 6 16241 14 16225 24 16197 34 16152 97...

result:

ok 1

Test #13:

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

input:

200

output:

Yes
0 65278 1 65276 3 65272 7 65264 15 65248 31 65216 63 65152 126 65153 124 65155 120 65159 112 65167 96 65183 64 65214 65 65212 67 65208 71 65200 79 65184 95 65056 222 65057 220 65059 216 65063 208 65071 144 65135 16 65262 17 65260 19 65256 23 65224 55 65160 119 65032 246 65033 244 65035 228 65051...

result:

ok 1

Test #14:

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

input:

300

output:

Yes
0 261630 1 261628 3 261624 7 261616 15 261600 31 261568 63 261504 127 261376 254 261377 252 261379 248 261383 240 261391 224 261407 192 261439 128 261502 129 261500 131 261496 135 261488 143 261472 159 261440 191 261184 446 261185 444 261187 440 261191 432 261199 416 261215 288 261343 32 261598 ...

result:

ok 1

Test #15:

score: 0
Accepted
time: 6ms
memory: 7124kb

input:

400

output:

Yes
0 261630 1 261628 3 261624 7 261616 15 261600 31 261568 63 261504 127 261376 254 261377 252 261379 248 261383 240 261391 224 261407 192 261439 128 261502 129 261500 131 261496 135 261488 143 261472 159 261440 191 261184 446 261185 444 261187 440 261191 432 261199 416 261215 288 261343 32 261598 ...

result:

ok 1

Test #16:

score: 0
Accepted
time: 10ms
memory: 8856kb

input:

500

output:

Yes
0 261630 1 261628 3 261624 7 261616 15 261600 31 261568 63 261504 127 261376 254 261377 252 261379 248 261383 240 261391 224 261407 192 261439 128 261502 129 261500 131 261496 135 261488 143 261472 159 261440 191 261184 446 261185 444 261187 440 261191 432 261199 416 261215 288 261343 32 261598 ...

result:

ok 1

Test #17:

score: 0
Accepted
time: 10ms
memory: 12712kb

input:

600

output:

Yes
0 1047550 1 1047548 3 1047544 7 1047536 15 1047520 31 1047488 63 1047424 127 1047296 255 1047040 510 1047041 508 1047043 504 1047047 496 1047055 480 1047071 448 1047103 384 1047167 256 1047294 257 1047292 259 1047288 263 1047280 271 1047264 287 1047232 319 1047168 383 1046656 894 1046657 892 104...

result:

ok 1

Test #18:

score: 0
Accepted
time: 25ms
memory: 11540kb

input:

700

output:

Yes
0 1047550 1 1047548 3 1047544 7 1047536 15 1047520 31 1047488 63 1047424 127 1047296 255 1047040 510 1047041 508 1047043 504 1047047 496 1047055 480 1047071 448 1047103 384 1047167 256 1047294 257 1047292 259 1047288 263 1047280 271 1047264 287 1047232 319 1047168 383 1046656 894 1046657 892 104...

result:

ok 1

Test #19:

score: 0
Accepted
time: 31ms
memory: 12796kb

input:

800

output:

Yes
0 1047550 1 1047548 3 1047544 7 1047536 15 1047520 31 1047488 63 1047424 127 1047296 255 1047040 510 1047041 508 1047043 504 1047047 496 1047055 480 1047071 448 1047103 384 1047167 256 1047294 257 1047292 259 1047288 263 1047280 271 1047264 287 1047232 319 1047168 383 1046656 894 1046657 892 104...

result:

ok 1

Test #20:

score: 0
Accepted
time: 42ms
memory: 14884kb

input:

900

output:

Yes
0 1047550 1 1047548 3 1047544 7 1047536 15 1047520 31 1047488 63 1047424 127 1047296 255 1047040 510 1047041 508 1047043 504 1047047 496 1047055 480 1047071 448 1047103 384 1047167 256 1047294 257 1047292 259 1047288 263 1047280 271 1047264 287 1047232 319 1047168 383 1046656 894 1046657 892 104...

result:

ok 1

Test #21:

score: 0
Accepted
time: 48ms
memory: 15412kb

input:

1000

output:

Yes
0 1047550 1 1047548 3 1047544 7 1047536 15 1047520 31 1047488 63 1047424 127 1047296 255 1047040 510 1047041 508 1047043 504 1047047 496 1047055 480 1047071 448 1047103 384 1047167 256 1047294 257 1047292 259 1047288 263 1047280 271 1047264 287 1047232 319 1047168 383 1046656 894 1046657 892 104...

result:

ok 1

Test #22:

score: 0
Accepted
time: 79ms
memory: 23064kb

input:

1200

output:

Yes
0 4192254 1 4192252 3 4192248 7 4192240 15 4192224 31 4192192 63 4192128 127 4192000 255 4191744 511 4191232 1022 4191233 1020 4191235 1016 4191239 1008 4191247 992 4191263 960 4191295 896 4191359 768 4191487 512 4191742 513 4191740 515 4191736 519 4191728 527 4191712 543 4191680 575 4191616 639...

result:

ok 1

Test #23:

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

input:

1400

output:

Yes
0 4192254 1 4192252 3 4192248 7 4192240 15 4192224 31 4192192 63 4192128 127 4192000 255 4191744 511 4191232 1022 4191233 1020 4191235 1016 4191239 1008 4191247 992 4191263 960 4191295 896 4191359 768 4191487 512 4191742 513 4191740 515 4191736 519 4191728 527 4191712 543 4191680 575 4191616 639...

result:

ok 1

Test #24:

score: 0
Accepted
time: 120ms
memory: 25344kb

input:

1600

output:

Yes
0 4192254 1 4192252 3 4192248 7 4192240 15 4192224 31 4192192 63 4192128 127 4192000 255 4191744 511 4191232 1022 4191233 1020 4191235 1016 4191239 1008 4191247 992 4191263 960 4191295 896 4191359 768 4191487 512 4191742 513 4191740 515 4191736 519 4191728 527 4191712 543 4191680 575 4191616 639...

result:

ok 1

Test #25:

score: 0
Accepted
time: 173ms
memory: 29820kb

input:

1800

output:

Yes
0 4192254 1 4192252 3 4192248 7 4192240 15 4192224 31 4192192 63 4192128 127 4192000 255 4191744 511 4191232 1022 4191233 1020 4191235 1016 4191239 1008 4191247 992 4191263 960 4191295 896 4191359 768 4191487 512 4191742 513 4191740 515 4191736 519 4191728 527 4191712 543 4191680 575 4191616 639...

result:

ok 1

Test #26:

score: 0
Accepted
time: 169ms
memory: 28600kb

input:

1900

output:

Yes
0 4192254 1 4192252 3 4192248 7 4192240 15 4192224 31 4192192 63 4192128 127 4192000 255 4191744 511 4191232 1022 4191233 1020 4191235 1016 4191239 1008 4191247 992 4191263 960 4191295 896 4191359 768 4191487 512 4191742 513 4191740 515 4191736 519 4191728 527 4191712 543 4191680 575 4191616 639...

result:

ok 1

Test #27:

score: 0
Accepted
time: 174ms
memory: 30524kb

input:

1920

output:

Yes
0 4192254 1 4192252 3 4192248 7 4192240 15 4192224 31 4192192 63 4192128 127 4192000 255 4191744 511 4191232 1022 4191233 1020 4191235 1016 4191239 1008 4191247 992 4191263 960 4191295 896 4191359 768 4191487 512 4191742 513 4191740 515 4191736 519 4191728 527 4191712 543 4191680 575 4191616 639...

result:

ok 1

Test #28:

score: 0
Accepted
time: 200ms
memory: 29260kb

input:

2000

output:

Yes
0 4192254 1 4192252 3 4192248 7 4192240 15 4192224 31 4192192 63 4192128 127 4192000 255 4191744 511 4191232 1022 4191233 1020 4191235 1016 4191239 1008 4191247 992 4191263 960 4191295 896 4191359 768 4191487 512 4191742 513 4191740 515 4191736 519 4191728 527 4191712 543 4191680 575 4191616 639...

result:

ok 1

Test #29:

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

input:

62

output:

Yes
0 4030 1 4028 3 4024 7 4016 15 4000 30 4001 28 4003 24 4007 16 4014 17 4012 19 4008 23 3976 54 3977 52 3979 36 3995 4 4025 2 3972 27 4004 11 4020 9 4022 8 3991 40 3987 44 3985 46 3984 39 3992 35 3996 33 3998 32 3983 48 3975 56 3971 60 3969 
4030 65 4028 67 4024 71 4016 79 4000 94 4001 92 4003 88...

result:

ok 1

Test #30:

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

input:

130

output:

Yes
0 65278 1 65276 3 65272 7 65264 15 65248 31 65216 63 65152 126 65153 124 65155 120 65159 112 65167 96 65183 64 65214 65 65212 67 65208 71 65200 79 65184 95 65056 222 65057 220 65059 216 65063 208 65071 144 65135 16 65262 17 65260 19 65256 23 65224 55 65160 119 65032 246 65033 244 65035 228 65051...

result:

ok 1

Test #31:

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

input:

126

output:

Yes
0 16254 1 16252 3 16248 7 16240 15 16224 31 16192 62 16193 60 16195 56 16199 48 16207 32 16222 33 16220 35 16216 39 16208 47 16144 110 16145 108 16147 104 16151 72 16183 8 16246 9 16244 11 16228 27 16196 59 16132 122 16133 114 16141 98 16157 66 16189 2 16249 6 16241 14 16225 24 16197 34 16152 97...

result:

ok 1

Test #32:

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

input:

66

output:

Yes
0 16254 1 16252 3 16248 7 16240 15 16224 31 16192 62 16193 60 16195 56 16199 48 16207 32 16222 33 16220 35 16216 39 16208 47 16144 110 16145 108 16147 104 16151 72 16183 8 16246 9 16244 11 16228 27 16196 59 16132 122 16133 114 16141 98 16157 66 16189 2 16249 6 16241 14 16225 24 16197 34 16152 
1...

result:

ok 1

Test #33:

score: 0
Accepted
time: 46ms
memory: 15888kb

input:

1021

output:

Yes
0 1047550 1 1047548 3 1047544 7 1047536 15 1047520 31 1047488 63 1047424 127 1047296 255 1047040 510 1047041 508 1047043 504 1047047 496 1047055 480 1047071 448 1047103 384 1047167 256 1047294 257 1047292 259 1047288 263 1047280 271 1047264 287 1047232 319 1047168 383 1046656 894 1046657 892 104...

result:

ok 1

Test #34:

score: 0
Accepted
time: 53ms
memory: 15764kb

input:

1022

output:

Yes
0 1047550 1 1047548 3 1047544 7 1047536 15 1047520 31 1047488 63 1047424 127 1047296 255 1047040 510 1047041 508 1047043 504 1047047 496 1047055 480 1047071 448 1047103 384 1047167 256 1047294 257 1047292 259 1047288 263 1047280 271 1047264 287 1047232 319 1047168 383 1046656 894 1046657 892 104...

result:

ok 1

Test #35:

score: 0
Accepted
time: 53ms
memory: 14996kb

input:

1023

output:

Yes
0 1047550 1 1047548 3 1047544 7 1047536 15 1047520 31 1047488 63 1047424 127 1047296 255 1047040 510 1047041 508 1047043 504 1047047 496 1047055 480 1047071 448 1047103 384 1047167 256 1047294 257 1047292 259 1047288 263 1047280 271 1047264 287 1047232 319 1047168 383 1046656 894 1046657 892 104...

result:

ok 1

Test #36:

score: 0
Accepted
time: 49ms
memory: 16596kb

input:

1024

output:

Yes
0 1047550 1 1047548 3 1047544 7 1047536 15 1047520 31 1047488 63 1047424 127 1047296 255 1047040 510 1047041 508 1047043 504 1047047 496 1047055 480 1047071 448 1047103 384 1047167 256 1047294 257 1047292 259 1047288 263 1047280 271 1047264 287 1047232 319 1047168 383 1046656 894 1046657 892 104...

result:

ok 1

Test #37:

score: 0
Accepted
time: 51ms
memory: 22500kb

input:

1025

output:

Yes
0 4192254 1 4192252 3 4192248 7 4192240 15 4192224 31 4192192 63 4192128 127 4192000 255 4191744 511 4191232 1022 4191233 1020 4191235 1016 4191239 1008 4191247 992 4191263 960 4191295 896 4191359 768 4191487 512 4191742 513 4191740 515 4191736 519 4191728 527 4191712 543 4191680 575 4191616 639...

result:

ok 1

Test #38:

score: 0
Accepted
time: 50ms
memory: 23116kb

input:

1026

output:

Yes
0 4192254 1 4192252 3 4192248 7 4192240 15 4192224 31 4192192 63 4192128 127 4192000 255 4191744 511 4191232 1022 4191233 1020 4191235 1016 4191239 1008 4191247 992 4191263 960 4191295 896 4191359 768 4191487 512 4191742 513 4191740 515 4191736 519 4191728 527 4191712 543 4191680 575 4191616 639...

result:

ok 1

Test #39:

score: 0
Accepted
time: 53ms
memory: 23504kb

input:

1027

output:

Yes
0 4192254 1 4192252 3 4192248 7 4192240 15 4192224 31 4192192 63 4192128 127 4192000 255 4191744 511 4191232 1022 4191233 1020 4191235 1016 4191239 1008 4191247 992 4191263 960 4191295 896 4191359 768 4191487 512 4191742 513 4191740 515 4191736 519 4191728 527 4191712 543 4191680 575 4191616 639...

result:

ok 1

Extra Test:

score: 0
Extra Test Passed