社区讨论

0分WA

P1307[NOIP 2011 普及组] 数字反转参与者 2已保存回复 2

讨论操作

快速查看讨论及其快照的属性,并进行相关操作。

当前回复
2 条
当前快照
1 份
快照标识符
@mlhh50fs
此快照首次捕获于
2026/02/11 11:32
上周
此快照最后确认于
2026/02/12 22:20
7 天前
查看原帖
CPP
#include<bits/stdc++.h>
using namespace std;
string a;
int main(){
	cin>>a;
	if(a[a.length()]!='0'){
		cout<<a[a.length()];
	}
	for(int i=a.length()-1;i>=0;i--){
		cout<<a[i];
	}
	return 0;
}

回复

2 条回复,欢迎继续交流。

正在加载回复...