結果

問題 No.69 文字を自由に並び替え
ユーザー AreTrash
提出日時 2016-04-13 11:23:52
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 352 bytes
コンパイル時間 881 ms
コンパイル使用メモリ 111,248 KB
実行使用メモリ 26,892 KB
最終ジャッジ日時 2024-12-14 06:12:59
合計ジャッジ時間 1,838 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 No69_1{
    public class Program{
        public static void Main(string[] args){
            var a = Console.ReadLine().ToList();
            a.Sort();
            var b = Console.ReadLine().ToList();
            b.Sort();

            Console.WriteLine(a.SequenceEqual(b) ? "YES" : "NO");
        }
    }
}
0