結果
| 問題 | No.587 七対子 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-10-26 11:38:52 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 315 bytes | 
| コンパイル時間 | 105 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-11-19 06:02:44 | 
| 合計ジャッジ時間 | 1,882 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 35 | 
ソースコード
s = input()
c = {}
for i in s:
    if not i in c:
        c[i] = 1
    else:
        c[i] += 1
print(c)
x = max(c.values())
if x > 2:
    print('Impossible')
else:
    l = []
    for i in c:
        if x != c[i]:
            l.append(i)
    if len(l) >=2:
        print('Impossible')
    else:
        print(*l)
            
            
            
        