摘要: "更好的阅读体验" Portal Portal1: "Luogu" Description 广义的斐波那契数列是指形如$an=p \times a_{n 1}+q \times a_{n 2}$的数列。今给定数列的两系数$p$和$q$,以及数列的最前两项$a_1$和$a_2$,另给出两个整数$n$和 阅读全文
posted @ 2019-09-23 20:22 XiaoHuang666 阅读(294) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Codeforces" Portal2: "Luogu" Description The numbers of all offices in the new building of the Tax Office of IT City will h 阅读全文
posted @ 2019-09-23 20:21 XiaoHuang666 阅读(164) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Luogu" Description 给你一个序列$a$ 每次两个操作: 1. 修改$x$位置的值为$y$; 2. 查询区间$[l, r]$是否可以重排为值域上连续的一段。 Input 第一行两个数$n, m$; 第二行$n$个数表示$a[i]$ 阅读全文
posted @ 2019-09-23 20:20 XiaoHuang666 阅读(166) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Codeforces" Portal2: "Luogu" Description Recently a Golden Circle of Beetlovers was found in Byteland. It is a circle route 阅读全文
posted @ 2019-09-23 20:19 XiaoHuang666 阅读(307) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Codeforces" Portal2: "Luogu" Description Recently Lynyrd and Skynyrd went to a shop where Lynyrd bought a permutation $p$ o 阅读全文
posted @ 2019-09-23 20:19 XiaoHuang666 阅读(247) 评论(0) 推荐(0) 编辑