上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: #include <iostream> #include <algorithm> using namespace std; #define ll long long const int N = 2e5 + 10; int nn,k; int rank1[N*2]; int temp[N*2]; in 阅读全文
posted @ 2020-11-01 02:01 hh13579 阅读(50) 评论(1) 推荐(0) 编辑
摘要: class Solution { public: const double eps = 1e-6; bool judgePoint24(vector<int>& nums) { vector<double>l; for(int i=0;i<nums.size();i++){ l.push_back( 阅读全文
posted @ 2020-10-28 01:09 hh13579 阅读(133) 评论(0) 推荐(0) 编辑
摘要: poj An Easy Problem?! POJ - 2826 #include <iostream> #include <cstdio> #include <cmath> #include <vector> #include <algorithm> using namespace std; // 阅读全文
posted @ 2020-10-22 17:01 hh13579 阅读(170) 评论(0) 推荐(0) 编辑
摘要: poj 1696 Space Ant 每次极角排序,更新就行了 #include <iostream> #include <cstdio> #include <cmath> #include <vector> #include <algorithm> using namespace std; // 阅读全文
posted @ 2020-10-21 14:14 hh13579 阅读(58) 评论(0) 推荐(0) 编辑
摘要: poj 3304 #include<iostream> #include<algorithm> #include<cmath> #include<cstdio> using namespace std; #define ll long long const int N = 200+10; const 阅读全文
posted @ 2020-10-16 18:11 hh13579 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 模板AC自动机 #include<bits/stdc++.h> #define maxn 5005 #define ll long long const ll mod=1e9+7; using namespace std; const int N = 1e6+10; const double pi 阅读全文
posted @ 2020-10-04 23:31 hh13579 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 半平面交模板题 #include<bits/stdc++.h> using namespace std; #define ll long long const int N = 1e6+10; const double eps = 1e-10;//精度 //atan2(y,x)求极角的弧度 struc 阅读全文
posted @ 2020-10-03 15:48 hh13579 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 凸包模板题 #include<bits/stdc++.h> using namespace std; #define ll long long const int N = 1e5+10; const double eps = 1e-10;//精度 //atan2(y,x)求极角的弧度 struct 阅读全文
posted @ 2020-10-02 22:16 hh13579 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 二维平面最近点 #include<cstdio> #include<cstdlib> #include<iostream> #include<cmath> #include<string> #include<cstring> #include<algorithm> using namespace s 阅读全文
posted @ 2020-10-01 23:19 hh13579 阅读(106) 评论(0) 推荐(0) 编辑
摘要: LRU(c++实现) 链接:https://leetcode-cn.com/problems/lru-cache/ struct DLinkedNode{ int key,value; DLinkedNode* prev; DLinkedNode* next; DLinkedNode():key(0 阅读全文
posted @ 2020-09-22 19:02 hh13579 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页