結果
| 問題 | No.587 七対子 |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2024-06-04 08:58:28 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 2,000 ms |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 135 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 53,888 KB |
| 最終ジャッジ日時 | 2026-05-29 11:28:43 |
| 合計ジャッジ時間 | 2,488 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
from collections import *
S = Counter(input())
D = defaultdict(int)
for k, v in S.items():
D[v] += 1
if not (D[2] == 6 and D[1] == 1):
print("Impossible")
else:
for k, v in S.items():
if v == 1:
print(k)
rlangevin