結果

問題 No.587 七対子
ユーザー kept1994kept1994
提出日時 2022-05-04 20:14:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 66,972 KB
最終ジャッジ日時 2024-07-03 23:19:06
合計ジャッジ時間 3,317 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 2 RE * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    S = input()
    l = [0] * 7
    for ss in S:
        l[ord(ss) - ord("a")] += 1

    if sorted(l) == [1] + [2] * 6:
        print(chr(l.index(1) + ord("a")))
    else:
        print("Impossaible")

if __name__ == '__main__':
    main()
0