Guest User

Untitled

a guest
Oct 31st, 2022
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | Software | 0 0
  1. M = 24
  2. N = 5
  3.  
  4. Y = int(input())
  5.  
  6. if 1900 <= Y <= 2099:
  7.     a = Y % 19
  8.     b = Y % 4
  9.     c = Y % 7
  10.     d = (19 * a + M) % 30
  11.     e = (2 * b + 4 * c + 6 * d + N) % 7
  12.  
  13.     husvet = [3, d + e + 22] if d + e < 10 else [4, d + e - 9]
  14.  
  15.     if husvet == [4, 26]:
  16.         husvet = [4, 19]
  17.  
  18.     if husvet == [4, 25] and d == 28 and e == 6 and a > 10:
  19.         husvet = [4, 18]
  20.  
  21.     print(husvet)
  22.  
Advertisement
Add Comment
Please, Sign In to add comment