結果

問題 No.69 文字を自由に並び替え
ユーザー nattoumarunattoumaru
提出日時 2018-02-10 19:19:36
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 52 ms / 5,000 ms
コード長 721 bytes
コンパイル時間 1,080 ms
コンパイル使用メモリ 65,424 KB
実行使用メモリ 23,384 KB
最終ジャッジ日時 2023-08-20 23:58:03
合計ジャッジ時間 2,550 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
21,376 KB
testcase_01 AC 50 ms
21,388 KB
testcase_02 AC 51 ms
21,244 KB
testcase_03 AC 51 ms
23,324 KB
testcase_04 AC 50 ms
21,264 KB
testcase_05 AC 52 ms
23,276 KB
testcase_06 AC 51 ms
21,400 KB
testcase_07 AC 51 ms
21,172 KB
testcase_08 AC 51 ms
23,384 KB
testcase_09 AC 52 ms
21,464 KB
testcase_10 AC 52 ms
21,336 KB
testcase_11 AC 52 ms
21,288 KB
testcase_12 AC 51 ms
19,232 KB
testcase_13 AC 50 ms
19,192 KB
testcase_14 AC 51 ms
21,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace programPractice
{
    class Program
    {
        static void Main(string[] args)
        {

            var a = Console.ReadLine();
            var b = Console.ReadLine();


            char[] cArray1 = a.ToCharArray();
            char[] cArray2 = b.ToCharArray();

            Array.Sort(cArray1);
            Array.Sort(cArray2);

            bool isEqual = cArray1.SequenceEqual(cArray2);

            if (isEqual)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}
0