QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#214716#6553. Shared Memory Switchucup-team1133#WA 52ms14468kbC++202.2kb2023-10-14 23:21:372023-10-14 23:21:37

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

9
2 6 8 5 4 10 12 1 14 

result:

ok n=14

Test #2:

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

input:

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

output:

8
2 6 4 8 10 12 1 14 

result:

ok n=14

Test #3:

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

input:

0 0

output:

0

result:

ok n=0

Test #4:

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

input:

0 1

output:

0

result:

ok n=0

Test #5:

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

input:

3 0
1 -1 2

output:

0

result:

ok n=3

Test #6:

score: 0
Accepted
time: 52ms
memory: 14468kb

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
11124 11694 5330 17213 22874 6376 13683 27444 2738 35694 42437 9098 26161 4268 41987 28617 12237 10382 32488 44075 178343 158331 148517 146694 146610 171024 200000 135041 92139 50500 58853 105840 136878 111333 131480 133100 44540 53081 59286 68155 

result:

ok n=200000

Test #7:

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

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: 10ms
memory: 4120kb

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 6 10 12 16 15 21 20 19 25 27 14 9 8 5 33 40 43 47 46 45 53 58 62 64 61 67 69 74 73 77 79 72 71 83 60 86 88 91 90 95 94 57 100 105 104 103 109 114 113 112 111 120 122 126 125 129 134 136 133 132 131 141 124 144 146 149 148 119 155 157 154 161 160 153 169 172 171 176 175 179 181 168 167 166 18...

result:

ok n=200000

Test #9:

score: -100
Wrong Answer
time: 24ms
memory: 4204kb

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:

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

result:

wrong answer Jury's answer is strictly better