結果

問題 No.69 文字を自由に並び替え
ユーザー bluemeganebluemegane
提出日時 2018-10-23 20:21:35
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 5,000 ms
コード長 371 bytes
コンパイル時間 1,974 ms
コンパイル使用メモリ 104,300 KB
実行使用メモリ 22,608 KB
最終ジャッジ日時 2023-08-21 00:09:37
合計ジャッジ時間 3,583 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
20,548 KB
testcase_01 AC 50 ms
20,556 KB
testcase_02 AC 52 ms
22,552 KB
testcase_03 AC 52 ms
20,632 KB
testcase_04 AC 51 ms
20,440 KB
testcase_05 AC 52 ms
20,440 KB
testcase_06 AC 52 ms
20,356 KB
testcase_07 AC 52 ms
22,608 KB
testcase_08 AC 52 ms
20,520 KB
testcase_09 AC 53 ms
22,496 KB
testcase_10 AC 53 ms
20,428 KB
testcase_11 AC 53 ms
20,428 KB
testcase_12 AC 52 ms
20,560 KB
testcase_13 AC 52 ms
20,516 KB
testcase_14 AC 53 ms
20,504 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello
{
    public static void Main()
    {
        var s = Console.ReadLine().Trim();
        var s2 = Console.ReadLine().Trim();
        Console.WriteLine(sortS(s) == sortS(s2) ? "YES" : "NO");
    }
    public static string sortS(string s)
    {
        var a = s.ToCharArray();
        Array.Sort(a);
        return new string(a);
    }
}
0