提交时间:2025-08-05 17:12:49
运行 ID: 338053
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,x; cin>>n>>m; for(int i=1;i<=n;i++){ for(int j=1;j<=m;j++){ cin>>x; int m=x,s=0; while(m){ s=s*10+m%10; m/=10; } if(s==x) cout<<x<<endl; } } return 0; }