#19931: wa line12


fdhs_108OuOb (白熊ʕ •ᴥ•ʔ)


#include<iostream>
#include<cmath>
using namespace std;
int main()
{
double a,b;
while(cin>>a>>b)
{
if(a==1&&b==1)
cout<<"1"<<endl;
else if(a==1&&b==0)
cout<<"1"<<endl;
else if(b==0)
cout<<"1"<<endl;
else
cout<<ceil(b*(log10(a)))<<endl;
}
return 0;
}

 

請問這樣要怎麼辦?

4個wa都奉獻給這一題了