delete pics to save space
This commit is contained in:
21
history_source/ccf 入门篇/U4/4.2.6.cpp
Normal file
21
history_source/ccf 入门篇/U4/4.2.6.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#include<iostream>
|
||||
#include<cmath>
|
||||
#include<string>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
string a;
|
||||
char f;
|
||||
while(true)
|
||||
{
|
||||
cin>>a;
|
||||
for(int i=0;i<a.size();i++)
|
||||
{
|
||||
f=a[i];
|
||||
if(f>='A'&&f<='Z') f=(f-'A'+3)%26+'A';
|
||||
if(f>='a'&&f<='z') f=(f-'a'+3)%26+'a';
|
||||
cout<<f;
|
||||
}
|
||||
cout<<endl<<endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user