結果

問題 No.69 文字を自由に並び替え
ユーザー curryudon08curryudon08
提出日時 2020-02-27 00:38:51
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 387 bytes
コンパイル時間 4,522 ms
コンパイル使用メモリ 102,704 KB
実行使用メモリ 23,592 KB
最終ジャッジ日時 2023-08-03 18:33:19
合計ジャッジ時間 6,060 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
21,404 KB
testcase_01 AC 55 ms
19,392 KB
testcase_02 AC 57 ms
21,528 KB
testcase_03 AC 58 ms
21,380 KB
testcase_04 AC 59 ms
21,612 KB
testcase_05 AC 58 ms
23,580 KB
testcase_06 AC 59 ms
23,484 KB
testcase_07 AC 60 ms
21,520 KB
testcase_08 AC 59 ms
21,536 KB
testcase_09 AC 59 ms
23,592 KB
testcase_10 AC 59 ms
23,492 KB
testcase_11 AC 59 ms
23,568 KB
testcase_12 AC 58 ms
21,476 KB
testcase_13 AC 59 ms
21,536 KB
testcase_14 AC 58 ms
23,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

namespace _0069
{
    class Program
    {
        static void Main(string[] args)
        {
            var a = string.Join("",Console.ReadLine().ToArray().OrderBy(c => c).ToArray());
            var b = string.Join("",Console.ReadLine().ToArray().OrderBy(c => c).ToArray());
            Console.WriteLine(a.Equals(b) ? "YES" : "NO");
        }
    }
}
0