A

· · 题解

判断输入是 \text{ARC} 还是 \text{ABC} 即可,输出另外一个。

读入字符串可以就用 scanf 读,判第二个字母即可。

#include<bits/stdc++.h>
#define in inline
#define re register
using namespace std;
in int read() {
    re int t=0;
    re char v=getchar();
    while(v<'0'||v>'9')v=getchar();
    while(v>='0'&&v<='9') {
        t=(t<<3)+(t<<1)+(v^48);
        v=getchar();
    }
    return t;
}
char s[14];
signed main(){
    scanf("%s",s+1);
    if(s[2]=='B')puts("ARC");
    else puts("ABC");
}