https://www.acmicpc.net/problem/33985 #include #define endl "\n"using namespace std;/******** 전역변수 ********//******** 함 수 ********/int main(void) { /******** C++ INIT ********/ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); /******** 지역변수 ********/ int size; string str; /******** 구 현 ********/ cin >> size; cin >> str; // 사이즈와 상관없이 첫 글자가 A, 끝 글자..