QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#662790#4832. Telepathyrotcar070 17ms5372kbC++23305b2024-10-21 10:32:332024-10-21 10:32:34

Judging History

你现在查看的是最新测评结果

  • [2024-10-21 10:32:34]
  • 评测
  • 测评结果:0
  • 用时:17ms
  • 内存:5372kb
  • [2024-10-21 10:32:33]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
constexpr int x[8]={0,0,2,0,1,1,2,0};
int main(){
    string s;cin>>s;
    int n,k;cin>>n>>k>>s;
    for(int i=0;i<k;i++){
        int a[3];for(int j=0;j<3;j++) a[j]=s[i*3+j]-'0';
        cout<<i*3+x[a[0]*4+a[1]*2+a[2]]<<' ';
    }
    cout<<'\n';
}

详细

Test #1:

score: 0
Wrong Answer
time: 17ms
memory: 5372kb

input:

Flim
1000000 100000
1101111111100010011110111001110011110110100000111110011111111111110111110100000001001000000110111000000101110000001100111110100100000100010111001011111010001000101100101100001111011100110010010000100100100101110100100110101001001000001011111101111111001100101000010110001011011000...

output:

2 3 6 11 12 15 18 21 25 27 30 33 36 41 42 45 48 51 54 57 60 63 66 69 74 75 78 82 85 87 90 93 97 99 104 105 108 111 116 117 120 125 128 129 134 135 138 142 145 147 151 153 157 161 164 167 170 171 174 178 182 183 186 189 192 197 200 203 206 207 212 215 216 221 223 226 229 231 235 237 242 243 246 250 2...

input:

Flam
1000000 100000
0000001101000100010010001001011111000101010011011001010100101001110101001011001011100001011100110100011110011010100101110101101101100101111011000111001101001100010000010010101110101010111110001100110000110001001111010010000010111101110001011011101101010000111111011111100100010001...

output:

0 3 8 10 14 15 18 21 25 28 30 34 38 40 42 46 49 52 56 59 61 63 68 70 73 76 79 83 84 88 92 93 98 99 102 105 109 113 116 117 122 125 128 131 134 135 139 142 144 148 152 154 158 159 162 165 168 173 174 179 181 183 186 189 194 195 198 201 204 208 210 214 216 219 222 225 230 231 234 238 241 245 248 250 2...

result:

wrong answer