Submission #864975


Source Code Expand

# -*- coding: utf-8 -*-
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys

def s():
    return raw_input().strip()
def n():
    return int(raw_input())
def d():
    return float(raw_input())

def ls():
    return raw_input().strip().split()
def ln():
    return map(int, raw_input().strip().split())
def ld():
    return map(float, raw_input().strip().split())

def fs():
    return [raw_input().strip() for i in xrange(input())]
def fn():
    return [int(raw_input().strip()) for i in xrange(input())]
def fd():
    return [float(raw_input().strip()) for i in xrange(input())]

A, B, C = ln()

result = min([abs(A * B * (C / 2) - A * B * (C - C / 2)), abs(A * C * (B / 2) - A * C * (B - B / 2)), abs(C * B * (A / 2) - C * B * (A - A / 2))])

print result

Submission Info

Submission Time
Task A - Divide a Cuboid
User mugenen
Language Python (2.7.6)
Score 200
Code Size 814 Byte
Status AC
Exec Time 656 ms
Memory 4644 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 656 ms 4644 KB
0_01.txt AC 49 ms 4132 KB
0_02.txt AC 48 ms 4128 KB
1_00.txt AC 48 ms 4128 KB
1_01.txt AC 48 ms 4128 KB
1_02.txt AC 48 ms 4132 KB
1_03.txt AC 48 ms 4128 KB
1_04.txt AC 48 ms 4128 KB
1_05.txt AC 48 ms 4128 KB