SHARE
TWEET

Untitled

a guest Oct 20th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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='')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top