結果

問題 No.69 文字を自由に並び替え
ユーザー うわばみうわばみ
提出日時 2020-04-29 17:09:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 49 ms / 5,000 ms
コード長 398 bytes
コンパイル時間 985 ms
コンパイル使用メモリ 67,344 KB
実行使用メモリ 22,544 KB
最終ジャッジ日時 2023-08-19 10:41:08
合計ジャッジ時間 2,523 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
22,428 KB
testcase_01 AC 48 ms
22,528 KB
testcase_02 AC 48 ms
20,420 KB
testcase_03 AC 47 ms
20,656 KB
testcase_04 AC 48 ms
22,380 KB
testcase_05 AC 48 ms
20,604 KB
testcase_06 AC 48 ms
20,516 KB
testcase_07 AC 48 ms
20,568 KB
testcase_08 AC 46 ms
20,524 KB
testcase_09 AC 47 ms
22,516 KB
testcase_10 AC 45 ms
20,452 KB
testcase_11 AC 46 ms
20,524 KB
testcase_12 AC 48 ms
20,404 KB
testcase_13 AC 48 ms
22,544 KB
testcase_14 AC 49 ms
20,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

class Program
{
    static void Main()
    {
        char[] s0 = Console.ReadLine().ToCharArray();
        char[] s1 = Console.ReadLine().ToCharArray();
        Array.Sort(s0);
        Array.Sort(s1);
        if(new string(s0) == new string(s1))
        {
            Console.WriteLine($"YES");
        }
        else
        {
            Console.WriteLine($"NO");
        }
    }
}
0