You are given a string S on the first line and an integer N on the second line. Output, on one line, the string formed by repeating S N times and concatenating the results.
For example, if S is abc and N is 3, the answer is abcabcabc.
Constraints
1 ≤ length of S ≤ 20, 1 ≤ N ≤ 10
Input example 1
abc
3Output example 1
abcabcabcInput example 2
x
1Output example 2
xWhat you'll train
Specify the output
What you get
How to ask the AI
Clearly tell the AI the output format: concatenate S repeated N times with no separator, and print it all on one line. It's also good to specify that the result should be an empty string when N=0.
If you ask vaguelyWhen N=0, the AI might produce an error or unwanted output instead of an empty string.
あなたのコード
プレビュー
AIレビュー(プロンプト練習)
コードはChatGPTやClaudeに出させたものを貼って構いません。
ここでの本番は「次にAIへ出す指示」です。評価軸は1つだけ見て、弱点・指示の穴・改善例を返します。
テストに落ちていてもレビューできます。落ちた理由と、指示に足りなかった情報を結びつけます。