#include <iostream>
#include <cmath>
#include <string>
using namespace std; int main()
{
//freopen("acm.acm","r",stdin);
int num;
int i;
int j;
int tem;
int index;
int sum;
string s;
cin>>num;
getchar();
while(num --)
{
index = ;
getline(cin,s);
for(i = ; i < ; ++ i)
{
sum = ;
for(j = index; j < +index; ++ j)
{
tem = s[j] - '';
if(tem == )
sum += pow(double(),index+-j-)*tem;
}
index += ;
if(i != )
cout<<sum<<".";
else
cout<<sum;
// cout<<" index "<<index<<endl;
}
cout<<endl;
}
}
关注我的公众号,当然,如果你对Java, Scala, Python等技术经验,以及编程日记,感兴趣的话。
技术网站地址: vmfor.com