1 条题解

  • 0
    @ 2024-8-15 8:48:12
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    	int n,s=0;
    	cin>>n;
        while(n){
    		s=s*10+n%10,n/=10;
    	}cout<<s;
    return 0;
    }
    
    • 1

    【深基4.习3】[NOIP2011 普及组] 数字反转

    信息

    ID
    95
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    递交数
    8
    已通过
    2
    上传者