上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 题目链接 https://www.acwing.com/problem/content/description/211/ 算法:先贪心,然后高斯消元算出基底的个数 阅读全文
posted @ 2019-10-07 15:40 hh13579 阅读(147) 评论(0) 推荐(0)
摘要: 杨氏矩阵又叫杨氏图表,它是这样一个矩阵,满足条件: (1)如果格子(i,j)没有元素,则它右边和上边的相邻格子也一定没有元素。 (2)如果格子(i,j)有元素a[i][j],则它右边和上边的相邻格子要么没有元素,要么有元素且比a[i][j]大。 勾长公式。 对于给定形状,不同的杨氏矩阵的个数为:n! 阅读全文
posted @ 2019-10-06 21:16 hh13579 阅读(712) 评论(0) 推荐(0)
摘要: 题目链接:https://nanti.jisuanke.com/t/40254 阅读全文
posted @ 2019-10-05 16:52 hh13579 阅读(245) 评论(0) 推荐(0)
摘要: A 空 B题 set暴力水过 C 签到题 D题 kmp模板题 E 空 阅读全文
posted @ 2019-09-10 18:30 hh13579 阅读(126) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; inline __int128 read(){ __int128 x=0,f=1; char ch=getchar(); while(ch<'0'||ch>'9'){ if(ch=='-') f=-1; ch=getchar(); } while(ch>='0'&&ch<='9'){ x=x*10+ch-' 阅读全文
posted @ 2019-09-10 01:07 hh13579 阅读(1301) 评论(0) 推荐(0)
摘要: 1067 Bash游戏 V2 1.0 秒 131,072.0 KB 5 分 1级题 1067 Bash游戏 V2 1.0 秒 131,072.0 KB 5 分 1级题 1067 Bash游戏 V2 有一堆石子共有N个。A B两个人轮流拿,A先拿。每次只能拿1,3,4颗,拿到最后1颗石子的人获胜。假设 阅读全文
posted @ 2019-09-07 11:54 hh13579 阅读(182) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; #define ll long long #define P pair<int,int> const ll INF=1e18; const int N=2e5+10; int head[N],ver[N],ed 阅读全文
posted @ 2019-08-24 15:49 hh13579 阅读(259) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define ll long long #define lowbit(x) x&-x using namespace std; const int N=1e5+10; int f[N][40],a[N],n,m; void ST_prework() { for(int i=1;i<=n;i++) { f[i][0]=a[i]; } int t=lo 阅读全文
posted @ 2019-08-21 11:15 hh13579 阅读(210) 评论(0) 推荐(0)
摘要: 单点修改 区间修改 阅读全文
posted @ 2019-08-21 10:49 hh13579 阅读(201) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; #define ll long long const int N=10005,M=5e5+5; int head[N],ver[M],edge[M],Next[M],d[N]; const int INF=0x7fffffff; queue<int>q; bool v[N]; int n,m,s,tot; v 阅读全文
posted @ 2019-08-20 20:35 hh13579 阅读(196) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页