会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sewage
不积跬步无以至千里
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
26
27
28
29
30
31
32
33
下一页
2018年11月28日
Codeforces Round #517 (Div. 2, based on Technocup 2019 Elimination Round 2)D(思维,DP,字符串)
摘要: #include<bits/stdc++.h>using namespace std;char c[2007][2007];char ans[4007];int s[2007][2007];int main(){ memset(s,-1,sizeof(s)); int n,k; scanf("%d%
阅读全文
posted @ 2018-11-28 04:13 sewage
阅读(209)
评论(0)
推荐(0)
2018年11月20日
Codeforces Round#522 Div2E(思维,背包,组合数学)
摘要: #include<bits/stdc++.h>using namespace std;int a[107];int b[10007][107];int c[107][107];int main(){ int n; scanf("%d",&n); for(int i=1;i<=n;i++){ scan
阅读全文
posted @ 2018-11-20 19:50 sewage
阅读(141)
评论(0)
推荐(0)
2018年11月19日
Codeforces Round #522 Div2C(思维)
摘要: #include<bits/stdc++.h>using namespace std;int a[200007];int b[200007][7];int ans[200007];int main(){ for(int i=1;i<=5;i++) b[1][i]=1;//第一个可以从1选到5 int
阅读全文
posted @ 2018-11-19 17:44 sewage
阅读(168)
评论(0)
推荐(0)
2018年11月11日
Educational Codeforces Round 53C(二分,思维|构造)
摘要: #include<bits/stdc++.h>using namespace std;const int N=1e6+6;int x[N],y[N];int sx,sy,n;char s[N];bool check(int m){ for(int i=1;i<=n-m+1;i++) { int tx
阅读全文
posted @ 2018-11-11 17:35 sewage
阅读(201)
评论(0)
推荐(0)
2018年10月31日
UPCOJ9526(SG函数打表,nim游戏异或规则)
摘要: #include<bits/stdc++.h>using namespace std;int f[1007],SG[1007],S[1007];//f为可以选取的石头个数,SG为sg函数,S为后继状态的集合int n,l,r; int cnt=0;void getSG(int n){//SG函数打表
阅读全文
posted @ 2018-10-31 01:36 sewage
阅读(295)
评论(0)
推荐(0)
2018年10月27日
Wannafly挑战赛27B(DFS,链表头插法)
摘要: #include<bits/stdc++.h>using namespace std;int cnt=0;int flag=0;int to[400007],nex[400007],vis[100007],head[100007];void add(int a,int b){//链表的头插法,nex
阅读全文
posted @ 2018-10-27 18:37 sewage
阅读(166)
评论(0)
推荐(0)
2018年10月23日
Educational Codeforces Round 52F(树形DP,VECTOR)
摘要: #include<bits/stdc++.h>using namespace std;int n,k;vector<int>son[1000007];int dp[1000007],depth[1000007],ans[1000007];//dp【i】表示离i最近的叶子节点距离i的深度,depth【
阅读全文
posted @ 2018-10-23 23:16 sewage
阅读(138)
评论(0)
推荐(0)
2018年10月21日
Educational Codeforces Round 52E(构造,快速幂)
摘要: #include <bits/stdc++.h>using namespace std;const int mod=998244353;long long b[200007];long long ksm(long long x,long long y){//快速幂 long long ans=1;
阅读全文
posted @ 2018-10-21 15:36 sewage
阅读(211)
评论(0)
推荐(0)
2018年10月14日
Educational Codeforces Round 52D(ARRAY,模拟最短路)
摘要: #include<bits/stdc++.h>using namespace std;int n,x;int chess[17*17];//记录棋盘上的numberarray<int,2>pace[17*17*3][17*17*3],dp[17*17][3];//first记录root,second
阅读全文
posted @ 2018-10-14 17:31 sewage
阅读(141)
评论(0)
推荐(0)
2018年10月10日
Codeforces#514D(三分,简单二维几何)
摘要: #include<bits/stdc++.h>using namespace std;const double eps=1e-8;int n; struct node{ double x,y;}a[1000007]; long double find_r(long double x){ long d
阅读全文
posted @ 2018-10-10 21:17 sewage
阅读(194)
评论(0)
推荐(0)
上一页
1
···
26
27
28
29
30
31
32
33
下一页
公告