摘要:
没保存,CaO 抢救了一下,详见 my sol: A 打表。 1 I 2 II V X 3 III IV VI IX 4 VII 5 VIII 剩余的加X,再加2火柴即可 注意没有40! 完整: 1 I 2 II V X 3 III IV VI IX XI 4 VII XII XV XX 5 VII 阅读全文
摘要:
然而题单里就是有这题…… dij,照亮世界! #include<bits/stdc++.h> using namespace std; int n,k,m,s,t,a[105][105],wen[105]; int d[100005]; bool vis[100005]; int qi,mo,f; 阅读全文
摘要:
暴搜+剪枝。 #include<bits/stdc++.h> using namespace std; struct f{ int rank,sum; }cou[10]; int a[10][10],hang[10][10],lie[10][10],gong[10][10],s[100][4],u, 阅读全文
摘要:
A: 创历史新低 dalao:d<=5,所以一个位置上只能是[i-d,i+d],考虑状压 ljx's code #include <bits/stdc++.h> using namespace std; const int maxn=505; const int mod=998244353; int 阅读全文
摘要:
A: 这也能100 显然,完全图的三角形最多 易得n节点完全图中三角形数量为 Cn3 talk is cheap,show you the code #include <bits/stdc++.h> using namespace std; inline int read_z(){int x=0;c 阅读全文