Submission #864973
Source Code Expand
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
const int MOD = 1000000007;
#define op(x) (x&(-x))
#define trace1(x) cerr << #x << ": " << x << endl;
#define trace2(x, y) cerr << #x << ": " << x << " | " << #y << ": " << y << endl;
#define trace3(x, y, z) cerr << #x << ": " << x << " | " << #y << ": " << y << " | " << #z << ": " << z << endl;
#define trace4(a, b, c, d) cerr << #a << ": " << a << " | " << #b << ": " << b << " | " << #c << ": " << c << " | " << #d << ": " << d << endl;
#define trace5(a, b, c, d, e) cerr << #a << ": " << a << " | " << #b << ": " << b << " | " << #c << ": " << c << " | " << #d << ": " << d << " | " << #e << ": " << e << endl;
#define trace6(a, b, c, d, e, f) cerr << #a << ": " << a << " | " << #b << ": " << b << " | " << #c << ": " << c << " | " << #d << ": " << d << " | " << #e << ": " << e << " | " << #f << ": " << f << endl;
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define si(n) scanf("%d",&n)
#define s2i(x,y) scanf("%d %d",&x,&y);
#define s3i(x,y,z) scanf("%d %d %d",&x,&y,&z);
#define s4i(x,y,z,w) scanf("%d %d %d %d",&x,&y,&z,&w);
#define print(a,n) for(int i=0;i<n;i++) cout<<a[i]<<" "; cout<<endl;
#define print2d(a,n,m) for(int i=0;i<n;i++) {for(int j=0;j<m;j++) cout<<a[i][j]<<" "; cout<<endl;}
//FILE *fin = freopen("in","r",stdin);
//FILE *fout = freopen("out","w",stdout);
int main()
{
ll a,b,c;
cin>>a>>b>>c;
if(a%2==0||b%2==0||c%2==0)
{
cout<<0<<endl;
return 0;
}
ll ans = min(a*b,min(b*c,a*c));
cout<<ans<<endl;
return 0;
}
Submission Info
Submission Time |
|
Task |
A - Divide a Cuboid |
User |
VistaarJ |
Language |
C++14 (GCC 5.4.1) |
Score |
200 |
Code Size |
1635 Byte |
Status |
AC |
Exec Time |
4 ms |
Memory |
256 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 |
4 ms |
256 KB |
0_01.txt |
AC |
4 ms |
256 KB |
0_02.txt |
AC |
4 ms |
256 KB |
1_00.txt |
AC |
4 ms |
256 KB |
1_01.txt |
AC |
4 ms |
256 KB |
1_02.txt |
AC |
4 ms |
256 KB |
1_03.txt |
AC |
4 ms |
256 KB |
1_04.txt |
AC |
4 ms |
256 KB |
1_05.txt |
AC |
4 ms |
256 KB |