2 solutions

  • 0
    @ 2024-9-24 12:10:16

    #include<stdio.h> int main() { int n; scanf("%d",&n); while(n!=0){ printf("%d",n%10); n/=10; } return 0; }

    • 0
      @ 2023-9-30 13:47:15
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
           string s;
      	cin>>s;
      	reverse(s.begin(),s.end());
      	cout<<s;
           return 0;
      }
      
      • 1

      Information

      ID
      6723
      Time
      1000ms
      Memory
      128MiB
      Difficulty
      5
      Tags
      (None)
      # Submissions
      311
      Accepted
      110
      Uploaded By