Submission #1219503
Source Code Expand
#define NDEBUG NDEBUG #include <algorithm> #include <cassert> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <set> #include <sstream> #include <string> #include <tuple> #include <unordered_map> #include <unordered_set> #include <vector> #include <memory> #include <random> typedef int64_t int64; using namespace std; // TC_REMOVE_BEGIN /// caide keep bool __hack = std::ios::sync_with_stdio(false); /// caide keep auto __hack1 = cin.tie(nullptr); // TC_REMOVE_END namespace template_util { constexpr int bytecount(uint64_t x) { return x ? 1 + bytecount(x >> 8) : 0; } /// caide keep template<int N> struct bytetype { }; /// caide keep template<> struct bytetype<4> { }; /// caide keep template<> struct bytetype<3> { }; /// caide keep template<> struct bytetype<2> { }; /// caide keep template<> struct bytetype<1> { }; /// caide keep template<> struct bytetype<0> { }; /// caide keep template<uint64_t N> struct minimal_uint : bytetype<bytecount(N)> { }; } template<class T> T next(istream& in) { T ret; in >> ret; return ret; } int64 f(int64 a, int64 b, int64 c) { int64 res = a * b * (c % 2); return res; } void solve(istream& in, ostream& out) { int64 a = next<int64>(in); int64 b = next<int64>(in); int64 c = next<int64>(in); int64 res = min(f(a, b, c), min(f(a, c, b), f(b, c, a))); out << res << endl; } int main() { solve(cin, cout); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Divide a Cuboid |
User | alf |
Language | C++14 (GCC 5.4.1) |
Score | 200 |
Code Size | 1783 Byte |
Status | AC |
Exec Time | 1 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 | 1 ms | 256 KB |
0_01.txt | AC | 1 ms | 256 KB |
0_02.txt | AC | 1 ms | 256 KB |
1_00.txt | AC | 1 ms | 256 KB |
1_01.txt | AC | 1 ms | 256 KB |
1_02.txt | AC | 1 ms | 256 KB |
1_03.txt | AC | 1 ms | 256 KB |
1_04.txt | AC | 1 ms | 256 KB |
1_05.txt | AC | 1 ms | 256 KB |