QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#245746#7629. Make SYSU Great Again IIucup-team1878#AC ✓1971ms196016kbC++203.0kb2023-11-10 11:08:442023-11-10 11:08:44

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4

output:

Yes
9 0 12 0
4 10 1 10
3 0 6 0
12 2 9 2

result:

ok 1

Test #2:

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

input:

1

output:

Yes
0

result:

ok 1

Test #3:

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

input:

2

output:

Yes
1 0
0 2

result:

ok 1

Test #4:

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

input:

3

output:

Yes
1 0 0
0 2 1
3 0 2

result:

ok 1

Test #5:

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

input:

5

output:

Yes
9 0 12 0 9
4 10 1 10 4
3 0 6 0 3
12 2 9 2 12
1 8 4 8 1

result:

ok 1

Test #6:

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

input:

8

output:

Yes
57 0 44 16 41 16 44 0
4 58 1 42 20 42 1 58
51 0 38 16 35 16 38 0
12 50 9 34 28 34 9 50
17 8 4 24 1 24 4 8
44 18 41 2 60 2 41 18
19 32 6 48 3 48 6 32
36 26 33 10 52 10 33 26

result:

ok 1

Test #7:

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

input:

13

output:

Yes
249 0 236 16 169 80 172 64 185 64 172 80 169
4 250 1 234 20 170 65 186 68 186 65 170 20
243 0 230 16 163 80 166 64 179 64 166 80 163
12 242 9 226 28 162 73 178 76 178 73 162 28
209 8 196 24 129 88 132 72 145 72 132 88 129
44 210 41 194 60 130 105 146 108 146 105 130 60
211 32 198 48 131 112 134 ...

result:

ok 1

Test #8:

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

input:

21

output:

Yes
1017 0 1004 16 937 80 940 64 697 320 684 336 681 272 748 256 761 256 748 272 681
4 1018 1 1002 20 938 65 954 68 698 321 682 276 746 257 762 260 762 257 746 276
1011 0 998 16 931 80 934 64 691 320 678 336 675 272 742 256 755 256 742 272 675
12 1010 9 994 28 930 73 946 76 690 329 674 284 738 265 7...

result:

ok 1

Test #9:

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

input:

34

output:

Yes
4089 0 4076 16 4009 80 4012 64 3769 320 3756 336 3753 272 3820 256 2809 1280 2796 1296 2729 1360 2732 1344 2745 1088 2988 1104 2985 1040 3052 1024 3065 1024
4 4090 1 4074 20 4010 65 4026 68 3770 321 3754 276 3818 257 3834 260 2810 1281 2794 1300 2730 1345 2746 1092 3002 1089 2986 1044 3050 1025 ...

result:

ok 1

Test #10:

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

input:

55

output:

Yes
4089 0 4076 16 4009 80 4012 64 3769 320 3756 336 3753 272 3820 256 2809 1280 2796 1296 2729 1360 2732 1344 2745 1088 2988 1104 2985 1040 3052 1024 3065 1024 3052 1040 2985 1104 2988 1088 2745 1344 2732 1360 2729 1296 2796 1280 2809 256 3820 272 3753 336 3756
4 4090 1 4074 20 4010 65 4026 68 3770...

result:

ok 1

Test #11:

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

input:

89

output:

Yes
16377 0 16364 16 16297 80 16300 64 16057 320 16044 336 16041 272 16108 256 15097 1280 15084 1296 15017 1360 15020 1344 15033 1088 15276 1104 15273 1040 15340 1024 11257 5120 11244 5136 11177 5200 11180 5184 10937 5440 10924 5456 10921 5392 10988 5376 11001 4352 12012 4368 11945 4432 11948 4416 1...

result:

ok 1

Test #12:

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

input:

100

output:

Yes
16377 0 16364 16 16297 80 16300 64 16057 320 16044 336 16041 272 16108 256 15097 1280 15084 1296 15017 1360 15020 1344 15033 1088 15276 1104 15273 1040 15340 1024 11257 5120 11244 5136 11177 5200 11180 5184 10937 5440 10924 5456 10921 5392 10988 5376 11001 4352 12012 4368 11945 4432 11948 4416 1...

result:

ok 1

Test #13:

score: 0
Accepted
time: 21ms
memory: 6300kb

input:

200

output:

Yes
65529 0 65516 16 65449 80 65452 64 65209 320 65196 336 65193 272 65260 256 64249 1280 64236 1296 64169 1360 64172 1344 64185 1088 64428 1104 64425 1040 64492 1024 60409 5120 60396 5136 60329 5200 60332 5184 60089 5440 60076 5456 60073 5392 60140 5376 60153 4352 61164 4368 61097 4432 61100 4416 6...

