摘要:
以https://www.luogu.com.cn/problem/P7252 为例 正解 #include <iostream> #include <cstring> #include <cstdio> using namespace std; const int N = 5e4 + 10, M 阅读全文
posted @ 2025-10-03 21:09
michaele
阅读(16)
评论(0)
推荐(0)
摘要:
序列与整数对 题面 给定一个长度为 \(n\) 的正整数序列 \(A_1, A_2, \cdots,A_n\) ,有 \(m\) 次询问,每次给定两个正整数 \(x, y\) ,求有多少个整数对 \((i,j)\) 满足 \(1 \le i < j \le n,A_i = x, A_j = y\)。 阅读全文
posted @ 2025-10-03 21:04
michaele
阅读(25)
评论(0)
推荐(0)