delete pics to save space
This commit is contained in:
17
history_source/信息学奥赛一本通/1.5.3.8.cpp
Normal file
17
history_source/信息学奥赛一本通/1.5.3.8.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include<cstdio>
|
||||
#include<cstring>
|
||||
char turn(char n)
|
||||
{
|
||||
if((n>='a'&&n<='y')||(n>='A'&&n<='Y')) return n+1;
|
||||
if(n=='Z'||n=='z') return n-25;
|
||||
return n;
|
||||
}
|
||||
int main()
|
||||
{
|
||||
char a[85];
|
||||
gets(a);
|
||||
int len=strlen(a);
|
||||
for(int i=0;i<len;i++) printf("%c",turn(a[i]));
|
||||
printf("\n");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user