結果

問題 No.1285 ゴミ捨て
コンテスト
ユーザー aaaaaaaaaa2230
提出日時 2020-11-14 10:02:42
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 288 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 259 ms
コンパイル使用メモリ 85,012 KB
実行使用メモリ 82,400 KB
最終ジャッジ日時 2026-04-03 11:23:53
合計ジャッジ時間 3,130 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 10 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n = int(input())
a = [int(input()) for i in range(n)]
ans = 0
a.sort(reverse=True)
for i in range(n):
    if a[i]:
        ans += 1
        now = a[i]
        a[i] = 0
        for j in range(i+1,n):
            if now > a[j]:
                now = a[j]
                a[j] = 0
print(ans)
0