Все задачи на 5.10.17 13:00

This commit is contained in:
2017-10-05 13:08:02 +03:00
parent 93746b05d7
commit ca2ca71f63
120 changed files with 2343 additions and 0 deletions

14
uts/uts_17_aut_py/1/C.py Normal file
View File

@@ -0,0 +1,14 @@
n = int(input())
def conNS(x, si1 ,si2):
x = int(str(x), si1)
b = ''
while x > 0:
b, x = str(x%si2)+b, x//si2
return b
n = conNS(n, 5, 7)
n = sum(list(map(int, str(n))))
n = conNS(n, 10, 3)
print(n)