默默然诶
默默然诶
全部文章
分类
题解(19)
归档
标签
去牛客网
登录
/
注册
默默然诶的博客
Hello World
全部文章
(共19篇)
题解 | #Let'sPlayCurling#
#include<bits/stdc++.h> using namespace std; map<int,int> mp; map<int,int> cnt; int T,n,m; int main() { cin >> T; ...
2022-07-27
1
363
题解 | #集合与最大公因数#
#include <cstdio> int main(void) { int n, k ; scanf("%d%d", &n, &k) ; printf("%d\n", k*(6*n-1)) ; for(int i=0;i<n...
2022-07-20
1
274
题解 | #[HNOI2015]菜肴制作#
#include<bits/stdc++.h> using namespace std; const int N=1e5+10; int head[N],inc[N],ans[N]; int T,n,m,num,a1,a2; struct ty{ int y,next; }ed...
2022-07-16
2
344
题解 | #挖沟#
#include<bits/stdc++.h> using namespace std; const int maxn=1e6+10; struct ty{ int u,w,v; bool operator<(const ty x){ retur...
2022-07-16
1
361
题解 | #[SCOI2005]互不侵犯KING#
#include <bits/stdc++.h> using namespace std; #define ll long long int n, k; int num[1000]; ll f[10][90][1000]; int calc(int x) { int cnt = 0; ...
2022-07-14
1
304
题解 | #最大子串和#
#include<bits/stdc++.h> using namespace std; const int N=1e6+10; int n; long long sum=0,ans=0,x,f[N],a[N]; int main() { scanf("%d", &...
2022-07-13
1
241
题解 | #走楼梯#
#include<bits/stdc++.h> using namespace std; map<int,int> mp; int print(int k) { int f=0; if(k == 1){ return 1; } ...
2022-07-13
0
277
题解 | #八数码#
#include<iostream> #include<algorithm> #include<map> #include<queue>; using namespace std; const int N = 363000; string s = ""...
2022-07-12
1
423
题解 | #N皇后问题#
#include<iostream> using namespace std; int n; int a[14]; int lie[14], zd[30], fd[30]; int ans = 0; void dfs(int dep) { if (dep > n) { a...
2022-07-11
1
250
首页
上一页
1
2
下一页
末页