Three integers A, B, and C are given on a single line from standard input, separated by half-width spaces. Output the largest of the three values on one line.
Constraints
1 ≤ A, B, C ≤ 1000
Input example 1
3 9 5Output example 1
9Input example 2
10 2 7Output example 2
10What you'll train
Cover the edge cases
What you get
How to ask the AI
Convey that A, B, and C are given on one line separated by half-width spaces, and that the maximum value should be output correctly as a single value even when all three values are the same or two of them are the same.
If you ask vaguelyIf you don't convey the case of tied values, the AI might be uncertain how to handle multiple maximum values, resulting in an unexpected output format.
あなたのコード
プレビュー
AIレビュー(プロンプト練習)
コードはChatGPTやClaudeに出させたものを貼って構いません。
ここでの本番は「次にAIへ出す指示」です。評価軸は1つだけ見て、弱点・指示の穴・改善例を返します。
テストに落ちていてもレビューできます。落ちた理由と、指示に足りなかった情報を結びつけます。