blob: 52a274bd4398412a1af83d4ea659d18752f308c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
def odd_Days(N):
hund1 = N // 100
hund4 = N // 400
leap = N >> 2
ordd = N - leap
if (hund1):
ordd += hund1
leap -= hund1
if (hund4):
ordd -= hund4
leap += hund4
days = ordd + leap * 2
odd = days % 7
return odd
|