結果

問題 No.587 七対子
ユーザー 👑 yumechiyumechi
提出日時 2017-11-25 00:30:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 2,522 ms
コンパイル使用メモリ 86,716 KB
実行使用メモリ 71,792 KB
最終ジャッジ日時 2023-09-27 02:16:05
合計ジャッジ時間 5,455 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
71,648 KB
testcase_01 AC 91 ms
71,512 KB
testcase_02 AC 90 ms
71,684 KB
testcase_03 AC 91 ms
71,520 KB
testcase_04 AC 91 ms
71,580 KB
testcase_05 AC 91 ms
71,396 KB
testcase_06 AC 90 ms
71,520 KB
testcase_07 AC 86 ms
71,600 KB
testcase_08 AC 88 ms
71,684 KB
testcase_09 AC 88 ms
71,732 KB
testcase_10 AC 90 ms
71,636 KB
testcase_11 AC 88 ms
71,548 KB
testcase_12 AC 89 ms
71,604 KB
testcase_13 AC 87 ms
71,512 KB
testcase_14 AC 89 ms
71,688 KB
testcase_15 AC 87 ms
71,268 KB
testcase_16 AC 86 ms
71,644 KB
testcase_17 AC 89 ms
71,724 KB
testcase_18 AC 86 ms
71,468 KB
testcase_19 AC 89 ms
71,616 KB
testcase_20 AC 90 ms
71,644 KB
testcase_21 AC 90 ms
71,272 KB
testcase_22 AC 88 ms
71,616 KB
testcase_23 AC 88 ms
71,680 KB
testcase_24 AC 88 ms
71,420 KB
testcase_25 AC 89 ms
71,792 KB
testcase_26 AC 88 ms
71,468 KB
testcase_27 AC 89 ms
71,728 KB
testcase_28 AC 86 ms
71,732 KB
testcase_29 AC 89 ms
71,588 KB
testcase_30 AC 88 ms
71,472 KB
testcase_31 AC 88 ms
71,612 KB
testcase_32 AC 88 ms
71,684 KB
testcase_33 AC 91 ms
71,624 KB
testcase_34 AC 89 ms
71,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
c=Counter(input())
d=Counter(c.values())
print((d[2]==6 and d[1]==1) and [e[0] for e in c.items() if e[1]==1][0] or "Impossible")
0