Submission #4947013


Source Code Expand

Copy
A, B = map(int, input().split())
r =0
if A > B:
  r+=A
  A-=1
else:
  r += B
  B-=1
 
r+=max(A,B)
print(r)

Submission Info

Submission Time
Task A - Buttons
User showyou41
Language Python3 (3.4.3)
Score 100
Code Size 116 Byte
Status
Exec Time 17 ms
Memory 2940 KB

Test Cases

Set Name Score / Max Score Test Cases
All 100 / 100 sample_01, sample_02, sample_03, testcase_01, testcase_02, testcase_03, testcase_04, testcase_05, testcase_06, testcase_07, testcase_08, testcase_09
Sample 0 / 0 sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
sample_01 17 ms 2940 KB
sample_02 17 ms 2940 KB
sample_03 17 ms 2940 KB
testcase_01 17 ms 2940 KB
testcase_02 17 ms 2940 KB
testcase_03 17 ms 2940 KB
testcase_04 17 ms 2940 KB
testcase_05 17 ms 2936 KB
testcase_06 17 ms 2940 KB
testcase_07 17 ms 2940 KB
testcase_08 17 ms 2940 KB
testcase_09 17 ms 2940 KB