delete pics to save space
This commit is contained in:
13
history_source/信息学奥赛一本通/1.5.3.13.cpp
Normal file
13
history_source/信息学奥赛一本通/1.5.3.13.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include<cstdio>
|
||||
#include<cstring>
|
||||
int main()
|
||||
{
|
||||
char s[40];
|
||||
scanf("%s",s);
|
||||
int len=strlen(s);
|
||||
if(len>2&&s[len-2]=='e'&&s[len-1]=='r') s[len-2]='\0';
|
||||
else if(len>2&&s[len-2]=='l'&&s[len-1]=='y') s[len-2]='\0';
|
||||
else if(len>3&&s[len-3]=='i'&&s[len-2]=='n'&&s[len-1]=='g') s[len-3]='\0';
|
||||
printf("%s\n",s);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user