笨蛋脑子的解法呜呜呜
#include<iostream>
using namespace std;
int main()
{
double num;
cin>>num;
int a;
a=int(num);
int hundred=a/100;
int b=hundred*100;
int c=a-b;
int d=c/10;
int e=c%10;
double f=num-double(a);
double bai=f*10;
double ten=double(e)/10;
double one=double(d)/100;
double zero=double(hundred)/1000;
double whole=bai+ten+one+zero;
cout<<whole<<endl;
return 0;
}