上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: Codeforces Round #560 (Div. 3) E. Two Arrays and Sum of Functions Description You are given two arrays aa and bb, both of length nn. Let's define a fu 阅读全文
posted @ 2019-05-15 14:52 kaike 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2668 Daydream Problem Description Welcome to 2009 HDU Girl’s Cup, bless you will happy in it. Every gir 阅读全文
posted @ 2019-05-11 15:19 kaike 阅读(204) 评论(0) 推荐(0) 编辑
摘要: https://loj.ac/problems/search?keyword=%E5%88%86%E5%9D%97 https://blog.csdn.net/keepcoral/article/details/80743559 数列分块入门 1 正确解法: 简单分块,然后区间之外的暴力,区间之内的 阅读全文
posted @ 2019-05-09 14:13 kaike 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 正确解法: 分块(超时) 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 #include <set> 7 #include <map 阅读全文
posted @ 2019-05-04 15:08 kaike 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 主要解法 肯定要提前预留出di 数组,然后就是线段树。 刚开始以为 因子数=i-phi[i]+1 后来发现并不是,4和6不是因子关系,但是他们不是互质的,这两个的含义不一样, 并不是互补的 我们发现数据范围为1e6,然后一步步迭代 最终都会变成 1或者 2 d[1]=1 d[2]=2; 最多可迭代6 阅读全文
posted @ 2019-05-01 15:38 kaike 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 欧拉函数:在数论,对正整数n,欧拉函数是小于或等于n的数中与n互质的数的数目。 阅读全文
posted @ 2019-04-26 18:00 kaike 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<cstdio> 3 #include<string> 4 #include<cstring> 5 #include<map> 6 #include<set> 7 #include<vector> 8 #include<queue> 9 阅读全文
posted @ 2019-04-25 14:30 kaike 阅读(437) 评论(0) 推荐(0) 编辑
摘要: E. Two Teams Description There are 𝑛n students standing in a row. Two coaches are forming two teams — the first coach chooses the first team and the 阅读全文
posted @ 2019-04-20 15:06 kaike 阅读(209) 评论(0) 推荐(0) 编辑
摘要: C. Serval and Parenthesis Sequence Description Serval soon said goodbye to Japari kindergarten, and began his life in Japari Primary School. In his fa 阅读全文
posted @ 2019-04-19 17:04 kaike 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Thanks, TuSimple! Description As a manager of TuSimple, you are going to hold a dancing party for both the Development Department and the Marketing De 阅读全文
posted @ 2019-04-17 21:19 kaike 阅读(149) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页