P1307 [NOIP2011 普及组] 数字反转

P1307 [NOIP2011 普及组] 数字反转

xiaoba20120207 @ 2024-11-10 12:03:37

#include<bits/stdc++.h>
using namespace std;
int n,s=0;
int main()
{
    cin>>n;
    while(n) s=s*10+n%10,n/=10;
    cout<<s;
    return 0;
}

by __int1024 @ 2024-11-10 12:09:34

@xiaoba20120207 wyy,jbl


|