The time limit :1.0s Memory limit :256.0MB
Given a year , Judge whether this year is a leap year .
When one of the following conditions is satisfied , This year is a leap year :
The year is 4 Instead of 100 Multiple ;
The year is 400 Multiple .
Other years are not leap years .
Input contains an integer y, Represents the current year .
Output one line , If a given year is a leap year , The output yes, Otherwise output no.
2013
yes
2016
no
1990 <= y <= 2050
y=int(input())
if y%400==0:
print('yes')
else:
if y%4==0:
if not(y%100==0):
print('yes')
else:
print('no')
else:
print('no')
Leap year judgment is transformed into a mathematical problem to meet 1. The year is 4 Instead of 100 Multiple ;2. The year is 400 Multiple . The problem of two conditions .
Pay attention to case when outputting .
項目介紹本求職招聘管理系統主要包括系統用戶管理模塊、企業新聞
p{margin:10px 0}.markdown-body