ACM - 数列相关
LP_Cong
Python, Qt C++ Developer ACMer https://github.com/Linzecong
展开
-
2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛 E. Half-consecutive Numbers
题意:给你一个数列,数列通项为 1/2*(i)*(i+1) ,给你一个i,问你在i之后包括i,的第一个平方数是第几个。解题思路:我是直接查查出来的……然后里面有详细的解释……http://oeis.org/search?q=1%2C8%2C49%2C288&language=english&go=Search原创 2017-09-09 20:45:10 · 416 阅读 · 0 评论 -
HDU - 6235 Permutation (2017CCPC哈尔滨 思维)
PermutationProblem DescriptionA permutation p1,p2,...,pn of 1,2,...,n is called a lucky permutation if and only if pi≡0(mod|pi−pi−2|) for i=3...n.Now you need to construct a lucky perm原创 2017-11-12 19:51:45 · 646 阅读 · 0 评论 -
CodeForces - 1059C Sequence Transformation (思维)
Sequence Transformationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's call the following process a transformation of a se...原创 2018-10-06 11:35:01 · 640 阅读 · 0 评论