闰年:
class Solution:
"""
@param n: a number represent year
@return: whether year n is a leap year.
"""
def is_leap_year(self, n):
# write your code here
return(n % 4 == 0 and(n % 100 !=0 or n % 400 == 0))
闰年:
class Solution:
"""
@param n: a number represent year
@return: whether year n is a leap year.
"""
def is_leap_year(self, n):
# write your code here
return(n % 4 == 0 and(n % 100 !=0 or n % 400 == 0))