6 static PrintWriter out
;
8 void run() throws IOException
{
12 int min
= Integer
.MAX_VALUE
;
13 for (int i
= 0; i
< m
; i
++) {
17 int x
= d
* n
/ (u
+ d
) + 1;
18 min
= Math
.min(min
, (u
+ d
) * x
- d
* n
);
24 public static void main(String
[] args
) throws Exception
{
25 in
= new Scanner(new File("business.in"));
26 out
= new PrintWriter("business.out");
28 new business_gk().run();