Submission #9434215 - AtCoder Grand Contest 004 | AtCoder
// ===================================
// author: M_sea
// website: http://m-sea-blog.com/
// ===================================
#include <algorithm>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <vector>
#include <cmath>
#define re register
using namespace std;
inline int read()
{
int X = 0, w = 1;
char c = getchar();
while (c < '0' || c > '9')
{
if (c == '-')
w = -1;
c = getchar();
}
while (c >= '0' && c <= '9')
X = X * 10 + c - '0', c = getchar();
return X * w;
}
int a[3];
int main()
{
a[0] = read(), a[1] = read(), a[2] = read();
sort(a, a + 3);
if (a[0] & a[1] & a[2] & 1)
printf("%lld\n", 1ll * a[0] * a[1]);
else
puts("0");
return 0;
}
Submission
Task
A - Divide a Cuboid
User name
M_sea
Created time
2020/01/12 13:32:13
Language
C++14 (GCC 5.4.1)
Status
AC
Score
200
Source length
667 Byte
File name
Exec time
1 ms
Memory usage
256 KB
评论
发表评论