
找规律
李自行h
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #663 (Div. 2)C. Cyclic Permutations【找规律】
参考大佬的博客写的很好https://blog.youkuaiyun.com/qq_43627087/article/details/107927412?biz_id=102&utm_term=Codeforces%20Round%20#663%20Div.%202&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-1-107927412&spm=1018.2118.3001.4187 题.原创 2020-10-21 20:15:04 · 134 阅读 · 0 评论 -
ZOJ - 3939 The Lucky Week【简单方法】
题目 传送门 Sample Input 2 2016 4 11 2 2016 1 11 10 Sample Output 2016 7 11 2017 9 11 题意:t组数据,给出四个数,x,y,z,m,其中 x,y,z,分别是第一个幸运日的年月日,幸运日的定义为每月的1,11,或21,号且星期一,问第m个幸运日的年月日 注意第一个幸运日的范围为(1753 1.1~9999 12 .31)并不是要求的所有幸运日都在这个范围内 思路:暴力的话,1e9肯定超时,我们可以找下规律,我们发现从第一个幸原创 2020-10-06 21:10:06 · 124 阅读 · 0 评论