#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
while (true) {
string N; cin >> N;
if (N == "0") return 0;
int start = 0;
int end = N.length() - 1;
bool flag = true;
while (start <= end) {
if (N[start] != N[end]) flag = false;
start++;
end--;
}
if (flag) cout << "yes" << "\n";
else cout<< "no"<<"\n";
}
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 1261๋ฒ - ์๊ณ ์คํ (0) | 2021.11.02 |
---|---|
[๋ฐฑ์ค,c++] 12605๋ฒ - ๋จ์ด ์์ ๋ค์ง๊ธฐ (0) | 2021.11.02 |
[๋ฐฑ์ค,c++] 1260๋ฒ - DFS์ BFS (0) | 2021.11.02 |
[๋ฐฑ์ค,c++] 1253๋ฒ - ์ข๋ค (0) | 2021.11.02 |
[๋ฐฑ์ค,c++] 1238๋ฒ - ํํฐ (0) | 2021.11.02 |
[๋ฐฑ์ค,c++] 12015๋ฒ - ๊ฐ์ฅ ๊ธด ์ฆ๊ฐํ๋ ๋ถ๋ถ ์์ด2 (0) | 2021.11.02 |
๋๊ธ