题解列表

筛选

优先队列 + map

摘要:解题思路:数据为10e5  暴力n^2 肯定会超时可以利用小根堆来做注意事项:由于value不断的加可能超过INT_MAX,所以value类型为long long参考代码:#include<iostr……

c++指针法(指针练习)

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ char arr[100]; cin.getline(arr,100……

C++代码实现

摘要:解题思路:sort排序,C++代码实现注意事项:参考代码:#include<iostream>#include<algorithm>#include<string>using namespace st……

2880: 计算鞍点

摘要:``` #include using namespace std; const int N=1000,M=100000; int a[N][N],dx[6],dy[6]; int main(……

2909: 直方图 C++

摘要:解题思路:注意事项:const int  常量(不会改变)cnt[a[i]]      cnt    数量参考代码:#include<bits/stdc++.h>using namespace std……