result:

ok 1

Test #14:

score: 0
Accepted
time: 75ms
memory: 15172kb

input:

300

output:

Yes
262137 0 262124 16 262057 80 262060 64 261817 320 261804 336 261801 272 261868 256 260857 1280 260844 1296 260777 1360 260780 1344 260793 1088 261036 1104 261033 1040 261100 1024 257017 5120 257004 5136 256937 5200 256940 5184 256697 5440 256684 5456 256681 5392 256748 5376 256761 4352 257772 43...

result:

ok 1

Test #15:

score: 0
Accepted
time: 112ms
memory: 15300kb

input:

400

output:

Yes
262137 0 262124 16 262057 80 262060 64 261817 320 261804 336 261801 272 261868 256 260857 1280 260844 1296 260777 1360 260780 1344 260793 1088 261036 1104 261033 1040 261100 1024 257017 5120 257004 5136 256937 5200 256940 5184 256697 5440 256684 5456 256681 5392 256748 5376 256761 4352 257772 43...

result:

ok 1

Test #16:

score: 0
Accepted
time: 86ms
memory: 15184kb

input:

500

output:

Yes
262137 0 262124 16 262057 80 262060 64 261817 320 261804 336 261801 272 261868 256 260857 1280 260844 1296 260777 1360 260780 1344 260793 1088 261036 1104 261033 1040 261100 1024 257017 5120 257004 5136 256937 5200 256940 5184 256697 5440 256684 5456 256681 5392 256748 5376 256761 4352 257772 43...

result:

ok 1

Test #17:

score: 0
Accepted
time: 305ms
memory: 51536kb

input:

600

output:

Yes
1048569 0 1048556 16 1048489 80 1048492 64 1048249 320 1048236 336 1048233 272 1048300 256 1047289 1280 1047276 1296 1047209 1360 1047212 1344 1047225 1088 1047468 1104 1047465 1040 1047532 1024 1043449 5120 1043436 5136 1043369 5200 1043372 5184 1043129 5440 1043116 5456 1043113 5392 1043180 53...

result:

ok 1

Test #18:

score: 0
Accepted
time: 332ms
memory: 51608kb

input:

700

output:

Yes
1048569 0 1048556 16 1048489 80 1048492 64 1048249 320 1048236 336 1048233 272 1048300 256 1047289 1280 1047276 1296 1047209 1360 1047212 1344 1047225 1088 1047468 1104 1047465 1040 1047532 1024 1043449 5120 1043436 5136 1043369 5200 1043372 5184 1043129 5440 1043116 5456 1043113 5392 1043180 53...

result:

ok 1

Test #19:

score: 0
Accepted
time: 333ms
memory: 51612kb

input:

800

output:

Yes
1048569 0 1048556 16 1048489 80 1048492 64 1048249 320 1048236 336 1048233 272 1048300 256 1047289 1280 1047276 1296 1047209 1360 1047212 1344 1047225 1088 1047468 1104 1047465 1040 1047532 1024 1043449 5120 1043436 5136 1043369 5200 1043372 5184 1043129 5440 1043116 5456 1043113 5392 1043180 53...

result:

ok 1

Test #20:

score: 0
Accepted
time: 402ms
memory: 51536kb

input:

900

output:

Yes
1048569 0 1048556 16 1048489 80 1048492 64 1048249 320 1048236 336 1048233 272 1048300 256 1047289 1280 1047276 1296 1047209 1360 1047212 1344 1047225 1088 1047468 1104 1047465 1040 1047532 1024 1043449 5120 1043436 5136 1043369 5200 1043372 5184 1043129 5440 1043116 5456 1043113 5392 1043180 53...

result:

ok 1

Test #21:

score: 0
Accepted
time: 407ms
memory: 51496kb

input:

1000

output:

Yes
1048569 0 1048556 16 1048489 80 1048492 64 1048249 320 1048236 336 1048233 272 1048300 256 1047289 1280 1047276 1296 1047209 1360 1047212 1344 1047225 1088 1047468 1104 1047465 1040 1047532 1024 1043449 5120 1043436 5136 1043369 5200 1043372 5184 1043129 5440 1043116 5456 1043113 5392 1043180 53...

result:

ok 1

Test #22:

score: 0
Accepted
time: 1467ms
memory: 195952kb

input:

1200

output:

Yes
4194297 0 4194284 16 4194217 80 4194220 64 4193977 320 4193964 336 4193961 272 4194028 256 4193017 1280 4193004 1296 4192937 1360 4192940 1344 4192953 1088 4193196 1104 4193193 1040 4193260 1024 4189177 5120 4189164 5136 4189097 5200 4189100 5184 4188857 5440 4188844 5456 4188841 5392 4188908 53...

