欧应万_
欧应万_
全部文章
分类
归档
标签
去牛客网
登录
/
注册
欧应万_的博客
全部文章
(共31篇)
系统自带的哈希表
#include <iostream> #include <algorithm> #include<unordered_map>//哈希表头文件 using namespace std; unordered_map<int,bool> hashTabl...
2023-08-13
0
365
哈希表法
#include <iostream> using namespace std; bool hashTable[100000000];//哈希表,下标等于查找的值,有为true 没有为false int main() { int n, m; cin >> n;...
2023-08-13
0
287
结构体排序法
#include <iostream> #include <algorithm> using namespace std; struct ab { int x; int y; }; bool compear(ab a, ab b) { if (a.x ...
2023-08-13
0
320
二分查找(lower_bound函数)
#include <iostream> #include <algorithm> using namespace std; int main() { int n, m, f = 0; cin >> n; int a[100]; ...
2023-08-13
0
299
线性查找
#include <iostream> using namespace std; int a[100];//定义数组 bool LinearSearch(int n, int target) {//线性查找函数 bool flag = false;//标志 for (in...
2023-08-13
0
297
线性查找脑残法
#include <iostream> using namespace std; int main() { int n, m, f = 0; cin >> n; int* a = (int*)malloc(sizeof(int) * n); ...
2023-08-13
0
284
就这还困难???
#include <iostream> #include <algorithm> using namespace std; int main() { int n; cin>>n; int arr[1000]; for (int i...
2023-08-12
0
270
题解 | #小白鼠排队#
#include <iostream> #include <algorithm> using namespace std; struct shushu{ int wight; string color; bool operator<(shushu shu)const{/...
2023-08-12
0
307
一目了然的题解
#include <iostream> #include <algorithm> using namespace std; bool compare(int x, int y) { if (x % 2 == 1 && y % 2 == 1) { ...
2023-08-12
0
293
解决部分用例报错(根本原因是sort的不稳定排序)
#include <asm-generic/errno-base.h> #include <iostream> #include <algorithm>//sort的头文件 using namespace std; struct Student { str...
2023-08-12
0
415
首页
上一页
1
2
3
4
下一页
末页