結果
| 問題 | No.69 文字を自由に並び替え | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-10-30 11:41:33 | 
| 言語 | C# (.NET 8.0.404) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 661 bytes | 
| コンパイル時間 | 9,189 ms | 
| コンパイル使用メモリ | 170,728 KB | 
| 実行使用メモリ | 185,028 KB | 
| 最終ジャッジ日時 | 2025-10-30 11:41:44 | 
| 合計ジャッジ時間 | 8,628 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 8 WA * 7 | 
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (114 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
    static void Main(string[] args)
    {
        string topWord = Console.ReadLine()!;
        string bottomWord = Console.ReadLine()!;
        int count = 0;
        foreach (char top in topWord)
        {
            foreach (char bottom in bottomWord)
            {
                if (top == bottom)
                {
                    count++;
                    break;
                }
            }
            bottomWord = bottomWord.Remove(0, 1);
        }
        if (count == topWord.Length)
        {
            Console.WriteLine("YES");
        }
        else
        {
            Console.WriteLine("NO");
        }
    }
}
            
            
            
        