結果
| 問題 | No.548 国士無双 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-29 16:38:23 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 545 bytes |
| 記録 | |
| コンパイル時間 | 201 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 53,760 KB |
| 最終ジャッジ日時 | 2026-05-10 01:43:07 |
| 合計ジャッジ時間 | 2,083 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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')