不知道为什么全WA。。。
查看原帖
不知道为什么全WA。。。
1057235
bf29__lj楼主2023/8/17 18:46
#include <iostream>
#include <cstdio>

using namespace std;

int main() {
	int a;
	int t;
	cin >> a;
	//cin.ignore();
	int ofs = a % 26;
	while ((t = getchar()) != '\n')
	{
		t = (t + ofs > 'z') ? (t + ofs - 26) : (t + ofs);
		putchar(t);
	}
	return 0;
}

在自己电脑上运行好像没问题

2023/8/17 18:46
加载中...