QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#214646#6553. Shared Memory Switchucup-team122#WA 23ms5892kbC++202.4kb2023-10-14 22:31:232023-10-14 22:31:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 3772kb

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: 3820kb

input:

0 0

output:

0


result:

ok n=0

Test #4:

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

input:

0 1

output:

0


result:

ok n=0

Test #5:

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

input:

3 0
1 -1 2

output:

0


result:

ok n=3

Test #6:

score: 0
Accepted
time: 16ms
memory: 4616kb

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

result:

ok n=200000

Test #7:

score: 0
Accepted
time: 15ms
memory: 5732kb

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 7 8 9 10 11 12 15 16 20 21 24 25 27 32 34 35 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 94 95 97 99 102 103 106 107 108 110 113 114 115 116 117 118 120 121 123 124 125 126 128 130 131 133 134 137 140 141 142 143 146 147 148 149 150 151 152 153 154 161...

result:

ok n=200000

Test #8:

score: 0
Accepted
time: 15ms
memory: 5516kb

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: 23ms
memory: 5892kb

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

result:

wrong answer Jury's answer is strictly better