会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Let_Life_Stop
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
48
49
50
51
52
53
54
55
56
···
59
下一页
2018年9月3日
A - Longest k-Good Segment (尺取法)
摘要: 题目链接:https://cn.vjudge.net/contest/249801#problem/A解题思路:尺取法,每次让尺子中包含k种不同的数,然后求最大。代码:#includeusing namespace std;# define maxn 500000+1...
阅读全文
posted @ 2018-09-03 20:26 Let_Life_Stop
阅读(142)
评论(0)
推荐(0)
2018年9月2日
ACM-ICPC 2018 南京赛区网络预赛 L题(分层图,堆优化)
摘要: 题目链接:https://nanti.jisuanke.com/t/31001超时代码:#includeusing namespace std;# define maxn 10000000+10# define inf 0x3f3f3f3fint n,m,k;int ...
阅读全文
posted @ 2018-09-02 21:39 Let_Life_Stop
阅读(138)
评论(0)
推荐(0)
ACM-ICPC 2018 南京赛区网络预赛 L题(分层图,堆优化)
摘要: 题目链接:https://nanti.jisuanke.com/t/31001超时代码:#includeusing namespace std;# define maxn 10000000+10# define inf 0x3f3f3f3fint n,m,k;int ...
阅读全文
posted @ 2018-09-02 21:39 Let_Life_Stop
阅读(155)
评论(0)
推荐(0)
ACM-ICPC 2018 南京赛区网络预赛 J.Sum
摘要: 题目链接:https://nanti.jisuanke.com/t/30999大意,给你一个n,让你求这个数只能被两个非平方数相乘得到,问你从1到这个数的前缀和。#includeusing namespace std;#define maxn 20000000+10i...
阅读全文
posted @ 2018-09-02 11:33 Let_Life_Stop
阅读(134)
评论(0)
推荐(0)
ACM-ICPC 2018 南京赛区网络预赛 J.Sum
摘要: 题目链接:https://nanti.jisuanke.com/t/30999大意,给你一个n,让你求这个数只能被两个非平方数相乘得到,问你从1到这个数的前缀和。#includeusing namespace std;#define maxn 20000000+10i...
阅读全文
posted @ 2018-09-02 11:33 Let_Life_Stop
阅读(160)
评论(0)
推荐(0)
2018年8月27日
汉诺塔
摘要: #includeusing namespace std;# define maxn 1000000+10void tower(int n,char a,char b,char c){ if(n==1) { cout>n; tower(n...
阅读全文
posted @ 2018-08-27 21:02 Let_Life_Stop
阅读(112)
评论(0)
推荐(0)
汉诺塔
摘要: #includeusing namespace std;# define maxn 1000000+10void tower(int n,char a,char b,char c){ if(n==1) { cout>n; tower(n...
阅读全文
posted @ 2018-08-27 21:02 Let_Life_Stop
阅读(96)
评论(0)
推荐(0)
D - Maximizing Advertising
摘要: 题目链接:https://cn.vjudge.net/contest/250168#problem/D题目大意:给你一些点的坐标,这些点属于两个帮派,让你将这些点分进两个不能重叠的矩形中,问你最多两个矩形中不同帮派之和为多少?具体思路:将点分别按照x升序进行排序,按照...
阅读全文
posted @ 2018-08-27 20:10 Let_Life_Stop
阅读(128)
评论(0)
推荐(0)
D - Maximizing Advertising
摘要: 题目链接:https://cn.vjudge.net/contest/250168#problem/D题目大意:给你一些点的坐标,这些点属于两个帮派,让你将这些点分进两个不能重叠的矩形中,问你最多两个矩形中不同帮派之和为多少?具体思路:将点分别按照x升序进行排序,按照...
阅读全文
posted @ 2018-08-27 20:10 Let_Life_Stop
阅读(140)
评论(0)
推荐(0)
2018年8月24日
数学小定理
摘要: 要判断某一段数字能否被3 或者 9 整除,有一个小定理,就是《如果各位数字之和能整除3或者9,就证明这一段数字能被3 或者 9 整除》。题目链接:https://cn.vjudge.net/contest/242367#problem/A代码:#include#inc...
阅读全文
posted @ 2018-08-24 20:11 Let_Life_Stop
阅读(121)
评论(0)
推荐(0)
上一页
1
···
48
49
50
51
52
53
54
55
56
···
59
下一页
公告