結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2018-11-29 21:54:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 126 ms / 5,000 ms |
コード長 | 237 bytes |
コンパイル時間 | 119 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,244 KB |
最終ジャッジ日時 | 2024-06-26 23:06:04 |
合計ジャッジ時間 | 3,448 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
N = int(input()) f = input() s_f = f.split() num = [int(v) for v in s_f] num.sort() num.append(pow(10,9) + 1) num.insert(0,0) i = 0 for v in range(1, N + 1): if num[v - 1] != num[v] and num[v] != num[v + 1]: i += 1 print(i)