A string S is given on the first line, and a string T is given on the second line. If the letters of S can be rearranged to form T, output Yes; otherwise, output No.
Constraints
1 ≤ length of S, T ≤ 100, lowercase letters only
Input example 1
listen
silentOutput example 1
YesInput example 2
hello
worldOutput example 2
NoWhat you'll train
Cover the edge cases
What you get
How to ask the AI
Tell the AI how to handle the case where S and T have different lengths, and whether to treat uppercase and lowercase letters as distinct. Clarifying whether the lengths are assumed to be equal, as in listen and silent, will also reduce misunderstandings.
If you ask vaguelyTrying to compare strings of different lengths causes an error, or the check ignores letter case when it shouldn't.
あなたのコード
プレビュー
AIレビュー(プロンプト練習)
コードはChatGPTやClaudeに出させたものを貼って構いません。
ここでの本番は「次にAIへ出す指示」です。評価軸は1つだけ見て、弱点・指示の穴・改善例を返します。
テストに落ちていてもレビューできます。落ちた理由と、指示に足りなかった情報を結びつけます。