为何RE????
查看原帖
为何RE????
1383878
Gua20131127楼主2025/1/16 08:54
#include<bits/stdc++.h>
using namespace std;
string str,s;
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0),cout.tie(0);
    getline(cin,str);
    str += str[0];
    for(int i = 0;i < str.size();i++){
        s[i] = str[i] + str[i + 1];
    }
    for(int i = 0;i < str.size() - 1;i ++){
        cout<<s[i];
    }
    return 0;
}

有没有大佬知道我为什么RE,玄关。

提交记录

2025/1/16 08:54
加载中...