結果
| 問題 | No.69 文字を自由に並び替え | 
| コンテスト | |
| ユーザー |  outoforder | 
| 提出日時 | 2017-07-22 21:20:10 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 26 ms / 5,000 ms | 
| コード長 | 534 bytes | 
| コンパイル時間 | 843 ms | 
| コンパイル使用メモリ | 104,704 KB | 
| 実行使用メモリ | 18,560 KB | 
| 最終ジャッジ日時 | 2024-12-14 06:42:03 | 
| 合計ジャッジ時間 | 1,869 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 15 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CompetitiveProgramming
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var a = Console.ReadLine().ToList();
            var b = Console.ReadLine().ToList();
            foreach (var item in b)
            {
                int n = a.IndexOf(item);
                if(n >= 0) a.RemoveAt(n);
            }
            Console.WriteLine(a.Count == 0 ? "YES" : "NO");
        }
    }
}
            
            
            
        