結果
問題 |
No.587 七対子
|
ユーザー |
![]() |
提出日時 | 2025-07-11 10:58:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 229 bytes |
コンパイル時間 | 252 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 10,112 KB |
最終ジャッジ日時 | 2025-07-11 10:58:37 |
合計ジャッジ時間 | 2,844 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
from collections import Counter s = input() d = Counter() list = [''] * 15 for c in s: d[c] += 1 for k in d: list[d[k]] += k if len(list[1]) == 1 and len(list[2]) == 6: print(list[1]) else: print('Impossible')