思路:关于assic的输出
#include<stdio.h>
#include<string.h>
int bite[] = {128, 64, 32, 16, 8, 4, 2, 1};
int main(){
char s[300];
int assic;
while (gets(s)){
if (s[0] == '|'){
assic = 0;
for(int i = 0;i <= 5; i++)
if(s[i] == 'o')
assic += bite[i - 1];
for(int i = 7;i <= 9; i++)
if(s[i] == 'o')
assic += bite[i - 2];
printf("%c", assic);
}
}
return 0;
}