結果
問題 | No.1285 ゴミ捨て |
ユーザー |
![]() |
提出日時 | 2020-11-13 21:23:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 210 bytes |
コンパイル時間 | 108 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,772 KB |
最終ジャッジ日時 | 2024-07-22 20:25:22 |
合計ジャッジ時間 | 2,499 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 10 WA * 12 |
ソースコード
from heapq import heappush, heapreplace N, *A = map(int, open(0).read().split()) A.sort() q = [A[0]] for a in A[1:]: if a == q[0]: heappush(q, a) else: heapreplace(q, a) print(len(q))