Submission #865637
Source Code Expand
import math def solve(): a, b, c = map(int, input().split()) mindiff = 10 ** 27 mindiff = min(mindiff, math.ceil(a/2) * b * c - math.floor(a/2) * b * c) mindiff = min(mindiff, math.ceil(b/2) * a * c - math.floor(b/2) * a * c) mindiff = min(mindiff, math.ceil(c/2) * b * a - math.floor(c/2) * b * a) print(mindiff) if __name__=="__main__": solve()
Submission Info
Submission Time | |
---|---|
Task | A - Divide a Cuboid |
User | yumechi |
Language | PyPy3 (2.4.0) |
Score | 200 |
Code Size | 387 Byte |
Status | AC |
Exec Time | 366 ms |
Memory | 43120 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 | 346 ms | 43120 KB |
0_01.txt | AC | 344 ms | 42992 KB |
0_02.txt | AC | 356 ms | 42992 KB |
1_00.txt | AC | 362 ms | 42992 KB |
1_01.txt | AC | 354 ms | 42992 KB |
1_02.txt | AC | 360 ms | 42992 KB |
1_03.txt | AC | 355 ms | 42992 KB |
1_04.txt | AC | 366 ms | 42992 KB |
1_05.txt | AC | 351 ms | 42992 KB |