結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-09-09 23:17:00 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 338 bytes |
| 記録 | |
| コンパイル時間 | 296 ms |
| コンパイル使用メモリ | 77,748 KB |
| 最終ジャッジ日時 | 2025-12-03 16:50:51 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 27 |
ソースコード
N = int(raw_input())
input = sorted(map(int, raw_input().strip().split()))
cnt = 0
top = input.pop()
nxt = input.pop()
while True:
if top == nxt:
while top == nxt:
if len(input) == 0:
break
nxt = input.pop()
else:
cnt += 1
top = nxt
nxt = input.pop()
print cnt