Submission #3809439


Source Code Expand

Copy
#include<bits/stdc++.h>
using namespace std;
int  a,h,s,d,n,ans,k,kk,kkk;
int main()
{
    cin>>a>>h>>s>>d>>n;
    k=min(q*4,min(h*2,s));
    if(k*2<=d)
    {
        cout<<k*n<<endl;
    }
    else
    {
        cout<<((n%2)*k)+n/2*d<<endl;
    }
}

Submission Info

Submission Time
Task A - Ice Tea Store
User luogu_bot2
Language C++ (GCC 5.4.1)
Score 0
Code Size 249 Byte
Status

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:7:11: error: ‘q’ was not declared in this scope
     k=min(q*4,min(h*2,s));
           ^