Submission #1064877


Source Code Expand

import java.util.*;
 
public class Main {
    public static void main(String[] args) {

        Scanner sc  = new Scanner(System.in);

        int cnt = 0;
        String str = "";


        

        int N1 = Integer.parseInt(sc.next());
        int N2 = Integer.parseInt(sc.next());
        int W1 = Integer.parseInt(sc.next());
        int W2 = Integer.parseInt(sc.next());



        System.out.print(Math.max(N1N2,W1*W2));
        System.out.println();
    }

}

Submission Info

Submission Time
Task A - Two Rectangles
User areku2014
Language C++14 (GCC 5.4.1)
Score 0
Code Size 490 Byte
Status CE

Compile Error

./Main.cpp:1:1: error: ‘import’ does not name a type
 import java.util.*;
 ^
./Main.cpp:3:1: error: expected unqualified-id before ‘public’
 public class Main {
 ^