#19931: wa line12


fdhs_108OuOb (白熊ʕ •ᴥ•ʔ)

學校 : 桃園市私立復旦高級中學
編號 : 84135
來源 : [101.10.164.26]
最後登入時間 :
2025-07-16 16:59:50

#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都奉獻給這一題了