結果
| 問題 | No.548 国士無双 |
| コンテスト | |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-01-13 07:03:39 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 523 bytes |
| 記録 | |
| コンパイル時間 | 2,251 ms |
| コンパイル使用メモリ | 82,360 KB |
| 実行使用メモリ | 54,392 KB |
| 最終ジャッジ日時 | 2026-01-13 07:03:44 |
| 合計ジャッジ時間 | 3,094 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
import math
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
s = list(S())
k = list("abcdefghijklm")
if len(set(s)) == 13:
for i in k:
print(i)
elif len(set(s)) == 12:
d = set(k).difference(set(s))
print(list(d)[0])
else:
print("Impossible")
r_ishida