上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 97 下一页
摘要: 【题目描述】 给出一个长为 n 的数列,以及 n 个操作,操作涉及区间开方,区间求和。 【输入格式】 第一行输入一个数字 n。 第二行输入 n 个数字,第 i 个数字为 ai,以空格隔开。 接下来输入 n 行询问,每行输入四个数字 opt、l、r... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(21) 评论(0) 推荐(0)
摘要: Problem Description A country named Berland has n cities. They are numbered with integers from 1 to n. City with index 1 is the... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(18) 评论(0) 推荐(0)
摘要: Problem Description Little time is left before Berland annual football championship. Therefore the coach of team "Losewille Ran... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(46) 评论(0) 推荐(0)
摘要: 【题目描述】 给出一个长为 n 的数列,以及 n 个操作,操作涉及区间加法,询问区间内小于某个值 x 的前驱(比其小的最大元素)。 【输入格式】 第一行输入一个数字 n。 第二行输入 n 个数字,第 i 个数字为 ai,以空格隔开。 接下来输入 ... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(26) 评论(0) 推荐(0)
摘要: 【题目描述】 给出一个长为 n 的数列,以及 n 个操作,操作涉及区间加法,询问区间内小于某个值 x 的元素个数 【输入格式】 第一行输入一个数字 n。 第二行输入 n 个数字,第 i 个数字为 ai,以空格隔开。 接下来输入 n 行询问,每行输... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(50) 评论(0) 推荐(0)
摘要: 【概述】 所谓分块,即对于一个长度为 n 的序列,设块的大小为 S,从序列的第一个元素起,每 S 个元素被分成一块,若剩余的元素不足 S 个,令他们组成一块。经过分块后的数组,称为块状数组,在块状数组的基础上加以扩展,即可得到块状链表。 在一个区间操作时,完整... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(31) 评论(0) 推荐(0)
摘要: Problem Description There are two decks of cards lying on the table in front of you, some cards in these decks lay face up, som... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(17) 评论(0) 推荐(0)
摘要: Problem Description Vasya should paint a fence in front of his own cottage. The fence is a sequence of nwooden boards arranged ... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(22) 评论(0) 推荐(0)
摘要: Problem Description In the autumn of this year, two Russian teams came into the group stage of the most prestigious football cl... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(0) 评论(0) 推荐(0)
摘要: Problem Description Overall there are m actors in Berland. Each actor has a personal identifier — an integer from 1 to m (disti... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(87) 评论(0) 推荐(0)
上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 97 下一页