上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 63 下一页
摘要: #pragma GCC optimize (3,"inline","Ofast") #include <bits/stdc++.h> using namespace std; typedef long long ll; const ll N=505; const ll inf=1e18; ll n, 阅读全文
posted @ 2020-05-30 11:38 晴屿 阅读(218) 评论(0) 推荐(0) 编辑
摘要: #pragma GCC optimize(2) #include<bits/stdc++.h> #define ll long long const int maxn=1000005; const int inf=0x3f3f3f3f; using namespace std; ll dp[maxn 阅读全文
posted @ 2020-05-29 16:17 晴屿 阅读(155) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=500005; const ll INF=(1LL<<60)-1; int a[N]; ll sum[N]; int main() { int 阅读全文
posted @ 2020-05-29 02:08 晴屿 阅读(97) 评论(0) 推荐(0) 编辑
摘要: //存在一个k,i<j<k,且q[k]<q[i]<q[j] //就不能放在一个栈内 //然后枚举一下所有的i j //如果满足上面的条件,就连一条边 //然后判断是不是二分图 //左边是第一个栈,右边是第二个栈 #include<cstdio> #include<cstring> #include< 阅读全文
posted @ 2020-05-29 02:06 晴屿 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 想明白之后就是,路径条数 #include<bits/stdc++.h> using namespace std; typedef long long ll; ll a,b,c,d; inline ll read() { ll x=0,w=1; char c=getchar(); while(c<' 阅读全文
posted @ 2020-05-29 01:55 晴屿 阅读(107) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; const int N=1e6+10; int a[N]; int n; int tr[N]; int f[N]; int ans; int lowbit(int x) { return x&-x; } voi 阅读全文
posted @ 2020-05-25 20:33 晴屿 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn=1e6+7; #define int long long int a[107]; int n,m; int check(int x) 阅读全文
posted @ 2020-05-25 16:01 晴屿 阅读(221) 评论(0) 推荐(0) 编辑
摘要: #include<map> #include<queue> #include<time.h> #include<limits.h> #include<cmath> #include<ostream> #include<iterator> #include<set> #include<stack> # 阅读全文
posted @ 2020-05-25 15:41 晴屿 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; #define ll long long #define P pair<int,int> #define mk make_pair const int N = 2e3 + 10; void solve() { 阅读全文
posted @ 2020-05-25 12:15 晴屿 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<algorithm> #include<cstdio> #include<cstring> using namespace std; const int maxn=15,maxx=100005; int tmp[maxn],vis[10]; l 阅读全文
posted @ 2020-05-22 03:27 晴屿 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 63 下一页