yyer
yyer
全部文章
分类
归档
标签
去牛客网
登录
/
注册
yyer的博客
全部文章
(共24篇)
题解 | #还是畅通工程#
#include <iostream> #include <algorithm> using namespace std; const int N=102; //边结点 struct Edge{ int from; int to; int length...
2023-03-15
1
288
题解 | #最短路径问题#
#include <cstring> #include <climits> #include <iostream> #include <queue> #include <vector> using namespace std; const ...
2023-03-14
1
433
题解 | #最短路径问题#
#include <iostream> #include <queue> #include <cstring> #include <climits> #include <vector> using namespace std; const ...
2023-03-09
1
351
题解 | #Jungle Roads#
#include <iostream> #include <cmath> #include <algorithm> using namespace std; const int N=30; int father[N]; int height[N]; struct ...
2023-03-08
1
436
题解 | #连通图#
#include <iostream> #include <queue> #include <vector> using namespace std; const int N=1005; bool visited[N]={false}; int n,m,a,b,c...
2023-03-07
1
306
题解 | #畅通工程#
#include <iostream> using namespace std; const int N=1002; int n,m,a,b; int cont; int G[N][N]; bool visited[N]={false}; void Initial(){ cont...
2023-03-07
1
305
题解 | #简单计算器#
#include <iostream> #include <stack> using namespace std; /* 表示一个运算符的类型以及优先级 栈内:+,- (优先级:3) *,/(优先级:5) 栈外:+,- (优先级:2) *,/(优先级:4) *...
2023-03-03
1
388
题解 | #日期类#
#include <iostream> using namespace std; int months[2][13]={{0,31,28,31,30,31,30,31,31,30,31,30,31},{0,31,29,31,30,31,30,31,31,30,31,30,31}}; in...
2023-03-02
1
329
题解 | #简单密码#
#include <iostream> using namespace std; int main() { string str; string start,end; while(cin>>start){ if(start=="ENDOFI...
2023-03-02
1
336
题解 | #日期差值#
#include <iostream> using namespace std; int months[2][13]={{0,31,28,31,30,31,30,31,31,30,31,30,31},{0,31,29,31,30,31,30,31,31,30,31,30,31}}; ...
2023-03-01
1
358
首页
上一页
1
2
3
下一页
末页