ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1011. Conductors

To admins what's happening
Posted by Rustambek_UWED 11 Apr 2008 21:33
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
Posted by isliguezze(TNU) 4 Nov 2008 20:20


Edited by author 04.11.2008 20:21