Năm nhuận

View as PDF



Author:
Problem type
Allowed languages
Assembly, C, C++, Pascal, Python, SCRATCH
Points: 5 Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Cho 1 năm \(N\) hãy kiểm tra xem \(N\) có phải là năm nhuận hay không

Input

  • Dòng 1 ghi số nguyên dương \(N (N<2*10^9)\)

Output

  • In ra \(Yes\) nếu \(N\) là năm nhuận, ngược lại in ra \(No\).
Ví dụ 1
Input
2016
Output
Yes
Ví dụ 2
Input
2015
Output
No

Comments

There are no comments at the moment.