結果

問題 No.587 七対子
ユーザー kohei2019
提出日時 2022-02-13 13:25:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 53,888 KB
最終ジャッジ日時 2024-06-29 05:34:23
合計ジャッジ時間 2,732 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections


S = list(input())
cnt = collections.Counter(S)
vls = list(cnt.values())
if vls.count(1) == 1 and vls.count(2)==6:
    for key,val in cnt.items():
        if val == 1:
            print(key)
            exit()
print('Impossible')
0