Blue Bridge Cup basic practice leap year judgment "basic problem"

Source: Internet
Author: User

Basic practice leap year judgment time limit: 1.0s memory limit: 256.0MB    Problem description

Given a year, it is not a leap year to judge.

This is a leap year when one of the following conditions is met:

1. The year is a multiple of 4 rather than a multiple of 100;

2. The year is a multiple of 400.

None of the other years is a leap year.

The input format input contains an integer y that represents the current year. The output format outputs a row, or output Yes if the given year is a leap, otherwise outputs No.

Description: When the question specifies that you want to output a string as a result (for example, yes or no, you need to strictly follow the case given in the question, and the case will not score.)

Sample input 2013 sample output no sample input 2016 sample output Yes data size and convention 1990 <= y <= 2050.


Blue Bridge Cup basic practice leap year judgment "basic problem"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.