結果

問題 No.587 七対子
ユーザー ikedakojiro
提出日時 2017-11-21 02:54:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 610 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 44,508 KB
最終ジャッジ日時 2024-11-26 03:25:54
合計ジャッジ時間 19,843 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
import fileinput
import itertools
import numpy as np
from collections import Counter


#print(fileinput.input())
txt_input = input_line()

for line in fileinput.input():
    line = line.replace('\n','')
    txt_input.append(line)

#print(txt_input, end='')

#標準入力からの取り込み
S = list(txt_input[0])

S.sort()

#print(S)
count = 0
lst =[]
letter = ''

S_unique = list(set(S))
if len(S) - len(S_unique) == 6:
    dct = Counter(S)
    search_letter = 1
    for name, age in dct.items():
        if age == search_letter:
            print(name)
else:
    print('Impossible')
0