結果
| 問題 | No.1285 ゴミ捨て |
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2020-11-13 21:28:36 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 2,000 ms |
| コード長 | 156 bytes |
| 記録 | |
| コンパイル時間 | 316 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 96,768 KB |
| 最終ジャッジ日時 | 2026-05-22 20:10:36 |
| 合計ジャッジ時間 | 2,898 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
from collections import Counter
n=int(input())
c=Counter([int(input()) for _ in range(n)])
ans=0
for k, v in c.items():
ans=max(ans,v+c[k+1])
print(ans)
hir355