Submission #865602


Source Code Expand

import java.util.*;
import java.io.*;

public class Main {

    int[] a;

    void solve() {
	double A = sc.nextDouble();
	double B = sc.nextDouble();
	double C = sc.nextDouble();

	double max = Math.max(Math.max(A,B),C);

	double tmp = A * B * C;
	double tmp2 = tmp / max;

	double ans = 0;
	if (max % 2 == 0) {
	    ans = 0;
	} else {
	    ans = tmp2;
	}
	System.out.println(ans);
    }

    void print(int[] a) {
	out.print(a[0]);
	for (int i = 1; i < a.length; i++) out.print(" " + a[i]);
	out.println();
    }

    public static void main(String[] args) throws Exception {
	new Main().run();
    }

    MyScanner sc = null;
    PrintWriter out = null;
    public void run() throws Exception {
	sc = new MyScanner(System.in);
	out = new PrintWriter(System.out);
	for (;sc.hasNext();) {
	    solve();
	    out.flush();
	}
	out.close();
    }

    class MyScanner {
	String line;
	BufferedReader reader;
	StringTokenizer tokenizer;

	public MyScanner(InputStream stream) {
	    reader = new BufferedReader(new InputStreamReader(stream));
	    tokenizer = null;
	}
	public void eat() {
	    while (tokenizer == null || !tokenizer.hasMoreTokens()) {
		try {
		    line = reader.readLine();
		    if (line == null) {
			tokenizer = null;
			return;
		    }
		    tokenizer = new StringTokenizer(line);
		} catch (IOException e) {
		    throw new RuntimeException(e);
		}
	    }
	}
	public String next() {
	    eat();
	    return tokenizer.nextToken();
	}
	public String nextLine() {
	    try {
		return reader.readLine();
	    } catch (IOException e) {
		throw new RuntimeException(e);
	    }
	}
	public boolean hasNext() {
	    eat();
	    return (tokenizer != null && tokenizer.hasMoreElements());
	}
	public int nextInt() {
	    return Integer.parseInt(next());
	}
	public long nextLong() {
	    return Long.parseLong(next());
	}
	public double nextDouble() {
	    return Double.parseDouble(next());
	}
	public int[] nextIntArray(int n) {
	    int[] a = new int[n];
	    for (int i = 0; i < n; i++) a[i] = nextInt();
	    return a;
	}
    }
}

Submission Info

Submission Time
Task A - Divide a Cuboid
User nak3
Language Java8 (OpenJDK 1.8.0)
Score 0
Code Size 2147 Byte
Status WA
Exec Time 163 ms
Memory 8148 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
WA × 3
WA × 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 WA 155 ms 8144 KB
0_01.txt WA 155 ms 8148 KB
0_02.txt WA 163 ms 8020 KB
1_00.txt WA 151 ms 8020 KB
1_01.txt WA 162 ms 8020 KB
1_02.txt WA 155 ms 8020 KB
1_03.txt WA 155 ms 8148 KB
1_04.txt WA 155 ms 8020 KB
1_05.txt WA 159 ms 8144 KB