|
|
back to boardTo admins what's happening here my program what is the problem. tired of changing it. WA test#6: #include <iostream> #include <cmath> using namespace std; int main() { float p,q; long long int n=1; cin>>p>>q; p/=100.0; q/=100.0; while(ceil(n * q + 1e-9)-ceil(n*p + 1e-9)<1.0) n++; cout<<n; return 0; } Re: To admins what's happening Edited by author 04.11.2008 20:21 |
|
|