結果
問題 | No.730 アルファベットパネル |
ユーザー |
![]() |
提出日時 | 2020-04-07 13:18:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 352 bytes |
コンパイル時間 | 246 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-07 13:08:31 |
合計ジャッジ時間 | 1,046 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
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')