QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#214502#6553. Shared Memory Switchucup-team159#WA 56ms25492kbC++2328.7kb2023-10-14 20:19:482023-10-14 20:19:49

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

9
6 5 4 3 2 8 10 12 14 

result:

ok n=14

Test #2:

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

input:

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

output:

8
6 5 4 3 8 10 12 14 

result:

ok n=14

Test #3:

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

input:

0 0

output:

0


result:

ok n=0

Test #4:

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

input:

0 1

output:

0


result:

ok n=0

Test #5:

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

input:

3 0
1 -1 2

output:

0


result:

ok n=3

Test #6:

score: 0
Accepted
time: 56ms
memory: 25472kb

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
44075 44074 44073 44072 44071 44070 44069 44068 44067 44066 44065 44064 44063 44062 44061 44060 44059 44058 44057 44056 200000 199999 199998 199997 199996 199995 199994 199993 199992 199991 199990 199989 199988 199987 199986 199985 199984 199983 199982 199981 

result:

ok n=200000

Test #7:

score: 0
Accepted
time: 45ms
memory: 25492kb

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

result:

ok n=200000

Test #8:

score: -100
Wrong Answer
time: 43ms
memory: 25400kb

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:

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

result:

wrong answer Buffer overflowed