2 solutions
Information
- ID
- 1326
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 5
- Tags
- (None)
- # Submissions
- 164
- Accepted
- 63
- Uploaded By
#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; }
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.