厌氧
  • 板块灌水区
  • 楼主123456789xiao
  • 当前回复1
  • 已保存回复1
  • 发布时间2024/11/28 18:55
  • 上次更新2024/11/28 20:38:31
查看原帖
厌氧
1021084
123456789xiao楼主2024/11/28 18:55

p1914 吸氧 20pts 未吸氧 40pts

#include<bits/stdc++.h>
using namespace std;
int main(){
	string peroid;
	int n;
	cin>>n>>peroid;
	for(int i=0;i<peroid.length();i++){
		for(int j=1;j<=n;j++){		
			peroid[i]++;
			if(peroid[i]>'z'){
				peroid[i]='a';
			}
		}
	}cout<<peroid;
	return 0;
}

菜鸟

2024/11/28 18:55
加载中...