2 solutions

  • -1
    @ 2026-4-1 11:59:39
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin>>n;
    	while(n){
    		int t=n%10;
    		if(t) cout<<t;
    		n/=10;
    	}
    	return 0;
    }
    

    Information

    ID
    2821
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    1
    Tags
    # Submissions
    100
    Accepted
    60
    Uploaded By