result:

ok 1

Test #23:

score: 0
Accepted
time: 1620ms
memory: 196016kb

input:

1400

output:

Yes
4194297 0 4194284 16 4194217 80 4194220 64 4193977 320 4193964 336 4193961 272 4194028 256 4193017 1280 4193004 1296 4192937 1360 4192940 1344 4192953 1088 4193196 1104 4193193 1040 4193260 1024 4189177 5120 4189164 5136 4189097 5200 4189100 5184 4188857 5440 4188844 5456 4188841 5392 4188908 53...

result:

ok 1

Test #24:

score: 0
Accepted
time: 1744ms
memory: 195944kb

input:

1600

output:

Yes
4194297 0 4194284 16 4194217 80 4194220 64 4193977 320 4193964 336 4193961 272 4194028 256 4193017 1280 4193004 1296 4192937 1360 4192940 1344 4192953 1088 4193196 1104 4193193 1040 4193260 1024 4189177 5120 4189164 5136 4189097 5200 4189100 5184 4188857 5440 4188844 5456 4188841 5392 4188908 53...

result:

ok 1

Test #25:

score: 0
Accepted
time: 1835ms
memory: 195952kb

input:

1800

output:

Yes
4194297 0 4194284 16 4194217 80 4194220 64 4193977 320 4193964 336 4193961 272 4194028 256 4193017 1280 4193004 1296 4192937 1360 4192940 1344 4192953 1088 4193196 1104 4193193 1040 4193260 1024 4189177 5120 4189164 5136 4189097 5200 4189100 5184 4188857 5440 4188844 5456 4188841 5392 4188908 53...

result:

ok 1

Test #26:

score: 0
Accepted
time: 1936ms
memory: 195944kb

input:

1900

output:

Yes
4194297 0 4194284 16 4194217 80 4194220 64 4193977 320 4193964 336 4193961 272 4194028 256 4193017 1280 4193004 1296 4192937 1360 4192940 1344 4192953 1088 4193196 1104 4193193 1040 4193260 1024 4189177 5120 4189164 5136 4189097 5200 4189100 5184 4188857 5440 4188844 5456 4188841 5392 4188908 53...

result:

ok 1

Test #27:

score: 0
Accepted
time: 1971ms
memory: 195868kb

input:

1920

output:

Yes
4194297 0 4194284 16 4194217 80 4194220 64 4193977 320 4193964 336 4193961 272 4194028 256 4193017 1280 4193004 1296 4192937 1360 4192940 1344 4192953 1088 4193196 1104 4193193 1040 4193260 1024 4189177 5120 4189164 5136 4189097 5200 4189100 5184 4188857 5440 4188844 5456 4188841 5392 4188908 53...

result:

ok 1

Test #28:

score: 0
Accepted
time: 1961ms
memory: 195864kb

input:

2000

output:

Yes
4194297 0 4194284 16 4194217 80 4194220 64 4193977 320 4193964 336 4193961 272 4194028 256 4193017 1280 4193004 1296 4192937 1360 4192940 1344 4192953 1088 4193196 1104 4193193 1040 4193260 1024 4189177 5120 4189164 5136 4189097 5200 4189100 5184 4188857 5440 4188844 5456 4188841 5392 4188908 53...

result:

ok 1

Test #29:

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

input:

62

output:

Yes
4089 0 4076 16 4009 80 4012 64 3769 320 3756 336 3753 272 3820 256 2809 1280 2796 1296 2729 1360 2732 1344 2745 1088 2988 1104 2985 1040 3052 1024 3065 1024 3052 1040 2985 1104 2988 1088 2745 1344 2732 1360 2729 1296 2796 1280 2809 256 3820 272 3753 336 3756 320 3769 64 4012 80 4009 16
4 4090 1 ...

result:

ok 1

Test #30:

score: 0
Accepted
time: 13ms
memory: 6276kb

input:

130

output:

Yes
65529 0 65516 16 65449 80 65452 64 65209 320 65196 336 65193 272 65260 256 64249 1280 64236 1296 64169 1360 64172 1344 64185 1088 64428 1104 64425 1040 64492 1024 60409 5120 60396 5136 60329 5200 60332 5184 60089 5440 60076 5456 60073 5392 60140 5376 60153 4352 61164 4368 61097 4432 61100 4416 6...

result:

ok 1

Test #31:

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

input:

126

output:

