![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
打表
newhonor
可以不伟大,但不能卑微
展开
-
超级无敌简单题
http://acm.hdu.edu.cn/showproblem.php?pid=6463 思路:打表;这种题每个数一般会有循环节的,跑到一定次数不行就认为不是的... #include<algorithm> #include<set> #include<queue> #include<cmath> #include<cstring...原创 2019-05-10 10:50:09 · 284 阅读 · 0 评论 -
Maximum Multiple
http://acm.hdu.edu.cn/showproblem.php?pid=6298 思路:枚举几个n就发现规律,比例要么1-1-1;1-1-2; #include<algorithm> #include<set> #include<queue> #include<cmath> #include<cstring> #i...原创 2019-05-10 22:27:44 · 72 阅读 · 0 评论 -
The 2019 ACM-ICPC China Shannxi Provincial Programming Contest-L.Swap
https://nanti.jisuanke.com/t/39279 题意:给一个数组操作1:前后部分调换(n为偶数中间的不变);操作2: 偶数位置与前面位置的交换(n为奇数最后一个不变) 思路:打表找规律,n偶数时如果是4倍数就是4,不是就是数组长度;n为奇数时发现每个一个奇数是12,其余是2*n; #include<algorithm> #include<set>...原创 2019-05-28 16:08:03 · 281 阅读 · 0 评论