結果

問題 No.587 七対子
ユーザー kohei2019kohei2019
提出日時 2022-02-13 13:25:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 87,032 KB
実行使用メモリ 71,740 KB
最終ジャッジ日時 2023-09-11 15:27:23
合計ジャッジ時間 5,566 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
71,216 KB
testcase_01 AC 93 ms
71,508 KB
testcase_02 AC 91 ms
71,512 KB
testcase_03 AC 92 ms
71,380 KB
testcase_04 AC 92 ms
71,736 KB
testcase_05 AC 93 ms
71,540 KB
testcase_06 AC 91 ms
71,724 KB
testcase_07 AC 91 ms
71,496 KB
testcase_08 AC 89 ms
71,404 KB
testcase_09 AC 91 ms
71,532 KB
testcase_10 AC 91 ms
71,636 KB
testcase_11 AC 95 ms
71,608 KB
testcase_12 AC 93 ms
71,356 KB
testcase_13 AC 94 ms
71,500 KB
testcase_14 AC 94 ms
71,380 KB
testcase_15 AC 92 ms
71,412 KB
testcase_16 AC 90 ms
71,672 KB
testcase_17 AC 89 ms
71,584 KB
testcase_18 AC 90 ms
71,440 KB
testcase_19 AC 91 ms
71,376 KB
testcase_20 AC 90 ms
71,496 KB
testcase_21 AC 92 ms
71,524 KB
testcase_22 AC 94 ms
71,740 KB
testcase_23 AC 90 ms
71,480 KB
testcase_24 AC 91 ms
71,440 KB
testcase_25 AC 89 ms
71,388 KB
testcase_26 AC 90 ms
71,408 KB
testcase_27 AC 90 ms
71,616 KB
testcase_28 AC 91 ms
71,384 KB
testcase_29 AC 94 ms
71,332 KB
testcase_30 AC 92 ms
71,584 KB
testcase_31 AC 92 ms
71,532 KB
testcase_32 AC 92 ms
71,408 KB
testcase_33 AC 90 ms
71,216 KB
testcase_34 AC 91 ms
71,256 KB
権限があれば一括ダウンロードができます

ソースコード

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