3 solutions

  • 1
    @ 2026-4-24 20:11:11
     #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        string a;
        cin>>a;
        reverse(a.begin(),a.end());
        cout<<a;
        return 0; 
    }
    
    
    • 0
      @ 2025-3-23 13:44:38
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	string n;
      	cin>>n;
      	reverse(n.begin(),n.end());
      	cout<<n;
      	return 0;
      }
      
      
      
      • 0
        @ 2024-9-11 18:36:49
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
        	string n;
        	cin>>n;
        	reverse(n.begin(),n.end());
        	cout<<n;
        	return 0;
        }
        
        
        • 1

        Information

        ID
        100
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        1
        Tags
        (None)
        # Submissions
        49
        Accepted
        34
        Uploaded By