結果

問題 No.182 新規性の虜
ユーザー open
提出日時 2017-06-12 17:05:48
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 326 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 20,776 KB
最終ジャッジ日時 2024-09-24 16:47:04
合計ジャッジ時間 2,366 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#182 new
# your code goes here
N=int(input())
A=[int(i) for i in input (). split ()]
B=[1]*N
while i<len(A):
    j=i+1
    nd=0
    while j<len(A) and nd==0:
        if A[i]==A[j]:
 #           print (i)
            B[i]=0
            B[j]=0
            nd=1
        j+=1
    i+=1
S=0
for i in range (N):
    S+=B[i]
print (S)
0