Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
24734 | LeoWang | 凯撒密码 | C++ | Accepted | 0 MS | 248 KB | 219 | 2023-08-17 01:45:58 |
#include<bits/stdc++.h> using namespace std; int main() { string str; int n; cin>>str; cin>>n; for(int i=0;i<str.length();i++){ str[i]+=n; cout<<str[i]; } }