5 solutions

  • 5
    @ 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;
    }
    
    
    • -1
      @ 2025-12-3 17:12:32

      #include<bits/stdc++.h> using namespace std; int main(){ double p; int q,a,b,c,d; cin>>p; q=(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
        @ 2025-12-2 17:05:35

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

        • -2
          @ 2026-1-14 18:02:54

          看看看,看你妈

          • -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
            4
            Tags
            (None)
            # Submissions
            286
            Accepted
            122
            Uploaded By