結果
| 問題 | No.587 七対子 |
| コンテスト | |
| ユーザー |
takakin
|
| 提出日時 | 2020-04-19 20:10:47 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 162 ms / 2,000 ms |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 610 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 36,180 KB |
| 最終ジャッジ日時 | 2026-04-02 18:14:20 |
| 合計ジャッジ時間 | 7,897 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
import sys
input=lambda: sys.stdin.readline().rstrip()
import collections
S=collections.Counter(list(input()))
if max(S.values())!=2 or len(S.keys())!=7:
print("Impossible")
else:
for x in S.keys():
if S[x]==1:
print(x)
break
takakin