A string S is given on one line from standard input. Print the string with S's characters arranged in reverse order, on one line.
For example, if S is hello, the answer is olleh.
Constraints
1 ≤ length of S ≤ 100 (S consists only of lowercase English letters)
Input example 1
helloOutput example 1
ollehInput example 2
abcOutput example 2
cbaWhat you'll train
Cover the edge cases
What you get
How to ask the AI
Tell the AI how the output should look when the input is an empty string or just a single character. In addition to a concrete example like "S=hello gives olleh," it helps to clarify that the empty case should be handled by the same process.
If you ask vaguelyWhen you pass an empty string or a single-character input, the AI may add unnecessary error handling or special-case logic on its own.
あなたのコード
プレビュー
AIレビュー(プロンプト練習)
コードはChatGPTやClaudeに出させたものを貼って構いません。
ここでの本番は「次にAIへ出す指示」です。評価軸は1つだけ見て、弱点・指示の穴・改善例を返します。
テストに落ちていてもレビューできます。落ちた理由と、指示に足りなかった情報を結びつけます。