Submission #2557714
Source Code Expand
a = list(map(int, input().split())) k = int(input()) suma = sum(a) - max(a) maxa = max(a) for i in range(k): maxa *= 2 suma += maxa print(suma)
Submission Info
Submission Time | |
---|---|
Task | B - Maximum Sum |
User | yoshi623 |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 160 Byte |
Status | AC |
Exec Time | 17 ms |
Memory | 3060 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 | 17 ms | 2940 KB |
in02.txt | AC | 17 ms | 2940 KB |
in03.txt | AC | 17 ms | 3060 KB |
in04.txt | AC | 17 ms | 2940 KB |
sample_01.txt | AC | 17 ms | 2940 KB |
sample_02.txt | AC | 17 ms | 2940 KB |