2 条题解

  • 0
    @ 2026-5-17 14:50:44
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int n; cin >> n;
    	string s;
    	cin >> s;
    	for(int i = 0; i < n; i++){
    		if(s[i] == 'n' && s[i+1] == 'a') cout << "ny";
    		else cout << s[i];
    	}
    	return 0;
    }
    • 0
      @ 2026-5-17 14:50:38
      • 1

      信息

      ID
      7784
      时间
      2000ms
      内存
      1024MiB
      难度
      8
      标签
      递交数
      11
      已通过
      9
      上传者