随笔分类 -  算法基础—倍增/ST表

摘要:链接:https://ac.nowcoder.com/acm/contest/11260/E 来源:牛客网 题目描述 There are n cities in the volcano country, numbered from 1 to n. The city 1 is the capital 阅读全文
posted @ 2021-08-15 19:06 脂环 阅读(81) 评论(0) 推荐(2) 编辑
摘要:On a strip of land of length 𝑛n there are 𝑘k air conditioners: the 𝑖i-th air conditioner is placed in cell 𝑎𝑖ai (1≤𝑎𝑖≤𝑛1≤ai≤n). Two or more ai 阅读全文
posted @ 2021-07-11 11:51 脂环 阅读(154) 评论(0) 推荐(0) 编辑
摘要:题目描述 小A的工作不仅繁琐,更有苛刻的规定,要求小A每天早上在6:00之前到达公司,否则这个月工资清零。可是小A偏偏又有赖床的坏毛病。于是为了保住自己的工资,小A买了一个十分牛B的空间跑路器,每秒钟可以跑2^k千米(k是任意自然数)。当然,这个机器是用longint存的,所以总跑路长度不能超过ma 阅读全文
posted @ 2020-03-30 22:46 脂环 阅读(191) 评论(0) 推荐(0) 编辑
摘要:题目背景 题目描述: 每天,农夫 John 的N(1 <= N <= 50,000)头牛总是按同一序列排队. 有一天, John 决定让一些牛们玩一场飞盘比赛. 他准备找一群在对列中为置连续的牛来进行比赛. 但是为了避免水平悬殊,牛的身高不应该相差太大. John 准备了Q (1 <= Q <= 1 阅读全文
posted @ 2020-03-30 21:12 脂环 阅读(198) 评论(0) 推荐(0) 编辑
摘要:Advanced CPU Manufacturer (ACM) is one of the best CPU manufacturer in the world. Every day, they manufacture n CPU chips and sell them all over the w 阅读全文
posted @ 2020-03-30 20:11 脂环 阅读(156) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
主题色彩