Yeah, though I just used the normal JDK to solve. This is for Steed 2:
Cruise Control.
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for (int qw = 1; qw <= T; qw++) {
double t = 0;
int d = sc.nextInt(), n = sc.nextInt();
for (int i = 0; i < n; i++) {
t = Math.max((d-sc.nextInt()) / sc.nextDouble(), t);
}
System.out.printf("Case #%d: %.8f\n", qw, d/t);
}
}
}
On Fri, Apr 6, 2018 at 1:16 PM Xandrieth Xs <[email protected]> wrote:
> Anyone who got the solutions in Java (Open JDK)....?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/4833bcd3-3f23-46a1-9251-836fa6e4e36c%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-code/CAHaiWHMmppDF3zA6BTiX1Ufb0Y2OBvuyWrB3u01sziJ0VmGipQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.