Submission #864701
Source Code Expand
#include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i = (a); i <= (b); ++i)
#define FORD(i,a,b) for(int i = (a); i >= (b); --i)
#define RI(i,n) FOR(i,1,(n))
#define REP(i,n) FOR(i,0,(n)-1)
#define mini(a,b) a=min(a,b)
#define maxi(a,b) a=max(a,b)
#define mp make_pair
#define pb push_back
#define st first
#define nd second
#define sz(w) (int) w.size()
typedef vector<int> vi;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
const int inf = 1e9 + 5;
const int nax = 1e6 + 5;
int main() {
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if(a % 2 == 0 || b % 2 == 0 || c % 2 == 0) {
puts("0");
return 0;
}
ll ans = (ll) b * c;
mini(ans, (ll) a * c);
mini(ans, (ll) a * b);
printf("%lld\n", ans);
return 0;
}
Submission Info
Submission Time
2016-09-04 21:01:54+0900
Task
A - Divide a Cuboid
User
Errichto
Language
C++14 (GCC 5.4.1)
Score
200
Code Size
794 Byte
Status
AC
Exec Time
95 ms
Memory
764 KB
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:25:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &a, &b, &c);
^
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
95 ms
764 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
6 ms
256 KB
1_05.txt
AC
4 ms
256 KB