1 /* Prints 0 if ground floor is reachable */
8 static PrintWriter out
;
10 void run() throws IOException
{
14 int min
= Integer
.MAX_VALUE
;
15 for (int i
= 0; i
< m
; i
++) {
19 for (int j
= 0; j
<= n
; j
++) {
20 int f
= u
* j
- d
* (n
- j
);
22 min
= Math
.min(min
, f
);
30 public static void main(String
[] args
) throws Exception
{
31 in
= new Scanner(new File("business.in"));
32 out
= new PrintWriter("business.out");
34 new business_gk_wa().run();