ac

zhyf  •  12小时前


include <bits/stdc++.h>

using namespace std;

int main() {

int n;
cin >> n;
for (int i = 0; i < n; i++) {
	int x, x1 = 0;
	cin >> x;
	while (x) {
		x1 = x1 * 10 + x % 10;
		x /= 10;
	}
	cout << x1 << endl;
}
return 0;

}


评论:

请先登录,才能进行评论