摘要: 题目链接:here 就是保存除了不能被2 3 5 以外的素数整除的数 #include#include#include#include#include#includeusing namespace std;const int maxn = 1000+10;int main(){ ... 阅读全文
posted @ 2016-09-28 16:26 hong-ll 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 题目链接:here 思路还是很简单的,,用map[a][i] 表示编号为a 的人在i的队伍里面,然后用队列表示每个队伍; #include#include#include#include#include#includeusing namespace std;const int maxn... 阅读全文
posted @ 2016-09-28 16:19 hong-ll 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 题目链接:Here 找到最近的两个相同字符的距离,很水的一个题 #include#include#include#includeusing namespace std;int main(){ int t; int T=1; scanf("%d",&t); whil... 阅读全文
posted @ 2016-09-28 16:12 hong-ll 阅读(123) 评论(0) 推荐(0) 编辑