Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. n, a, b = map(int, input().split())
  2. pop = 0
  3. if (a,b) == 0 and pop == 0:
  4.     print(1)
  5.     pop = 1
  6. if (a+b)*2 <= n and pop == 0:
  7.     print(1)
  8.     pop = 1
  9. if n<= 1 and pop == 0:
  10.     print(0)
  11.     pop = 1
  12. if a == 0 and n <3 and pop == 0:
  13.     print(0)
  14.     pop = 1
  15. if pop == 0:
  16.     exc = 1
  17.     variations = (a+1)*(b+1)
  18.     print(exc+(exc // 6)*(exc % 6 == 0),'/',variations,sep='')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement