kZjPBD.jpg

随笔分类 -  动态规划——wqs 二分

摘要:题意翻译 Description 已知一个长度为n的序列a1,a2,…,an。 对于每个1<=i<=n,找到最小的非负整数p满足 对于任意的j, aj < = ai + p – sqrt(abs(i-j)) Input 第一行n,(1<=n<=500000) 下面每行一个整数,其中第i行是ai。(0 阅读全文
posted @ 2019-07-27 10:06 Through_The_Night 阅读(215) 评论(0) 推荐(0) 编辑
摘要:There are NN villagers (including the village chief) living in Number Village. Interestingly, all of their houses lie on a straight line. The house of 阅读全文
posted @ 2019-07-27 08:41 Through_The_Night 阅读(194) 评论(0) 推荐(0) 编辑
摘要:E. Gosha is hunting time limit per test 5 seconds memory limit per test 256 megabytes input standard input output standard output E. Gosha is hunting 阅读全文
posted @ 2019-07-25 10:01 Through_The_Night 阅读(179) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示