結果
問題 | No.1285 ゴミ捨て |
ユーザー |
![]() |
提出日時 | 2020-11-13 21:28:36 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 124 ms / 2,000 ms |
コード長 | 156 bytes |
コンパイル時間 | 138 ms |
コンパイル使用メモリ | 82,972 KB |
実行使用メモリ | 91,748 KB |
最終ジャッジ日時 | 2024-11-28 21:42:13 |
合計ジャッジ時間 | 2,786 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
from collections import Countern=int(input())c=Counter([int(input()) for _ in range(n)])ans=0for k, v in c.items():ans=max(ans,v+c[k+1])print(ans)