結果

問題 No.69 文字を自由に並び替え
ユーザー ぴろずぴろず
提出日時 2014-12-11 16:11:12
言語 Java19
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 363 bytes
コンパイル時間 3,625 ms
コンパイル使用メモリ 72,140 KB
実行使用メモリ 57,768 KB
最終ジャッジ日時 2023-08-20 22:44:00
合計ジャッジ時間 6,303 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,236 KB
testcase_01 AC 120 ms
55,752 KB
testcase_02 AC 120 ms
55,732 KB
testcase_03 AC 118 ms
55,644 KB
testcase_04 AC 118 ms
55,616 KB
testcase_05 AC 118 ms
55,940 KB
testcase_06 AC 113 ms
55,708 KB
testcase_07 AC 119 ms
57,768 KB
testcase_08 AC 120 ms
55,408 KB
testcase_09 AC 120 ms
55,840 KB
testcase_10 AC 119 ms
55,556 KB
testcase_11 AC 119 ms
55,548 KB
testcase_12 AC 119 ms
55,796 KB
testcase_13 AC 121 ms
55,564 KB
testcase_14 AC 120 ms
55,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no069;

import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] a = sc.next().toCharArray();
		char[] b = sc.next().toCharArray();
		Arrays.sort(a);
		Arrays.sort(b);
		System.out.println(Arrays.equals(a, b) ? "YES" : "NO");
	}

}
0