結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-16 23:26:57 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 76 ms / 5,000 ms |
| + 755µs | |
| コード長 | 449 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 80,572 KB |
| 実行使用メモリ | 90,288 KB |
| 最終ジャッジ日時 | 2026-07-17 13:02:44 |
| 合計ジャッジ時間 | 3,428 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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())