結果

問題 No.182 新規性の虜
ユーザー hkawa117hkawa117
提出日時 2015-09-10 01:02:14
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 389 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 16,496 KB
最終ジャッジ日時 2024-07-19 05:10:44
合計ジャッジ時間 8,794 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 1 WA * 14 TLE * 1 -- * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
input = sorted(raw_input().strip().split())
cnt = 0
while input:
    top = input.pop(0)
    if input:
        nxt = input[0]
        if top == nxt:
            while True:
                try:
                    if input.index(top) == 0:
                        input.remove(top)
                except:
                    break
    else:
        cnt += 1

print cnt
0