結果

問題 No.1592 Tenkei 90
ユーザー kinkincindykinkincindy
提出日時 2021-07-09 21:52:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 1,000 ms
コード長 622 bytes
コンパイル時間 2,168 ms
コンパイル使用メモリ 71,796 KB
実行使用メモリ 56,140 KB
最終ジャッジ日時 2023-09-14 08:47:23
合計ジャッジ時間 5,833 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,764 KB
testcase_01 AC 121 ms
55,316 KB
testcase_02 AC 127 ms
53,564 KB
testcase_03 AC 121 ms
55,812 KB
testcase_04 AC 122 ms
55,660 KB
testcase_05 AC 121 ms
55,532 KB
testcase_06 AC 121 ms
55,716 KB
testcase_07 AC 122 ms
53,560 KB
testcase_08 AC 126 ms
55,536 KB
testcase_09 AC 125 ms
55,544 KB
testcase_10 AC 121 ms
55,568 KB
testcase_11 AC 122 ms
56,140 KB
testcase_12 AC 122 ms
55,656 KB
testcase_13 AC 122 ms
55,664 KB
testcase_14 AC 123 ms
55,600 KB
testcase_15 AC 122 ms
55,596 KB
testcase_16 AC 126 ms
55,576 KB
testcase_17 AC 129 ms
55,344 KB
testcase_18 AC 133 ms
55,572 KB
testcase_19 AC 136 ms
55,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.lang.reflect.Array;
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[] c = sc.next().toCharArray();
        Arrays.sort(c);
        char[] input = "kyoprotenkei90".toCharArray();
        Arrays.sort(input);

        if (input.length != c.length){
            System.out.print("No");
            return;
        }

        for (int i = 0; i < c.length; i++){
            if (c[i] != input[i]){
                System.out.print("No");
                return;
            }
        }
        System.out.print("Yes");

    }
}
0