qwqqqqqq @ 2018-06-14 22:03:25
为何0分,本机测试全对啊,求dalao帮忙
#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int n;
string s;
int main()
{
cin>>n;
getchar();
getline(cin,s);
n%=26;
for(int i=0;i<s.size();i++)
{
s[i]+=n;
}
cout<<s;
return 0;
}
by 小粉兔 @ 2018-06-14 22:37:16
别用getline
by star_magic_young @ 2018-06-15 08:17:38
by 一只章涵 @ 2018-07-17 23:52:28
@小粉兔 大佬能解释下为啥不能用getline啊