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

Problem 23: Is the Sum Even or Odd?

Two integers A and B, separated by a half-width space, are given on one line from standard input. If A + B is even, print Even; if it is odd, print Odd, on one line.

Constraints

1 ≤ A, B ≤ 1000

Input example 1

3 5

Output example 1

Even

Input example 2

2 5

Output example 2

Odd

What you'll train

Specify the output

What you get

  • Write an exact string match
  • Specify uppercase and lowercase
  • Make the judgment condition explicit

How to ask the AI

Tell the AI precisely that the output must be the fixed strings "Even" or "Odd." A good approach is to state the expected strings exactly, so the AI doesn't output Japanese or lowercase "even" instead.

If you ask vaguelyIf you leave the output format ambiguous, the AI may output something unexpected like "even" or "奇数" (Japanese for odd).

あなたのコード

実行しました

プレビュー

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

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

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