結果

問題 No.730 アルファベットパネル
ユーザー Mcpu3Mcpu3
提出日時 2018-09-08 14:25:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 2,126 ms
コンパイル使用メモリ 72,188 KB
実行使用メモリ 56,044 KB
最終ジャッジ日時 2023-08-22 08:26:23
合計ジャッジ時間 4,170 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,844 KB
testcase_01 AC 116 ms
55,688 KB
testcase_02 AC 117 ms
55,964 KB
testcase_03 AC 117 ms
55,944 KB
testcase_04 AC 115 ms
55,492 KB
testcase_05 AC 117 ms
55,688 KB
testcase_06 AC 118 ms
56,044 KB
testcase_07 AC 117 ms
55,860 KB
testcase_08 AC 116 ms
53,976 KB
testcase_09 AC 115 ms
55,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String s=sc.next();
		sc.close();
		int t[]=new int[26],i;
		for(i=0;i<s.length();++i) ++t[s.charAt(i)-'A'];
		for(i=0;i<26;++i) if(t[i]>1) break;
		System.out.print(i>25?"YES":"NO");
	}
}
0