Browse Source

Add 'J.py'

webturing 4 years ago
parent
commit
b08b9279e3
1 changed files with 9 additions and 0 deletions
  1. 9 0
      J.py

+ 9 - 0
J.py

@@ -0,0 +1,9 @@
+y, m = map(int, input().strip().split())
+if m in [1, 3, 5, 7, 8, 10, 12]:
+    print(31)
+elif m in [4, 6, 9, 11]:
+    print(30)
+elif y % 4 == 0 and y % 100 != 0 or y % 400 == 0:
+    print(29)
+else:
+    print(28)