結果

問題 No.1285 ゴミ捨て
ユーザー hir355hir355
提出日時 2020-11-13 21:28:36
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 169 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 92,936 KB
最終ジャッジ日時 2023-08-19 07:12:55
合計ジャッジ時間 4,644 ms
ジャッジサーバーID
(参考情報)
judge9 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,560 KB
testcase_01 AC 90 ms
71,816 KB
testcase_02 AC 91 ms
71,428 KB
testcase_03 AC 89 ms
71,672 KB
testcase_04 AC 89 ms
71,592 KB
testcase_05 AC 91 ms
71,756 KB
testcase_06 AC 89 ms
71,820 KB
testcase_07 AC 169 ms
92,668 KB
testcase_08 AC 113 ms
77,736 KB
testcase_09 AC 136 ms
83,344 KB
testcase_10 AC 162 ms
91,092 KB
testcase_11 AC 158 ms
89,896 KB
testcase_12 AC 145 ms
86,100 KB
testcase_13 AC 144 ms
85,912 KB
testcase_14 AC 166 ms
90,856 KB
testcase_15 AC 151 ms
88,284 KB
testcase_16 AC 124 ms
79,824 KB
testcase_17 AC 125 ms
79,464 KB
testcase_18 AC 124 ms
79,332 KB
testcase_19 AC 140 ms
82,564 KB
testcase_20 AC 124 ms
79,092 KB
testcase_21 AC 127 ms
80,528 KB
testcase_22 AC 168 ms
92,936 KB
testcase_23 AC 167 ms
92,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0