Solution for Mock CCC '20 Contest 1 J2 - A Simplex Problem in Java 8


Feb. 11, 2020 62.236247 seconds Java 8
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);
		}
    }
}

Editorial


No editorial for this problem. :(

Original Problem


You can view the original page for this problem on the DMOJ.