結果
| 問題 | No.2851 Make Pairs |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-30 11:03:29 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 548 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 38,828 KB |
| 最終ジャッジ日時 | 2026-05-30 11:03:56 |
| 合計ジャッジ時間 | 6,485 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 TLE * 1 -- * 5 |
ソースコード
n = int(input())
a = list(map(int,input().split()))
count = 0
while a:
word = a[0]
if a.count(word) >= 2:
count += a.count(word) // 2
new_words = []
for i in a:
if i != word:
new_words.append(i)
a = new_words
print(count)