結果

問題 No.548 国士無双
ユーザー gorugo30
提出日時 2021-02-24 10:19:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 82,580 KB
実行使用メモリ 53,748 KB
最終ジャッジ日時 2024-09-24 09:55:58
合計ジャッジ時間 1,944 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
cnt = [S.count(chr(ord("a") + i)) for i in range(13)]
if max(cnt) == 2 and cnt.count(0) == 1:
    print(chr(ord("a") + cnt.index(0)))
elif cnt.count(1) == 13:
    for i in range(13):
        print(chr(ord("a") + i))
else:
    print("Impossible")
0