Advertisement
NozdrachevNN

P_task_17

Dec 11th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. v = int(input())
  2. t = int(input())
  3. if (-1000 <= v) and (v <= 0):
  4.     v = (v % 109)
  5.     s = (v * t)
  6.     print(s % 109)
  7. else:
  8.     if (-1000 <= t) and (t <= 0):
  9.         t = (t - (t * 2))
  10.     if (1 <= v) and (v <= 1000) and (1 <= t) and (t <= 1000):
  11.         s = (v * t)
  12.         print(s % 109)
  13.     else:
  14.         not print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement