GoodLunatic
GoodLunatic
全部文章
分类
归档
标签
去牛客网
登录
/
注册
GoodLunatic的博客
全部文章
(共7篇)
题解 | #八皇后#
#include<iostream> #include<vector> using namespace std; const int N = 20; int b; bool col[N],dg[N],udg[N]; vector<int>res; void df...
2024-09-14
0
66
题解 | #最短路径#
#include <iostream> #include <algorithm> #include <map> #include <queue> using namespace std; typedef long long ll; typedef pa...
2024-09-09
1
78
题解 | #最短路径问题#
#include <iostream> #include <vector> #include <queue> #include <cstring> using namespace std; typedef pair<int, int>PII...
2024-09-04
1
75
题解 | #欧拉回路#
#include <iostream> using namespace std; typedef long long ll; const int N = 1010; ll p[N], d[N], h[N], g[N]; ll Find(ll k) { if (p[k] != k) ...
2024-09-03
0
88
题解 | #简单计算器#
#include <iostream> #include <stack> #include <string> using namespace std; stack<double> num; stack<char> op; string p...
2024-09-03
0
81
题解 | #继续畅通工程#
#include <iostream> #include <algorithm> using namespace std; const int N = 110; int p[N], h[N]; struct Edge { int x, y, v, st; bool o...
2024-09-02
1
79
题解 | #Graduate Admission#
#include <bits/stdc++.h> using namespace std; priority_queue<int, vector<int>, greater<int> > output; const int N = 40010; in...
2024-08-20
1
98