結果
| 問題 | No.29 パワーアップ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-05 15:13:16 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 5,000 ms |
| + 769µs | |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 21,536 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-07-15 22:12:59 |
| 合計ジャッジ時間 | 3,573 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
from collections import Counter ans=0 items,x=[],[] for _ in '1'*int(input()): items.extend(list(map(int, input().split()))) for [i, j] in Counter(items).most_common(): if j > 1: ans += int(j/2) if j%2: x.append(j%2) else: x.append(i) ans += int(len(x)/4) print(ans)