Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
34473 | qwertyuiop | 【入门】凯撒密码 | C++ | 通过 | 0 MS | 248 KB | 220 | 2024-01-07 14:25:15 |
#include<bits/stdc++.h> using namespace std; int n; string s; int main(){ cin>>n>>s; for(int i=0;i<s.size();i++){ for(int j=0;j<n;j++){ s[i]+=1; if(s[i]>'z')s[i]='a'; } } cout<<s; return 0; }