版本比较
题解:P14631 [2018 KAIST RUN Fall] Repetitive Palindrome
正文
增加 3 行删除 3 行
16 行未改动171819202121222324252626272828293031323316 行未改动```cpp#include<bits/stdc++.h>using namespace std;string a,b;int main() int main(){ cin>>a;//与k无关,不用输入 b=a; reverse(a.begin(),a.end());//翻转字符串 if(a==b) if(a==b) cout<<"YES"; else else cout<<"NO"; return 0;}
```