Submission #6345860
Source Code Expand
#include <bits/stdc++> using namespace std; using ll = long long; int main() { ll a,b,c,d; cin>>a>>b>>c>>d; a*=4; b*=2; c = min(a,min(b,c)); ll n; cin >> n; ll ans = n/2*min(d,2*c); if (n&1) ans += c; cout << ans << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Ice Tea Store |
User | m1sch3f |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 271 Byte |
Status | CE |
Compile Error
./Main.cpp:1:23: fatal error: bits/stdc++: No such file or directory #include <bits/stdc++> ^ compilation terminated.