Submission #865595
Source Code Expand
#include <bits/stdc++.h> #define pb push_back #define pii pair <int, int> #define mp make_pair #define F first #define S second #define ll long long #define iosbase ios_base::sync_with_stdio(false) #define sc scanf #define pr printf #define null NULL #define getcx getchar_unlocked #define lb lower_bound #define ub upper_bound #define all(x) x.begin(), x.end() #define pll pair<ll,ll> #define vi vector <int> #define vll vector <ll> #define maxs 200005 #define logmaxs 35 #define MOD 1000000007 #define eps 1e-9 #define llmax 1e19+5 #define intmax 1e9+5 #define intmin -intmax #define pi 3.14159265358979 using namespace std; int main(){ ll a,b,c; cin>>a>>b>>c; ll ans=llmax; ans=min(ans, b*c*abs((2*(a/2)-a))); ans=min(ans, a*c*abs((2*(b/2)-b))); ans=min(ans, b*a*abs((2*(c/2)-c))); cout<<ans; }
Submission Info
Submission Time | |
---|---|
Task | A - Divide a Cuboid |
User | begin_hs |
Language | C++14 (GCC 5.4.1) |
Score | 200 |
Code Size | 853 Byte |
Status | AC |
Exec Time | 4 ms |
Memory | 256 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:25:20: warning: overflow in implicit constant conversion [-Woverflow] #define llmax 1e19+5 ^ ./Main.cpp:36:9: note: in expansion of macro ‘llmax’ ll ans=llmax; ^
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 |