Mock CCC '20 Contest 1 J2 - A Simplex Problem
Source Code
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int CacJoy = in.nextInt();
int MatJoy = in.nextInt();
int total = in.nextInt();
if(CacJoy > MatJoy) {
System.out.println(CacJoy * total);
}else {
System.out.println(MatJoy * total);
}
}
}