結果

問題 No.587 七対子
ユーザー takakintakakin
提出日時 2020-04-19 20:09:09
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 8,480 KB
最終ジャッジ日時 2023-07-28 14:20:29
合計ジャッジ時間 2,772 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
import collections
S=collections.Counter(list(input()))
if max(S.values())!=2:
  print("Impossible")
else:
  for x in S.keys():
    if S[x]==1:
      print(x)
      break
0