Submission #864697
Source Code Expand
import java.io.*; import java.util.*; public class Main { BufferedReader br; PrintWriter out; StringTokenizer st; boolean eof; void solve() throws IOException { int[] a = new int[3]; for (int i = 0; i < 3; i++) { a[i] = nextInt(); } Arrays.sort(a); if (a[0] % 2 == 0 || a[1] % 2 == 0 || a[2] % 2 == 0) { out.println(0); } else { out.println((long)a[0] * a[1]); } } Main() throws IOException { br = new BufferedReader(new InputStreamReader(System.in)); out = new PrintWriter(System.out); solve(); out.close(); } public static void main(String[] args) throws IOException { new Main(); } String nextToken() { while (st == null || !st.hasMoreTokens()) { try { st = new StringTokenizer(br.readLine()); } catch (Exception e) { eof = true; return null; } } return st.nextToken(); } String nextString() { try { return br.readLine(); } catch (IOException e) { eof = true; return null; } } int nextInt() throws IOException { return Integer.parseInt(nextToken()); } long nextLong() throws IOException { return Long.parseLong(nextToken()); } double nextDouble() throws IOException { return Double.parseDouble(nextToken()); } }
Submission Info
Submission Time | |
---|---|
Task | A - Divide a Cuboid |
User | mmaxio |
Language | Java8 (OpenJDK 1.8.0) |
Score | 200 |
Code Size | 1295 Byte |
Status | AC |
Exec Time | 160 ms |
Memory | 8020 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 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 | 152 ms | 7892 KB |
0_01.txt | AC | 156 ms | 7892 KB |
0_02.txt | AC | 156 ms | 7892 KB |
1_00.txt | AC | 156 ms | 7892 KB |
1_01.txt | AC | 156 ms | 7888 KB |
1_02.txt | AC | 156 ms | 7892 KB |
1_03.txt | AC | 160 ms | 8020 KB |
1_04.txt | AC | 156 ms | 7892 KB |
1_05.txt | AC | 156 ms | 7888 KB |