Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
61294 | 张思存 | 凯撒密码 | C++ | Accepted | 0 MS | 248 KB | 207 | 2025-02-28 15:10:45 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[101]; cin>>a; int n; cin>>n; for(int i=0;i<=strlen(a)-1;i++){ int x=(a[i]-'a'+n)%26; cout<<char('a'+x); } return 0; }