結果
問題 |
No.182 新規性の虜
|
ユーザー |
|
提出日時 | 2018-06-05 01:24:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 308 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 20,644 KB |
最終ジャッジ日時 | 2024-06-30 09:50:49 |
合計ジャッジ時間 | 2,734 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 WA * 15 |
ソースコード
N = int(input()) l = list(map(int, input().split())) l.sort count = 0 ck =0 if N == 1: count = 1 else: for i in range(N-1): if l[i] != l[i+1] and l[i] != ck: count += 1 # print(l[i]) ck = l[i] if l[N-1] != ck: count += 1 # print("aa") print(count)