結果

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

ソースコード

diff #
raw source code

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


txt_input = []

txt_input = input()

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:
            break
else:
    print('Impossible')
0