結果
問題 | No.69 文字を自由に並び替え |
ユーザー | outoforder |
提出日時 | 2017-07-22 21:20:10 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 53 ms / 5,000 ms |
コード長 | 534 bytes |
コンパイル時間 | 2,241 ms |
コンパイル使用メモリ | 104,840 KB |
実行使用メモリ | 23,432 KB |
最終ジャッジ日時 | 2023-08-20 23:44:33 |
合計ジャッジ時間 | 3,900 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 52 ms
21,384 KB |
testcase_01 | AC | 52 ms
21,348 KB |
testcase_02 | AC | 53 ms
23,324 KB |
testcase_03 | AC | 52 ms
23,296 KB |
testcase_04 | AC | 52 ms
23,392 KB |
testcase_05 | AC | 52 ms
21,240 KB |
testcase_06 | AC | 52 ms
21,520 KB |
testcase_07 | AC | 52 ms
21,244 KB |
testcase_08 | AC | 53 ms
23,412 KB |
testcase_09 | AC | 52 ms
21,352 KB |
testcase_10 | AC | 53 ms
23,432 KB |
testcase_11 | AC | 52 ms
21,280 KB |
testcase_12 | AC | 52 ms
21,180 KB |
testcase_13 | AC | 52 ms
21,228 KB |
testcase_14 | AC | 51 ms
21,184 KB |
コンパイルメッセージ
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"); } } }