为什么全错???蒟蒻求助
查看原帖
为什么全错???蒟蒻求助
930714
zbr121115楼主2024/7/8 11:55

本蒟蒻太逊,误喷_orz_

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
	//freopen("x.in","r",stdin);
	//freopen("x.out","w",stdout);
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	cin>>s;
	for (int i=s.size(); i>=0; i--){
		cout<<s[i];
	}
	return 0;
}

2024/7/8 11:55
加载中...