結果

問題 No.69 文字を自由に並び替え
ユーザー yagi2yagi2
提出日時 2017-04-25 16:28:55
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 463 bytes
コンパイル時間 1,954 ms
コンパイル使用メモリ 72,764 KB
実行使用メモリ 56,544 KB
最終ジャッジ日時 2023-09-09 21:15:31
合計ジャッジ時間 4,606 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
55,532 KB
testcase_01 AC 115 ms
55,996 KB
testcase_02 AC 115 ms
55,892 KB
testcase_03 AC 114 ms
55,712 KB
testcase_04 WA -
testcase_05 AC 114 ms
56,184 KB
testcase_06 AC 115 ms
55,900 KB
testcase_07 AC 115 ms
55,860 KB
testcase_08 AC 114 ms
55,568 KB
testcase_09 AC 115 ms
56,068 KB
testcase_10 AC 116 ms
56,164 KB
testcase_11 AC 115 ms
55,604 KB
testcase_12 AC 114 ms
55,608 KB
testcase_13 AC 114 ms
55,576 KB
testcase_14 AC 115 ms
56,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        List<String> A = new ArrayList<>(Arrays.asList(sc.next().split("")));
        List<String> B = new ArrayList<>(Arrays.asList(sc.next().split("")));

        A.removeAll(B);

        System.out.println((A.size() == 0)? "YES" : "NO");
    }
}
0