F. Игра с кубиком

public
yeskendir.sultanov Apr 26, 2024 Never 59
Clone
Python 38.py 13 lines (10 loc) | 228 Bytes
1
a, b = map(int, input().split())
2
3
f, d, s = 0, 0, 0
4
5
for i in range(1, 7):
6
if abs(i - a) == abs(i - b):
7
d += 1
8
elif abs(i - a) < abs(i - b):
9
f += 1
10
else:
11
s += 1
12
13
print(f, d, s)