結果

問題 No.587 七対子
ユーザー prism_puddingprism_pudding
提出日時 2017-11-28 01:54:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 269 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 8,460 KB
最終ジャッジ日時 2023-08-18 09:15:04
合計ジャッジ時間 2,109 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 18 ms
8,372 KB
testcase_02 AC 19 ms
8,400 KB
testcase_03 AC 18 ms
8,296 KB
testcase_04 AC 17 ms
8,296 KB
testcase_05 AC 19 ms
8,408 KB
testcase_06 AC 18 ms
8,316 KB
testcase_07 AC 18 ms
8,316 KB
testcase_08 AC 18 ms
8,352 KB
testcase_09 AC 18 ms
8,276 KB
testcase_10 AC 18 ms
8,368 KB
testcase_11 AC 18 ms
8,368 KB
testcase_12 AC 18 ms
8,452 KB
testcase_13 AC 18 ms
8,308 KB
testcase_14 AC 18 ms
8,312 KB
testcase_15 AC 18 ms
8,348 KB
testcase_16 AC 19 ms
8,452 KB
testcase_17 AC 17 ms
8,296 KB
testcase_18 AC 18 ms
8,320 KB
testcase_19 AC 17 ms
8,312 KB
testcase_20 AC 18 ms
8,408 KB
testcase_21 AC 18 ms
8,396 KB
testcase_22 AC 18 ms
8,316 KB
testcase_23 AC 18 ms
8,308 KB
testcase_24 AC 18 ms
8,356 KB
testcase_25 AC 18 ms
8,272 KB
testcase_26 AC 18 ms
8,352 KB
testcase_27 AC 18 ms
8,344 KB
testcase_28 AC 17 ms
8,344 KB
testcase_29 AC 18 ms
8,460 KB
testcase_30 AC 18 ms
8,344 KB
testcase_31 AC 18 ms
8,368 KB
testcase_32 AC 18 ms
8,340 KB
testcase_33 AC 18 ms
8,312 KB
testcase_34 AC 18 ms
8,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

S = input()
count_S = collections.Counter(S)
S_list = list(S)
S_set = set(S)

if len(S_list)-len(S_set)==6 and 3 not in count_S.values():
    for key,value in count_S.items():
        if value==1:
            print(key)
else:
    print("Impossible")
0