7 static PrintWriter out
;
9 void run() throws IOException
{
13 int min
= Integer
.MAX_VALUE
;
14 for (int i
= 0; i
< m
; i
++) {
18 for (int j
= 0; j
<= n
; j
++) {
19 int f
= u
* j
- d
* (n
- j
);
21 min
= Math
.min(min
, f
);
29 public static void main(String
[] args
) throws Exception
{
30 in
= new Scanner(new File("business.in"));
31 out
= new PrintWriter("business.out");
33 new business_gk_tl().run();