結果

問題 No.182 新規性の虜
コンテスト
ユーザー rocoder
提出日時 2017-05-21 14:15:45
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
TLE  
実行時間 -
コード長 274 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 288 ms
コンパイル使用メモリ 21,340 KB
実行使用メモリ 19,876 KB
最終ジャッジ日時 2026-08-30 22:23:27
合計ジャッジ時間 8,217 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 TLE * 1 -- * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N=int(input())
A=[int(i) for i in input (). split ()]
i=0
while i<len(A):
    j=i+1
    e=1
    while j<len(A) and e==1:
        if A[i]==A[j]:
            A.pop(i)
            A.pop(j-1)
            e=0
            i-=1
            j-=1
        j+=1
    i+=1
print (len(A))
0