Yes
16377 0 16364 16 16297 80 16300 64 16057 320 16044 336 16041 272 16108 256 15097 1280 15084 1296 15017 1360 15020 1344 15033 1088 15276 1104 15273 1040 15340 1024 11257 5120 11244 5136 11177 5200 11180 5184 10937 5440 10924 5456 10921 5392 10988 5376 11001 4352 12012 4368 11945 4432 11948 4416 1...

result:

ok 1

Test #32:

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

input:

66

output:

Yes
16377 0 16364 16 16297 80 16300 64 16057 320 16044 336 16041 272 16108 256 15097 1280 15084 1296 15017 1360 15020 1344 15033 1088 15276 1104 15273 1040 15340 1024 11257 5120 11244 5136 11177 5200 11180 5184 10937 5440 10924 5456 10921 5392 10988 5376 11001 4352 12012 4368 11945 4432 11948 4416 1...

result:

ok 1

Test #33:

score: 0
Accepted
time: 409ms
memory: 51608kb

input:

1021

output:

Yes
1048569 0 1048556 16 1048489 80 1048492 64 1048249 320 1048236 336 1048233 272 1048300 256 1047289 1280 1047276 1296 1047209 1360 1047212 1344 1047225 1088 1047468 1104 1047465 1040 1047532 1024 1043449 5120 1043436 5136 1043369 5200 1043372 5184 1043129 5440 1043116 5456 1043113 5392 1043180 53...

result:

ok 1

Test #34:

score: 0
Accepted
time: 416ms
memory: 51452kb

input:

1022

output:

Yes
1048569 0 1048556 16 1048489 80 1048492 64 1048249 320 1048236 336 1048233 272 1048300 256 1047289 1280 1047276 1296 1047209 1360 1047212 1344 1047225 1088 1047468 1104 1047465 1040 1047532 1024 1043449 5120 1043436 5136 1043369 5200 1043372 5184 1043129 5440 1043116 5456 1043113 5392 1043180 53...

result:

ok 1

Test #35:

score: 0
Accepted
time: 415ms
memory: 51492kb

input:

1023

output:

Yes
1048569 0 1048556 16 1048489 80 1048492 64 1048249 320 1048236 336 1048233 272 1048300 256 1047289 1280 1047276 1296 1047209 1360 1047212 1344 1047225 1088 1047468 1104 1047465 1040 1047532 1024 1043449 5120 1043436 5136 1043369 5200 1043372 5184 1043129 5440 1043116 5456 1043113 5392 1043180 53...

result:

ok 1

Test #36:

score: 0
Accepted
time: 430ms
memory: 51516kb

input:

1024

output:

Yes
1048569 0 1048556 16 1048489 80 1048492 64 1048249 320 1048236 336 1048233 272 1048300 256 1047289 1280 1047276 1296 1047209 1360 1047212 1344 1047225 1088 1047468 1104 1047465 1040 1047532 1024 1043449 5120 1043436 5136 1043369 5200 1043372 5184 1043129 5440 1043116 5456 1043113 5392 1043180 53...

result:

ok 1

Test #37:

score: 0
Accepted
time: 429ms
memory: 51456kb

input:

1025

output:

Yes
1048569 0 1048556 16 1048489 80 1048492 64 1048249 320 1048236 336 1048233 272 1048300 256 1047289 1280 1047276 1296 1047209 1360 1047212 1344 1047225 1088 1047468 1104 1047465 1040 1047532 1024 1043449 5120 1043436 5136 1043369 5200 1043372 5184 1043129 5440 1043116 5456 1043113 5392 1043180 53...

result:

ok 1

Test #38:

score: 0
Accepted
time: 1412ms
memory: 196012kb

input:

1026

output:

Yes
4194297 0 4194284 16 4194217 80 4194220 64 4193977 320 4193964 336 4193961 272 4194028 256 4193017 1280 4193004 1296 4192937 1360 4192940 1344 4192953 1088 4193196 1104 4193193 1040 4193260 1024 4189177 5120 4189164 5136 4189097 5200 4189100 5184 4188857 5440 4188844 5456 4188841 5392 4188908 53...

result:

ok 1

Test #39:

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

input:

1027

output:

Yes
4194297 0 4194284 16 4194217 80 4194220 64 4193977 320 4193964 336 4193961 272 4194028 256 4193017 1280 4193004 1296 4192937 1360 4192940 1344 4192953 1088 4193196 1104 4193193 1040 4193260 1024 4189177 5120 4189164 5136 4189097 5200 4189100 5184 4188857 5440 4188844 5456 4188841 5392 4188908 53...

result:

ok 1

Extra Test:

score: 0
Extra Test Passed