字符串为什么不行,结果是对的
查看原帖
字符串为什么不行,结果是对的
1037359
wmbwww楼主2023/9/5 22:07
#include <bits/stdc++.h>
using namespace std;

int main() {
	string a;
	cin >> a;
	for (int i = a.size(); i >= 0; i--) {
		cout <<a[i];
	}
	return 0;
}
2023/9/5 22:07
加载中...