随笔分类 -  6-3-数据结构-矩阵快速幂

摘要:Recursive sequence Farmer John likes to play mathematics games with his N cows. Recently, they are attracted by recursive sequences. In each turn, the 阅读全文
posted @ 2018-09-23 16:52 yzm10 阅读(238) 评论(0) 推荐(0)
摘要:233 Matrix In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 ... in the same meaning. And here i 阅读全文
posted @ 2018-09-06 22:12 yzm10 阅读(299) 评论(0) 推荐(0)
摘要:Best Solver The so-called best problem solver can easily solve this problem, with his/her childhood sweetheart. It is known that y=(5+26–√)1+2xy=(5+26 阅读全文
posted @ 2018-08-31 16:52 yzm10 阅读(293) 评论(0) 推荐(0)
摘要:Sequence Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1731 Accepted Submission(s): 656 Probl 阅读全文
posted @ 2018-08-14 23:09 yzm10 阅读(305) 评论(0) 推荐(0)
摘要:Covering Covering Bob's school has a big playground, boys and girls always play games here after school. To protect boys and girls from getting hurt w 阅读全文
posted @ 2018-07-15 16:22 yzm10 阅读(447) 评论(0) 推荐(1)
摘要:P1349 广义斐波那契数列 https://www.luogu.org/problemnew/show/P1349 题目描述 广义的斐波那契数列是指形如an=p*an-1+q*an-2的数列。今给定数列的两系数p和q,以及数列的最前两项a1和a2,另给出两个整数n和m,试求数列的第n项an除以m的 阅读全文
posted @ 2018-02-22 03:07 yzm10 阅读(417) 评论(0) 推荐(0)