Submission #1352738


Source Code Expand

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.Arrays;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader input =new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine( );
		String[] strlist = str.split(" ");
		long a = Long.parseLong(strlist[0]);
		long b = Long.parseLong(strlist[1]);
		long c = Long.parseLong(strlist[2]);
		long[] abc = {a, b, c};
		Arrays.sort(abc);

		if(a%2==0 || b%2==0 || c%2==0){
			System.out.println(0);
		}else{
			Long long1 = abc[0];
			Long long2 = abc[1];
			BigInteger big1 = new BigInteger(long1.toString());
			BigInteger big2 = new BigInteger(long2.toString());
			System.out.println(big1.multiply(big2));
		}
	}
}

Submission Info

Submission Time
Task A - Divide a Cuboid
User unirita51
Language Java8 (OpenJDK 1.8.0)
Score 200
Code Size 856 Byte
Status AC
Exec Time 74 ms
Memory 21076 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 9
Set Name Test Cases
Sample 0_00.txt, 0_01.txt, 0_02.txt
All 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt
Case Name Status Exec Time Memory
0_00.txt AC 74 ms 19540 KB
0_01.txt AC 69 ms 19412 KB
0_02.txt AC 71 ms 19156 KB
1_00.txt AC 69 ms 21076 KB
1_01.txt AC 70 ms 18644 KB
1_02.txt AC 67 ms 18644 KB
1_03.txt AC 72 ms 20564 KB
1_04.txt AC 70 ms 19540 KB
1_05.txt AC 70 ms 19284 KB