結果

問題 No.548 国士無双
ユーザー 👑 KazunKazun
提出日時 2020-08-31 12:54:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 225 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 82,156 KB
実行使用メモリ 54,024 KB
最終ジャッジ日時 2024-04-27 16:35:18
合計ジャッジ時間 1,939 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,012 KB
testcase_01 AC 38 ms
52,200 KB
testcase_02 AC 39 ms
52,360 KB
testcase_03 AC 37 ms
53,620 KB
testcase_04 AC 38 ms
51,628 KB
testcase_05 AC 38 ms
52,764 KB
testcase_06 AC 39 ms
53,000 KB
testcase_07 AC 38 ms
52,152 KB
testcase_08 AC 39 ms
53,024 KB
testcase_09 AC 38 ms
52,884 KB
testcase_10 AC 38 ms
52,608 KB
testcase_11 AC 39 ms
54,024 KB
testcase_12 AC 39 ms
51,876 KB
testcase_13 AC 38 ms
53,028 KB
testcase_14 AC 39 ms
52,288 KB
testcase_15 AC 38 ms
53,976 KB
testcase_16 AC 38 ms
53,360 KB
testcase_17 AC 39 ms
52,872 KB
testcase_18 AC 38 ms
52,284 KB
testcase_19 AC 38 ms
53,044 KB
testcase_20 AC 38 ms
51,852 KB
testcase_21 AC 38 ms
52,616 KB
testcase_22 AC 38 ms
52,484 KB
testcase_23 AC 39 ms
52,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A="abcdefghijklm"
S=input()

D={a:0 for a in A}
for s in S:
    D[s]+=1

K=0
for a in A:
    K+=(D[a]==0)

if K>=2:
    print("Impossible")
elif K==1:
    print(min(D,key=lambda x:D[x]))
else:
    for a in A:
        print(a)
0