// yuki 932 解法破綻!高橋君 // 2019.11.30 bal4u #include int getchar_unlocked(void); #define gc() getchar_unlocked() void ins(char *s) { // 文字列の入力 スペース以下の文字で入力終了 do *s = gc(); while (*s++ > ' '); *(s-1) = 0; } char S[400004]; int main() { int w; char *s; ins(S); s = S; while (*s) { if (*s != 'A') { puts("Failed..."); return 0; } s += 3; } puts("Done!"); return 0; }