An integer Y representing a year is given on one line. If it is a leap year, output Yes; if it is a common year, output No.
Leap year rule: a multiple of 4 is a leap year. However, a multiple of 100 is not a leap year. However, a multiple of 400 is a leap year.
Constraints
1 ≤ Y ≤ 3000
Input example 1
2024Output example 1
YesInput example 2
1900Output example 2
NoWhat you'll train
Cover the edge cases
What you get
How to ask the AI
Clearly convey to the AI the three-level rule of multiples of 4, 100, and 400, and their priority order (multiples of 400 take top priority). Giving a specific example like the year 2000 helps prevent misunderstanding.
If you ask vaguelyForgetting the exclusion condition for multiples of 100 and judging leap years based only on multiples of 4 leads to incorrect results for years like 2100.
あなたのコード
プレビュー
AIレビュー(プロンプト練習)
コードはChatGPTやClaudeに出させたものを貼って構いません。
ここでの本番は「次にAIへ出す指示」です。評価軸は1つだけ見て、弱点・指示の穴・改善例を返します。
テストに落ちていてもレビューできます。落ちた理由と、指示に足りなかった情報を結びつけます。