結果
| 問題 | No.587 七対子 | 
| コンテスト | |
| ユーザー |  convexineq | 
| 提出日時 | 2021-03-08 02:08:40 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 45 ms / 2,000 ms | 
| コード長 | 239 bytes | 
| コンパイル時間 | 202 ms | 
| コンパイル使用メモリ | 82,148 KB | 
| 実行使用メモリ | 55,288 KB | 
| 最終ジャッジ日時 | 2024-10-09 12:22:47 | 
| 合計ジャッジ時間 | 2,734 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 35 | 
ソースコード
from collections import Counter
d = Counter(input())
if len(d) == 7:
    c = 0
    for k,v in d.items():
        if v > 2:
            break
        elif v==1:
            c = k
    else:
        print(c)
        exit()
print("Impossible")
            
            
            
        