Submission #1371504
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(),b = scanner.nextInt(),c = scanner.nextInt(); if(a % 2 == 0 || b % 2 == 0 || c % 2 == 0){ System.out.println("0"); }else{ long ans = a*b; ans = Math.min(ans,a*c); ans = Math.min(ans, b*c); System.out.println(ans); } } }
Submission Info
Submission Time | |
---|---|
Task | A - Divide a Cuboid |
User | m8618 |
Language | Java7 (OpenJDK 1.7.0) |
Score | 0 |
Code Size | 422 Byte |
Status | WA |
Exec Time | 101 ms |
Memory | 22740 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||||
Status |
|
|
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 | 98 ms | 19028 KB |
0_01.txt | AC | 98 ms | 18900 KB |
0_02.txt | AC | 101 ms | 22740 KB |
1_00.txt | AC | 99 ms | 18772 KB |
1_01.txt | AC | 100 ms | 20820 KB |
1_02.txt | AC | 99 ms | 18900 KB |
1_03.txt | WA | 101 ms | 22484 KB |
1_04.txt | WA | 100 ms | 20820 KB |
1_05.txt | WA | 100 ms | 20820 KB |