Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i = 0
- a = 0
- while i < 1:
- a = int(input())
- S = 0
- D = 0
- pr = a
- print('1 условие', a-S*10-D*100)
- print('3 условие', a-S*10)
- if 99 > a > 20:
- S = a // 10
- a = a-S*10-D*100
- elif (999 > a >= 100) and a % 100 == 0:
- D = a // 100
- a = a-S*10-D*100
- elif (a // 100) >= 2 and (a // 10) >= 12 and (11 <= (pr - ((a // 100) * 100) <= 15)):
- print(a - ((a // 100) * 100))
- D = a // 100
- S = a // 10
- a = 15
- elif (a // 100) > 0 and (a // 10) >= 12:
- print(a - ((a // 100) * 100),'9090909')
- D = a // 100
- S = a // 10
- a = a-S*10
- else:
- D = a // 100
- #S = D - (a // 10)
- a = a-S*10-D*100
- if a == 1:
- print(pr, 'программист')
- elif ((a % 2 == 0) or (a % 3 == 0) or (a % 4 == 0)) and (a % 5 != 0) and (a % 6 != 0) and (a % 7 != 0) and (a % 8 != 0) and (a % 9 != 0) and (a % 10 != 0):
- print(pr, 'программиста')
- else:
- print(pr, 'программистов')
- i = i+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement