摘要:
#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 阅读全文
摘要:
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( 阅读全文
摘要:
poj An Easy Problem?! POJ - 2826 #include <iostream> #include <cstdio> #include <cmath> #include <vector> #include <algorithm> using namespace std; // 阅读全文
摘要:
poj 1696 Space Ant 每次极角排序,更新就行了 #include <iostream> #include <cstdio> #include <cmath> #include <vector> #include <algorithm> using namespace std; // 阅读全文
摘要:
poj 3304 #include<iostream> #include<algorithm> #include<cmath> #include<cstdio> using namespace std; #define ll long long const int N = 200+10; const 阅读全文
摘要:
模板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 阅读全文
摘要:
半平面交模板题 #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 阅读全文
摘要:
凸包模板题 #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 阅读全文
摘要:
二维平面最近点 #include<cstdio> #include<cstdlib> #include<iostream> #include<cmath> #include<string> #include<cstring> #include<algorithm> using namespace s 阅读全文
摘要:
LRU(c++实现) 链接:https://leetcode-cn.com/problems/lru-cache/ struct DLinkedNode{ int key,value; DLinkedNode* prev; DLinkedNode* next; DLinkedNode():key(0 阅读全文