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 1582. Bookmakers

What is it?!?!?!
Posted by Amaranth 28 Oct 2007 12:24
As far as I know the first test of each problem is the test from the statement. This is my sollution.
import java.util.Locale;
import java.util.Scanner;


public class t1582 {
    public static void main(String[] args) {
        Locale.setDefault(Locale.US);
        Scanner in = new Scanner(System.in);
        double
        k1 = in.nextDouble(),
        k2 = in.nextDouble(),
        k3 = in.nextDouble();
        System.out.print(Math.round(1000.0/(k2/k3+k2/k1+1)*k2));
    }
}
On my PC on the first ans second test the answer is right.
But I get WA on 1 test!!!! What is it!!! May be something with Java....
Re: What is it?!?!?!
Posted by Amaranth 28 Oct 2007 18:02
It was Java problem, 'cause just few minute ago the previous sollution was AC.