Skip to content
Snippets Groups Projects
Commit 191b1bd1 authored by hacker717's avatar hacker717
Browse files

Коммит main в маи

parent 6b4210c4
No related branches found
No related tags found
No related merge requests found
print("Привет, Яндекс!")
\ No newline at end of file
kid_name, num = input(), int(input())
print(f"Группа №{num // 100}.", f"{num % 10}. {kid_name}.", f"Шкафчик: {num}.", sep="\n")
print(f"Кроватка: {(num % 100) // 10}.")
\ No newline at end of file
s = input()
s = s[1] + s[0] + s[3] + s[2]
print(s)
\ No newline at end of file
n1, n2 = input(), input()
max_len = max(len(n1), len(n2))
if len(n1) < max_len:
n1 = "0" * (max_len - len(n1)) + n1
if len(n2) < max_len:
n2 = "0" * (max_len - len(n2)) + n2
res = ""
for i in range(max_len - 1, -1, -1):
res = str((int(n1[i]) + int(n2[i])) % 10) + res
print(res)
\ No newline at end of file
kid_c, cand_c = int(input()), int(input())
print(cand_c // kid_c)
print(cand_c % kid_c)
\ No newline at end of file
red_c, green_c, blue_c = int(input()), int(input()), int(input())
print(red_c + blue_c + 1)
\ No newline at end of file
n, m, t = int(input()), int(input()), int(input())
n += t // 60
m += t % 60
while m > 59:
m -= 60
n += 1
while n > 23:
n -= 24
s = ""
for arg in [n, m]:
if arg < 10:
s += "0"
s += str(arg)
s = s[:2] + ":" + s[2:]
print(s)
\ No newline at end of file
a, b, c = int(input()), int(input()), int(input())
dist = a - b
if dist < 0:
dist *= -1
time = str(dist / c).split(".")
if len(time[1]) < 2:
time[1] += "0"
elif len(time) > 2:
time[1] = time[1][:2]
print(".".join(time))
\ No newline at end of file
print(int(input()) + int(input(), 2))
\ No newline at end of file
print(-1 * int(input(), 2) + int(input()))
\ No newline at end of file
name, cost, weight, mon = input(), int(input()), int(input()), int(input())
print("=" * 16, "Чек", "=" * 16, sep="")
print("Товар:", " " * (29 - len(str(name))), name, sep="")
print("Цена:", " " * (19 - len(str(weight)) - len(str(cost))), f"{weight}кг * {cost}руб/кг", sep="")
print("Итого:", " " * (26 - len(str(weight * cost))), f"{weight * cost}руб", sep="")
print("Внесено:", " " * (24 - len(str(mon))), f"{mon}руб", sep="")
print("Сдача:", " " * (26 - len(str(mon - (weight * cost)))), f"{mon - (weight * cost)}руб", sep="")
print("=" * 35)
\ No newline at end of file
print("Как Вас зовут?")
name = input()
print(f"Привет, {name}")
\ No newline at end of file
n, m, k1, k2 = int(input()), int(input()), int(input()), int(input())
x = int((n * m - k2 * n) / (k1 - k2))
y = n - x
print(x, y)
\ No newline at end of file
This diff is collapsed.
trash = input()
for _ in range(3):
print(trash)
\ No newline at end of file
mon = int(input())
cost = int(2.5 * 38)
print(mon - cost)
\ No newline at end of file
cost, weight, mon = int(input()), int(input()), int(input())
print(mon - (cost * weight))
\ No newline at end of file
name, cost, weight, mon = input(), int(input()), int(input()), int(input())
print("Чек", f"{name} - {weight}кг - {cost}руб/кг", f"Итого: {cost * weight}руб", sep="\n")
print(f"Внесено: {mon}руб", f"Сдача: {mon - (cost * weight)}руб", sep="\n")
\ No newline at end of file
n = int(input())
for _ in range(n):
print("Купи слона!")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment