题解 | #判断闰年#

判断闰年

http://www.nowcoder.com/practice/a7bcbe3cb86f435d9617dfdd20a16714

#闰年就是能被4整除,且不能被100整数,或者能被400整数
n=int(input())
if (n%4==0 and n%100!=0 or n%400==0):
    print("yes")
else:
    print("no")
全部评论

相关推荐

评论
3
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务