結果
問題 |
No.548 国士無双
|
ユーザー |
|
提出日時 | 2020-08-29 16:38:23 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 2,000 ms |
コード長 | 545 bytes |
コンパイル時間 | 1,391 ms |
コンパイル使用メモリ | 81,608 KB |
実行使用メモリ | 55,656 KB |
最終ジャッジ日時 | 2024-11-14 14:13:21 |
合計ジャッジ時間 | 2,605 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
from collections import defaultdict d = defaultdict(int) try: S = input() except: print('Impossible') exit() if len(S) != 13: print('Impossible') exit() for s in S: d[s] += 1 x = list(d.values()) if x.count(1) == 13: print('a', 'b', 'c', 'd','e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', sep='\n') elif x.count(1) == 11: for k in 'abcdefghijklm': if not (k in S): print(k) break else: print('Impossible')