|
|
back to boardcould u give me some test #include<iostream> #include<cmath> using namespace std; int main(){ double p,q,ans; long peo; while(cin>>p>>q){ p/=100,q/=100; peo=1; for(;;){ ans=floor(peo*q); if(ans>peo*p && ans<peo*q)break; peo++; } cout<<peo<<endl; } } this is my code it always get WA at #14 could u give me some test |
|
|