結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-16 23:26:57 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 111 ms / 5,000 ms |
| コード長 | 449 bytes |
| 記録 | |
| コンパイル時間 | 123 ms |
| コンパイル使用メモリ | 77,588 KB |
| 最終ジャッジ日時 | 2025-12-03 14:40:56 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#!/usr/bin/env python
#coding:utf8
def read():
raw_input()
return map(int, raw_input().split())
def work(vList):
vList.sort()
ans = 0
idx = 0
while idx < len(vList):
if idx == len(vList) - 1 or vList[idx] != vList[idx + 1]:
ans += 1
while idx + 1 < len(vList) and vList[idx] == vList[idx + 1]:
idx += 1
idx += 1
print ans
if __name__ == "__main__":
work(read())