jimmyshi29 @ 2020-08-13 12:51:33
# include <iostream>
# include <algorithm>
# include <string>
# include <functional>
# include <vector>
# include <cstring>
# include <cmath>
# include <cstdio>
# include <queue>
# include <cstdlib>
using namespace std;
int main()
{
int k;
cin >> k;
string s;
cin >> s;
int l = s.size();
for (int i = 0; i <= l - 1; i++)
{
if (s[i] + k >= 'z') cout << char(s[i] + k - 36);
else cout << char(s[i] + k);
}
return 0;
}
不知道为什么40分,自己测试的时候还正常,大佬帮忙看看
by Andy_chen @ 2020-08-13 12:58:18
啊啊啊啊啊啊为什么我的求助帖没人看55555555
by JJA_ @ 2020-08-13 13:00:29
@Andy_chen 您太奆了,我看不懂qwq
by 云岁月书 @ 2020-08-13 13:01:48
不是36,是 26.
10
abcdefghijklmnopqrstuvwsyz
就移位错误了。
by 老梅鲁班七号 @ 2020-08-29 16:37:49
@Andy_chen#include<bits/stdc++.h>直接一个万能库它不香吗??用不着写那么多吧