CodeDrill
day_streak: --
← 問題一覧に戻る
Python ・ Standard I/O

Problem 8: Even or odd

An integer N is given on one line from standard input. If N is even, output Even; if N is odd, output Odd.

Constraints

1 ≤ N ≤ 1000000000

Input example 1

4

Output example 1

Even

Input example 2

7

Output example 2

Odd

What you'll train

Specify the output

What you get

  • Specify the output text
  • Show the letter casing
  • Convey the criteria for branching

How to ask the AI

Clearly tell the AI that the output text should be the English words "Even" and "Odd", not the Japanese words for even/odd. It also helps to specify the letter casing.

If you ask vaguelyIf you don't specify the output text, the AI might output Japanese words like "偶数"/"奇数", or lowercase "even"/"odd".

あなたのコード

実行しました

プレビュー

AIレビュー(プロンプト練習)

コードはChatGPTやClaudeに出させたものを貼って構いません。
ここでの本番は「次にAIへ出す指示」です。評価軸は1つだけ見て、弱点・指示の穴・改善例を返します。
テストに落ちていてもレビューできます。落ちた理由と、指示に足りなかった情報を結びつけます。

先にコードを実行し、テストを1つ以上通してください。