結果

問題 No.69 文字を自由に並び替え
ユーザー CroweaCrowea
提出日時 2019-01-30 16:42:23
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 359 bytes
コンパイル時間 1,774 ms
コンパイル使用メモリ 68,004 KB
実行使用メモリ 23,572 KB
最終ジャッジ日時 2023-08-21 00:12:55
合計ジャッジ時間 3,424 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
21,504 KB
testcase_01 AC 53 ms
21,376 KB
testcase_02 AC 56 ms
23,572 KB
testcase_03 AC 55 ms
23,492 KB
testcase_04 AC 55 ms
23,448 KB
testcase_05 AC 55 ms
21,520 KB
testcase_06 AC 55 ms
21,444 KB
testcase_07 AC 55 ms
21,456 KB
testcase_08 AC 56 ms
21,552 KB
testcase_09 AC 55 ms
21,616 KB
testcase_10 AC 56 ms
21,388 KB
testcase_11 AC 56 ms
23,448 KB
testcase_12 AC 56 ms
21,324 KB
testcase_13 AC 55 ms
21,516 KB
testcase_14 AC 57 ms
21,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Linq;

public class Program
{
    public static void Main(string[] args)
    {
        var s1 = new string( Console.ReadLine().ToCharArray().OrderBy(x => x).ToArray());
        var s2 = new string( Console.ReadLine().ToCharArray().OrderBy(x => x).ToArray());
        Console.WriteLine((s1 == s2) ? "YES" : "NO");
    }            
}
0