백준 109881 백준 10988번 - 팰린드롬인지 확인하기 https://www.acmicpc.net/problem/10988 10988번: 팰린드롬인지 확인하기 첫째 줄에 단어가 주어진다. 단어의 길이는 1보다 크거나 같고, 100보다 작거나 같으며, 알파벳 소문자로만 이루어져 있다. www.acmicpc.net #include using namespace std; string str; int ret=1; int main(){ cin >> str; for(int i=0; i s; tmp = s; reverse(tmp.begin(), tmp.end()); if(tmp == s) cout 2023. 8. 14. 이전 1 다음