计算所在位置
字符串切片换位置
#include <stdio.h>
int main(int argc, char* argv[]) {
const char* off_409004 = "Andromeda";
const char* off_409008 = "Messier";
const char* off_40900C = "Sombrero";
const char* off_409010 = "Triangulum";
char flag[20] = {0};
flag[0] = off_409004[8];
flag[1] = off_409010[7];
flag[2] = off_409008[4];
flag[3] = off_409004[6];
flag[4] = off_409004[1];
flag[5] = off_409008[2];
flag[6] = 95;
flag[7] = off_409004[8];
flag[8] = off_409004[3];
flag[9] = off_40900C[5];
flag[10] = 95;
flag[11] = off_409004[8];
flag[12] = off_409004[3];
flag[13] = off_409004[4];
flag[14] = off_409010[6];
flag[15] = off_409010[4];
flag[16] = off_409004[2];
flag[17] = 95;
flag[18] = off_409010[6];
flag[19] = off_409008[3];
flag[20] = 0;
printf("%s\n", flag);
return 0
}