Дамп всех задач

This commit is contained in:
2017-05-22 13:29:43 +03:00
parent b970626fef
commit 93746b05d7
173 changed files with 2505 additions and 0 deletions

12
olymp2017/2.py Normal file
View File

@@ -0,0 +1,12 @@
def Calc(a, b, op):
dived = {
1: a-b,
2: a*b,
3: a/b,
}
try:
return dived[op]
except KeyError:
return a+b
a, b, op = list(map(int, input().split()))
print(Calc(a, b, op))