結果

問題 No.548 国士無双
ユーザー jamad
提出日時 2017-08-11 01:28:06
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-07-05 20:28:16
合計ジャッジ時間 1,616 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

S=''.join(sorted(input()))
A='abcdefghijklm'
o='Impossible'
Z=set()
for i in range(13):
    for j in range(13):
        if A in S[:i]+A[j]+S[i:]:
            o=''
            Z.add(A[j])
else:
    if o:print(o)
print('\n'.join(sorted(Z)))
0