結果

問題 No.182 新規性の虜
ユーザー rocoder
提出日時 2017-07-16 20:29:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 21,364 KB
最終ジャッジ日時 2024-10-08 04:28:31
合計ジャッジ時間 7,165 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 5 TLE * 1 -- * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#182 new
# your code goes here
N=int(input())
A=[int(i) for i in input (). split ()]
B=[1]*N
i=0
C=0
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
    if nd==0:
        C+=1
    i+=1
#S=0
#or i in range (N):
   # S+=B[i]
print (C)
0