Nathan Coulas

Mock CCC '20 Contest 1 J2 - A Simplex Problem

mockccc2020c1j2 JAVA8 11 Feb, 2020 62.236s 3 points

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);
		}
    }
}