delete pics to save space
This commit is contained in:
19
history_source/信息学奥赛一本通/1.5.3.18.cpp
Normal file
19
history_source/信息学奥赛一本通/1.5.3.18.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
#include<iostream>
|
||||
#include<string>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
string s;
|
||||
getline(cin,s);
|
||||
int len=s.size();
|
||||
for(int i=0,j=len-1;i<j;i++,j--)
|
||||
{
|
||||
if(s[i]!=s[j])
|
||||
{
|
||||
printf("no\n");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
printf("yes\n");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user