結果
| 問題 |
No.548 国士無双
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-08 21:18:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 317 bytes |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 55,312 KB |
| 最終ジャッジ日時 | 2024-06-23 17:03:13 |
| 合計ジャッジ時間 | 2,016 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
import collections
S = list(input())
cnt = collections.Counter(S)
a = 'abcdefghijklm'
if len(S) != 13:
print('Impossible')
exit()
if len(cnt) == 13:
print(*list(a),sep='\n')
elif len(cnt) == 12:
for c in a:
if not c in cnt:
print(c)
break
else:
print('Impossible')