#include<iostream>
using namespace std;
int main()
{
int m;
cin>>m;
float y=1;
while(y!=m)
{
cout<<y;
if(((y-1)/3)%1.0==0 and ((y-1)/3)%2.0==0)
{
y=(y-1)/3;
}
else
{
y*=2;
}
}
return 0;
}
if那一行编译:[Error] invalid operands of types 'float' and 'double' to binary 'operator%'
求改