Submission #6440532
Source Code Expand
#include<bits/stdc++.h> using namespace std; using ll = long long; const ll mod = 1000000007; const ll INF = 100000000000000000LL; signed main(){ int a,b,c,k; cin>>a>>b>>c>>k; int v = max(a,max(b,c)); int res = a+b+c-v; for(int i=1;i<=k;i++){ v *= 2; } cout<<res+v<<endl; }
Submission Info
Submission Time | |
---|---|
Task | B - Maximum Sum |
User | bio4eta |
Language | C++14 (GCC 5.4.1) |
Score | 200 |
Code Size | 323 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 | sample_01.txt, sample_02.txt |
All | in01.txt, in02.txt, in03.txt, in04.txt, sample_01.txt, sample_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in01.txt | AC | 1 ms | 256 KB |
in02.txt | AC | 1 ms | 256 KB |
in03.txt | AC | 1 ms | 256 KB |
in04.txt | AC | 1 ms | 256 KB |
sample_01.txt | AC | 1 ms | 256 KB |
sample_02.txt | AC | 1 ms | 256 KB |