2 solutions

  • 3
    @ 2025-3-28 17:37:51

    简洁(@-@)

    #include<bits/stdc++.h>
    using namespace std;
    string s;
    int main(){
    	getline(cin,s);
    	for(int i=s.size()-1;i>=0;i--){
    		cout<<s[i];
    	}
    	return 0;
    }
    
    
    • 2
      @ 2025-3-25 18:09:57

      #include<bits/stdc++.h> using namespace std; int main(){ double p; int q,a,b,c,d; cin>>p; q=int(p*10); a=q / 1000; b=q / 100 % 10; c=q / 10 % 10; d=q % 10; cout<<d<<"."<<c<<b<<a<<endl; return 0; }

      • 1

      Information

      ID
      1326
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      5
      Tags
      (None)
      # Submissions
      164
      Accepted
      63
      Uploaded By