結果
問題 | No.587 七対子 |
ユーザー |
![]() |
提出日時 | 2024-06-04 08:58:28 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 236 bytes |
コンパイル時間 | 267 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 53,760 KB |
最終ジャッジ日時 | 2024-12-23 10:48:00 |
合計ジャッジ時間 | 2,964 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)