Words separated by spaces are given on one line. Output the word with the most characters. If multiple words share the same maximum length, output the one that appears first.
Constraints
There are between 1 and 20 words; each word consists of lowercase letters only, 1 to 20 characters long
Input example 1
I love programmingOutput example 1
programmingInput example 2
aa bb ccOutput example 2
aaWhat you'll train
Cover the edge cases
What you get
How to ask the AI
Clearly tell the AI the rule: when multiple words have the same length, the one that appears first should be output.
If you ask vaguelyWhen multiple words share the same length, the last one found gets returned instead of the first.
あなたのコード
プレビュー
AIレビュー(プロンプト練習)
コードはChatGPTやClaudeに出させたものを貼って構いません。
ここでの本番は「次にAIへ出す指示」です。評価軸は1つだけ見て、弱点・指示の穴・改善例を返します。
テストに落ちていてもレビューできます。落ちた理由と、指示に足りなかった情報を結びつけます。