上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 59 下一页
摘要: 题目链接: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 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目链接: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 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 题目链接: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 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://nanti.jisuanke.com/t/30999大意,给你一个n,让你求这个数只能被两个非平方数相乘得到,问你从1到这个数的前缀和。#includeusing namespace std;#define maxn 20000000+10i... 阅读全文
posted @ 2018-09-02 11:33 Let_Life_Stop 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://nanti.jisuanke.com/t/30999大意,给你一个n,让你求这个数只能被两个非平方数相乘得到,问你从1到这个数的前缀和。#includeusing namespace std;#define maxn 20000000+10i... 阅读全文
posted @ 2018-09-02 11:33 Let_Life_Stop 阅读(155) 评论(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 阅读(110) 评论(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 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/contest/250168#problem/D题目大意:给你一些点的坐标,这些点属于两个帮派,让你将这些点分进两个不能重叠的矩形中,问你最多两个矩形中不同帮派之和为多少?具体思路:将点分别按照x升序进行排序,按照... 阅读全文
posted @ 2018-08-27 20:10 Let_Life_Stop 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/contest/250168#problem/D题目大意:给你一些点的坐标,这些点属于两个帮派,让你将这些点分进两个不能重叠的矩形中,问你最多两个矩形中不同帮派之和为多少?具体思路:将点分别按照x升序进行排序,按照... 阅读全文
posted @ 2018-08-27 20:10 Let_Life_Stop 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 要判断某一段数字能否被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 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 59 下一页