2 solutions

  • 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; }

    Information

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