結果

問題 No.730 アルファベットパネル
ユーザー akanayaakanaya
提出日時 2020-04-07 13:18:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 352 bytes
コンパイル時間 567 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 8,324 KB
最終ジャッジ日時 2023-09-21 19:33:27
合計ジャッジ時間 1,191 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,292 KB
testcase_01 AC 17 ms
8,288 KB
testcase_02 AC 17 ms
8,292 KB
testcase_03 AC 18 ms
8,284 KB
testcase_04 AC 17 ms
8,320 KB
testcase_05 AC 17 ms
8,312 KB
testcase_06 AC 17 ms
8,280 KB
testcase_07 AC 18 ms
8,284 KB
testcase_08 AC 17 ms
8,284 KB
testcase_09 AC 19 ms
8,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

alpha = [chr(i) for i in range(ord('A'), ord('Z')+1)]
s = list(input().strip())
counter = Counter()
result = True

for c in s:
    if c not in alpha:
        result = False
        break
    if counter[c] == 1:
        result = False
        break
    counter[c] += 1

if result:
    print('YES')
else:
    print('NO')
0