結果

問題 No.587 七対子
コンテスト
ユーザー jilloperator
提出日時 2017-11-03 23:55:22
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 272 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 54 ms
コンパイル使用メモリ 15,104 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2026-09-28 16:23:16
合計ジャッジ時間 2,588 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 32 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

s = list(input())
uni_s = set(s)
count = {}


if len(uni_s) != 7:
    print("Impossible")
else:
    for w in s:
        if w in count:
            count[w] += 1
        else:
            count[w] = 1

    for i, v in count.items():
        if v == 1:
            print(i)
0