Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
81974 sh25_shenpy Caesar加密 C++ 编译错误 0 MS 0 KB 367 2026-01-09 16:51:23

Tests(0/0):


#include<bits/stdc++.h> #include<cstring> using namespace std; int main(){ string s; cin>>s; for(int i=0;i<strlen(s);++i){ if(isalpha(s[i])==true){ if(s[i]>='a'&&s[i]<='e') s[i]+=26; if(s[i]>='A'&&s[i]<='E') s[i]+=32; cout<<(char)(s[i]-5); } else cout<<s[i]; } return 0; }


测评信息: