Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
89178 | 杨珞烯 | 情报加密 | C++ | Accepted | 1 MS | 264 KB | 382 | 2024-08-23 10:25:50 |
#include <bits/stdc++.h> using namespace std; char s[81]; int main(){ cin.getline(s,81); int n=strlen(s); for(int i=0;i<=n-1;i++){ if(s[i]>=65&&s[i]<=90){ if(s[i]=='Z'){ s[i]='A'; }else{ s[i]=s[i]+1; } }else if(s[i]>=97&&s[i]<=122){ if(s[i]=='z'){ s[i]='a'; }else{ s[i]+=1; } } } cout<<s; return 0; } //yuhuxun