上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: U3357 C2-走楼梯 把下楼看成上楼 f[i]表示两次走到i的方案数 1 #include<cstdio> 2 #define N 10000001 3 #define mod 2333333 4 using namespace std; 5 int f[N],n; 6 int main() 7 阅读全文
posted @ 2017-09-06 11:49 Alex丶Baker 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1821: [JSOI2010]Group 部落划分 Group 最小生成树 1 #include<algorithm> 2 #include<iostream> 3 #include<cstring> 4 #include<cstdio> 5 #include<queue> 6 #include< 阅读全文
posted @ 2017-09-06 11:47 Alex丶Baker 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1217 借教室 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define maxn 1000000 4 #define inf 1<<30 5 6 int n,m,tot,num[maxn],q[maxn]; 7 int sta[maxn 阅读全文
posted @ 2017-09-05 20:53 Alex丶Baker 阅读(127) 评论(0) 推荐(0) 编辑
摘要: P2678 跳石头 二分 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define maxn 1000000 4 #define inf 1<<30 5 6 int n,m,c,pos[maxn]; 7 8 bool check(int n 阅读全文
posted @ 2017-09-05 20:21 Alex丶Baker 阅读(120) 评论(0) 推荐(0) 编辑
摘要: P1316 丢瓶盖 二分答案 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n,m,pg[100001]; 4 5 char ch; 6 inline void read(int &now) 7 { 8 int f=1; ch=getc 阅读全文
posted @ 2017-09-05 19:32 Alex丶Baker 阅读(190) 评论(0) 推荐(0) 编辑
摘要: P2683 小岛 spfa, 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define maxn 1000000 4 #define inf 1<<30 5 #define LL long long 6 int n,m,s,num,t,he 阅读全文
posted @ 2017-09-05 17:27 Alex丶Baker 阅读(176) 评论(0) 推荐(0) 编辑
摘要: P2431 正妹吃月饼 求l到r之间有多少个二进制1 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #define LL long long 5 using namespace std; 6 LL ans; 7 char 阅读全文
posted @ 2017-09-05 15:47 Alex丶Baker 阅读(220) 评论(0) 推荐(0) 编辑
摘要: #6092. 「Codeforces Round #418」恋爱循环 二分 1 #include<algorithm> 2 #include<iostream> 3 #include<cstring> 4 #include<cstdio> 5 #include<queue> 6 #include<c 阅读全文
posted @ 2017-09-05 15:24 Alex丶Baker 阅读(376) 评论(0) 推荐(0) 编辑
摘要: #6091. 「Codeforces Round #418」幻想特快 1 #include<algorithm> 2 #include<iostream> 3 #include<cstring> 4 #include<cstdio> 5 #include<queue> 6 using namespa 阅读全文
posted @ 2017-09-05 11:37 Alex丶Baker 阅读(254) 评论(0) 推荐(0) 编辑
摘要: https://loj.ac/problem/6090 1 #include<algorithm> 2 #include<iostream> 3 #include<cstring> 4 #include<cstdio> 5 #include<cmath> 6 #include<queue> 7 us 阅读全文
posted @ 2017-09-05 11:36 Alex丶Baker 阅读(201) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页