摘要: "更好的阅读体验" Portal Portal1: "Luogu" Description 给定两个数$x$,$y$,与一个模数$Mod$。 拥有数$x$, 拥有数$y$。 第一个回合:$x = (x + y) \% Mod$ 第二个回合:$y = (x + y) \% Mod$ 第三个回合:$x 阅读全文
posted @ 2019-11-20 22:14 XiaoHuang666 阅读(223) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Luogu" Portal2: "LibreOJ" Description $S$城现有两座监狱,一共关押着$N$名罪犯,编号分别为$1 N$。他们之间的关系自然也极不和谐。很多罪犯之间甚至积怨已久,如果客观条件具备则随时可能爆发冲突。我们用“怨 阅读全文
posted @ 2019-11-13 21:06 XiaoHuang666 阅读(120) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Nowcoder" Description 超越学姐非常喜欢自己的名字,以至于英文字母她只喜欢$\textrm{"c"}$和$\textrm{"y"}$。因此超越学姐喜欢只含有$\textrm{"c"}$和$\textrm{"y"}$的字符串,且 阅读全文
posted @ 2019-10-22 22:38 XiaoHuang666 阅读(254) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Codeforces" Portal2: "Luogu" Description You are given circular array $a_0, a_1, \cdots, a_{n 1}$. There are two types of o 阅读全文
posted @ 2019-10-04 20:03 XiaoHuang666 阅读(172) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Luogu" Description 语文老师总是写错成绩,所以当她修改成绩的时候,总是累得不行。她总是要一遍遍地给某些同学增加分数,又要注意最低分是多少。你能帮帮她吗? Input 第一行有两个整数$n$,$p$,代表学生数与增加分数的次数。 阅读全文
posted @ 2019-10-02 17:10 XiaoHuang666 阅读(183) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Luogu" Portal2: "POJ" Description One cow from each of N farms $(1 \le N \le 1000)$ conveniently numbered $1 \cdots N$ is g 阅读全文
posted @ 2019-09-26 20:46 XiaoHuang666 阅读(123) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "POJ" Portal2: "Luogu" Description One cow from each of N farms $(1 \le N \le 1000)$ conveniently numbered $1 \cdots N$ is g 阅读全文
posted @ 2019-09-26 20:45 XiaoHuang666 阅读(130) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" 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 阅读(287) 评论(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 阅读(159) 评论(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 阅读(162) 评论(0) 推荐(0) 编辑