QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#216966#6553. Shared Memory Switchucup-team1400WA 244ms572124kbC++202.1kb2023-10-16 10:04:112023-10-16 10:04:11

詳細信息

Test #1:

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

input:

14 5
1 1 1 2 2 2 -1 1 -1 1 -1 1 -1 1

output:

9
1 4 2 5 3 8 10 12 14

result:

ok n=14

Test #2:

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

input:

14 4
1 1 1 2 2 2 -1 1 -1 1 -1 1 -1 1

output:

8
1 4 2 5 8 10 12 14

result:

ok n=14

Test #3:

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

input:

0 0

output:

0

result:

ok n=0

Test #4:

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

input:

0 1

output:

0

result:

ok n=0

Test #5:

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

input:

3 0
1 -1 2

output:

0

result:

ok n=3

Test #6:

score: 0
Accepted
time: 244ms
memory: 572124kb

input:

200000 20
192797 145760 146491 109352 168621 58673 57243 7936 79733 3190 191130 169391 178004 120789 25556 56547 72241 59274 101245 129056 125785 138556 70154 63360 96036 73373 168059 46716 197905 106279 113884 190286 56438 128423 151368 193658 15613 17963 26833 136697 62679 188745 4515 151940 67745...

output:

40
10 8 15 16 7 6 18 17 9 19 4 14 20 2 3 5 12 13 11 1 44078 44084 44085 44091 44093 44080 44090 44081 44096 44079 44082 44089 44088 44092 44095 44077 44094 44083 44087 44086

result:

ok n=200000

Test #7:

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

input:

200000 20
-1 -1 185081 -1 -1 34870 174269 47583 86208 69115 153529 101705 -1 -1 161748 11940 -1 -1 -1 191433 191546 -1 -1 108421 155301 -1 16678 -1 -1 -1 -1 179950 -1 169577 46923 -1 -1 -1 130194 -1 128371 -1 104684 -1 133162 170545 198827 -1 -1 72240 -1 -1 -1 110876 -1 -1 -1 80829 -1 84239 129224 -...

output:

100583
3 6 8 10 9 12 11 7 16 15 20 21 24 25 27 32 35 34 39 41 43 45 46 47 50 54 58 60 61 65 68 69 70 72 73 75 77 78 79 83 86 87 88 90 91 95 94 97 99 103 102 106 107 108 110 114 117 118 113 115 116 121 120 123 126 124 125 128 131 130 134 133 137 141 142 143 140 146 152 151 150 148 147 149 153 154 161...

result:

ok n=200000

Test #8:

score: 0
Accepted
time: 139ms
memory: 567864kb

input:

200000 20
-1 -1 9380 -1 9380 9380 -1 9380 9380 9380 -1 9380 -1 9380 9380 9380 -1 -1 9380 9380 9380 -1 -1 -1 9380 -1 9380 -1 -1 -1 -1 -1 9380 -1 -1 -1 -1 -1 -1 9380 -1 9380 9380 -1 9380 9380 9380 -1 -1 -1 9380 9380 9380 -1 9380 9380 9380 9380 -1 9380 9380 9380 -1 9380 -1 -1 9380 -1 9380 -1 9380 9380 ...

output:

95229
3 5 6 8 9 10 12 14 15 16 19 20 21 25 27 33 40 42 43 45 46 47 51 52 53 55 56 57 58 60 61 62 64 67 69 71 72 73 74 77 79 83 86 88 90 91 94 95 99 100 102 103 104 105 109 111 112 113 114 119 120 122 124 125 126 129 131 132 133 134 136 141 144 146 148 149 153 154 155 157 160 161 165 166 167 168 169 ...

result:

ok n=200000

Test #9:

score: -100
Wrong Answer
time: 163ms
memory: 569476kb

input:

200000 20
155567 -1 155567 131057 131057 131057 -1 131057 131057 155567 155567 -1 155567 131057 155567 131057 155567 131057 131057 -1 155567 -1 155567 155567 131057 -1 155567 131057 131057 -1 155567 -1 -1 -1 -1 155567 155567 155567 131057 155567 155567 -1 -1 155567 131057 -1 131057 155567 155567 131...

output:

122433
1 4 3 5 10 6 11 8 13 9 15 14 17 16 21 18 23 19 24 25 27 28 31 29 36 39 37 45 38 47 40 50 41 60 44 63 48 64 49 67 51 68 53 74 54 76 55 82 56 86 57 90 58 91 59 93 65 69 71 99 73 77 80 106 81 107 84 109 87 113 89 94 101 122 103 124 104 129 108 112 134 115 137 116 139 117 119 144 125 126 128 131 ...

result:

wrong answer Jury's answer is strictly better