QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#214598#6553. Shared Memory Switchucup-team1400#WA 136ms285536kbC++202.5kb2023-10-14 21:40:452023-10-14 21:40:46

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 41ms
memory: 278024kb

input:

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

output:

9
1 4 2 5 6 8 10 12 14

result:

ok n=14

Test #2:

score: 0
Accepted
time: 38ms
memory: 278148kb

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: 35ms
memory: 274536kb

input:

0 0

output:

0

result:

ok n=0

Test #4:

score: 0
Accepted
time: 35ms
memory: 274088kb

input:

0 1

output:

0

result:

ok n=0

Test #5:

score: 0
Accepted
time: 40ms
memory: 278340kb

input:

3 0
1 -1 2

output:

0

result:

ok n=3

Test #6:

score: 0
Accepted
time: 136ms
memory: 285536kb

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
11694 5330 17213 22874 6376 13683 27444 35694 42437 9098 26161 4268 41987 28617 12237 10382 32488 4654 15602 2585 171024 178343 58853 146694 92139 133100 148517 136878 158331 146610 111333 105840 59286 135041 106761 157254 69146 60378 81261 143755

result:

ok n=200000

Test #7:

score: 0
Accepted
time: 67ms
memory: 279508kb

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: 48ms
memory: 279564kb

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: 96ms
memory: 280248kb

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:

122491
1 3 4 5 10 6 11 8 13 9 15 17 14 16 21 18 23 19 24 25 27 28 31 29 36 39 37 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 Buffer overflowed