結果
問題 | No.730 アルファベットパネル |
ユーザー | hirata0301 |
提出日時 | 2023-02-21 11:18:53 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 574 bytes |
コンパイル時間 | 2,743 ms |
コンパイル使用メモリ | 71,724 KB |
実行使用メモリ | 56,196 KB |
最終ジャッジ日時 | 2023-09-29 05:12:33 |
合計ジャッジ時間 | 3,697 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 104 ms
56,000 KB |
testcase_01 | WA | - |
testcase_02 | AC | 106 ms
56,196 KB |
testcase_03 | AC | 107 ms
55,452 KB |
testcase_04 | WA | - |
testcase_05 | AC | 105 ms
55,880 KB |
testcase_06 | WA | - |
testcase_07 | AC | 106 ms
55,700 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
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"); } } }