摘要: 题目背景 模板题,无背景。 2019.12.12 更新数据,放宽时限,现在不再卡常了。 题目描述 给出项数为 nn 的整数数列 a_{1 \dots n}a1…n​。 定义函数 f(i)f(i) 代表数列中第 ii 个元素之后第一个大于 a_iai​ 的元素的下标,即 f(i)=\min_{i<j\ 阅读全文
posted @ 2021-03-11 19:48 sinEagle 阅读(102) 评论(0) 推荐(0) 编辑
摘要: A. Special Permutation time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given one 阅读全文
posted @ 2021-03-11 10:23 sinEagle 阅读(104) 评论(0) 推荐(0) 编辑