4 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
      @ 2026-6-13 14:23:34
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	string s1;
      	cin>>s1;
          for(int i=s1.size()-1;i>=0;i--){
              cout<<s1[i];
          }
      	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
          53
          Accepted
          36
          Uploaded By