Submission #6445458
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> N(3); int K; cin >> N.at(0) >> N.at(1) >> N.at(2) >> K; sort(N.begin(),N.end()); for(int i=0; i<K; i++){ N.at(2)*=2; } cout << N.at(0)+N.at(1)+N.at(2) << endl; }
Submission Info
Submission Time | |
---|---|
Task | B - Maximum Sum |
User | LiEat_D |
Language | C++14 (GCC 5.4.1) |
Score | 200 |
Code Size | 262 Byte |
Status | AC |
Exec Time | 9 ms |
Memory | 764 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 | 9 ms | 764 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 |