結果

問題 No.548 国士無双
ユーザー rin204
提出日時 2020-09-08 07:05:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 394 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-29 11:45:27
合計ジャッジ時間 1,386 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 RE * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
kokushi = "abcdefghijklm"
s = input()
dd = defaultdict(int)
for ss in s:
    dd[ss] += 1
    if dd[ss] == 3:
        print("Impossible")
        exit()
if len(dd) == 13:
    for s in kokushi:
        print(s)
    exit()
elif len(dd) == 12:
    for ss in kokushi:
        if dd[ss] == 0:
            print(key)
            exit()
else:
    print("Impossible")
0