結果

問題 No.548 国士無双
ユーザー kohei2019kohei2019
提出日時 2022-02-08 21:18:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 889 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 71,872 KB
最終ジャッジ日時 2023-09-05 21:43:55
合計ジャッジ時間 4,292 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
71,360 KB
testcase_01 AC 93 ms
71,480 KB
testcase_02 AC 93 ms
71,512 KB
testcase_03 AC 93 ms
71,824 KB
testcase_04 AC 93 ms
71,376 KB
testcase_05 AC 92 ms
71,652 KB
testcase_06 AC 91 ms
71,836 KB
testcase_07 AC 90 ms
71,652 KB
testcase_08 AC 91 ms
71,500 KB
testcase_09 AC 91 ms
71,376 KB
testcase_10 AC 92 ms
71,620 KB
testcase_11 AC 91 ms
71,536 KB
testcase_12 AC 91 ms
71,504 KB
testcase_13 AC 90 ms
71,872 KB
testcase_14 AC 90 ms
71,640 KB
testcase_15 AC 91 ms
71,668 KB
testcase_16 AC 89 ms
71,720 KB
testcase_17 AC 91 ms
71,476 KB
testcase_18 AC 89 ms
71,824 KB
testcase_19 AC 91 ms
71,672 KB
testcase_20 AC 91 ms
71,508 KB
testcase_21 AC 90 ms
71,396 KB
testcase_22 AC 92 ms
71,692 KB
testcase_23 AC 90 ms
71,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
S = list(input())
cnt = collections.Counter(S)
a = 'abcdefghijklm'
if len(S) != 13:
    print('Impossible')
    exit()

if len(cnt) == 13:
    print(*list(a),sep='\n')
elif len(cnt) == 12:
    for c in a:
        if not c in cnt:
            print(c)
            break
else:
    print('Impossible')
0