結果
問題 |
No.1285 ゴミ捨て
|
ユーザー |
|
提出日時 | 2022-03-09 20:56:29 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 181 bytes |
コンパイル時間 | 257 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 79,324 KB |
最終ジャッジ日時 | 2024-09-13 21:03:57 |
合計ジャッジ時間 | 4,168 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 WA * 12 |
ソースコード
n = int(input()) an = sorted([int(input()) for i in range(n)])[::-1] max_v = max(an) count = 1 for i in range(1,len(an)): if an[i]+1 >= max_v: count+=1 print(count)