結果

問題 No.69 文字を自由に並び替え
ユーザー _matumo__matumo_
提出日時 2018-05-29 19:29:02
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 79 ms / 5,000 ms
コード長 595 bytes
コンパイル時間 2,352 ms
コンパイル使用メモリ 103,548 KB
実行使用メモリ 24,556 KB
最終ジャッジ日時 2023-08-21 00:05:00
合計ジャッジ時間 4,135 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
22,368 KB
testcase_01 AC 76 ms
24,556 KB
testcase_02 AC 76 ms
22,536 KB
testcase_03 AC 77 ms
22,332 KB
testcase_04 AC 78 ms
22,544 KB
testcase_05 AC 77 ms
22,604 KB
testcase_06 AC 76 ms
22,456 KB
testcase_07 AC 78 ms
22,584 KB
testcase_08 AC 78 ms
24,476 KB
testcase_09 AC 77 ms
24,424 KB
testcase_10 AC 78 ms
22,468 KB
testcase_11 AC 77 ms
20,544 KB
testcase_12 AC 79 ms
22,568 KB
testcase_13 AC 77 ms
22,524 KB
testcase_14 AC 77 ms
22,492 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.Collections.Generic;
using System.Linq;
using System.Text;

namespace YukiCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            var va = Console.ReadLine().OrderBy(c => c).ToArray();
            var vb = Console.ReadLine().OrderBy(c => c).ToArray();
            string sa = new string(va);
            string sb = new string(vb);
            if (string.Compare(sa, sb) == 0)    Console.WriteLine("YES");
            else                                Console.WriteLine("NO");
            Console.ReadLine();
        }
    }
}

0