結果

問題 No.730 アルファベットパネル
ユーザー hirata0301hirata0301
提出日時 2023-02-21 11:19:52
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 574 bytes
コンパイル時間 2,432 ms
コンパイル使用メモリ 71,500 KB
実行使用メモリ 56,052 KB
最終ジャッジ日時 2023-09-29 05:13:00
合計ジャッジ時間 4,477 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,052 KB
testcase_01 WA -
testcase_02 AC 121 ms
55,416 KB
testcase_03 AC 120 ms
56,052 KB
testcase_04 WA -
testcase_05 AC 121 ms
55,732 KB
testcase_06 WA -
testcase_07 AC 119 ms
55,476 KB
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String[] word = S.split("");
        int check = 0;
        for(int i = 0;i<word.length;i++){
            for(int k = 0;k<word.length;k++){
                if(i != k&&word[i] == word[k]){
                    check++;
                }
            }
        }
        if(check == 0){
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }
    }
}
0