会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Venux
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
18
下一页
2020年9月23日
pipioj 1265: 最近公共祖先
摘要: http://www.pipioj.online/problem.php?id=1265 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync_with_stdio(0) 3 #define ull unsign
阅读全文
posted @ 2020-09-23 21:19 Venux
阅读(237)
评论(0)
推荐(0)
2020年8月14日
洛谷 P4779 【模板】单源最短路径(标准版)
摘要: https://www.luogu.com.cn/problem/P4779 1 #define IO std::ios::sync_with_stdio(0) 2 #include <bits/stdc++.h> 3 using namespace std; 4 #define mk make_p
阅读全文
posted @ 2020-08-14 22:10 Venux
阅读(188)
评论(0)
推荐(0)
2020年8月13日
洛谷 P1175 表达式的转换
摘要: https://www.luogu.com.cn/problem/P1175 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #include<bits/stdc++.h> 3 using namespace std; 4 #define pa pair<i
阅读全文
posted @ 2020-08-13 00:35 Venux
阅读(254)
评论(0)
推荐(0)
pipioj 1291 中缀表达式转后缀表达式I
摘要: 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #include<bits/stdc++.h> 3 using namespace std; 4 const int N=1000; 5 stack<char>s; 6 int n; 7 char t[N];
阅读全文
posted @ 2020-08-13 00:11 Venux
阅读(157)
评论(0)
推荐(0)
pipioj 1292 中缀表达式转后缀表达式II
摘要: 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #include<bits/stdc++.h> 3 using namespace std; 4 const int N=2e6+10; 5 6 stack<char>s; 7 queue<char>q; 8
阅读全文
posted @ 2020-08-13 00:09 Venux
阅读(129)
评论(0)
推荐(0)
2020年7月21日
先序遍历加中序遍历确定后序遍历
摘要: 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync_with_stdio(0) 3 #include <bits/stdc++.h> 4 using namespace std; 5 #define ll lo
阅读全文
posted @ 2020-07-21 15:32 Venux
阅读(215)
评论(0)
推荐(0)
中序遍历加后序遍历确定先序遍历
摘要: https://www.luogu.com.cn/problem/P1030 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync_with_stdio(0) 3 #include <bits/stdc++.h>
阅读全文
posted @ 2020-07-21 15:10 Venux
阅读(245)
评论(0)
推荐(0)
2020年6月9日
PIPIOJ 1025: 最短距离(三分)
摘要: http://www.pipioj.online/problem.php?id=1025 显然,两个人的距离要么越来越远,要么先越来越近再越来越远,故对时间三分即可求出最短距离。 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std:
阅读全文
posted @ 2020-06-09 01:34 Venux
阅读(221)
评论(0)
推荐(0)
2019年12月18日
hihocoder #1338 : A Game(区间dp)
摘要: http://hihocoder.com/problemset/problem/1338 区间dp。 d[l][r]表示[l,r]区间先手取能得到的最大分数。 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync
阅读全文
posted @ 2019-12-18 19:42 Venux
阅读(269)
评论(0)
推荐(0)
2019年12月14日
UVA1438 Asteroids(增量法求三维凸包,加权所有三棱锥质量求多面体重心)
摘要: https://www.luogu.com.cn/problem/UVA1438 题解建议参考lrj白书。 代码来自牛逼网友。 我只是存个板子。 1 #include <cstdio> 2 #include <cstring> 3 #include <cmath> 4 #include <cstdl
阅读全文
posted @ 2019-12-14 00:20 Venux
阅读(209)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
18
下一页
公告