摘要: 描述 The cows have reconstructed Farmer John's farm, with its N barns (1 <= N <= 150, number 1..N) after the terrible earthquake last May. The cows didn 阅读全文
posted @ 2019-10-08 22:17 Dorom 阅读(159) 评论(0) 推荐(0)
摘要: 描述 Given a sequence, we define the seqence's value equals the difference between the largest element and the smallest element in the sequence. As an e 阅读全文
posted @ 2019-10-08 13:05 Dorom 阅读(134) 评论(0) 推荐(0)
摘要: 题意: Alice are given an array A[1..N] with N numbers.Now Alice want to build an array B by a parameter K as following rules:Initially, the array B is e 阅读全文
posted @ 2019-10-07 20:15 Dorom 阅读(355) 评论(0) 推荐(0)
摘要: #include #include #include #define LL long long #define ULL unsigned long long using namespace std; const int MAXN=100010; //以下为倍增算法求后缀数组 int wa[MAXN],wb[MAXN],wv[MAXN],Ws[MAXN]; int cmp(int *r... 阅读全文
posted @ 2019-07-02 18:15 Dorom 阅读(222) 评论(0) 推荐(0)
摘要: Description 小花梨得到了一个长度为𝑛的数组𝑎,现在要对它进行三种操作: ⚫ 1 𝑙 𝑟 对所有的𝑖 ∈ [𝑙, 𝑟], 𝑎[𝑖] = 𝑎[𝑖] ∗ 𝑚𝑖𝑛𝑝𝑟𝑖𝑚𝑒(𝑎[𝑖]) ⚫ 2 𝑙 𝑟 对所有的𝑖 阅读全文
posted @ 2019-05-19 22:42 Dorom 阅读(260) 评论(0) 推荐(0)
摘要: Problem Description Polar Bear Pitching helps you crystallize your message. The stage could not be any cooler, and we mean literally: a hole cut throu 阅读全文
posted @ 2019-04-16 20:38 Dorom 阅读(350) 评论(0) 推荐(0)
摘要: 题目描述 小象来到了百特国旅游。百特国有 nn 所城市,这些城市围成了一个圈。小象按照顺时针给这些城市从 11 到 nn 编号,其中 11 号城市是他最先到达的城市。 小象患有选择困难症。他在旅游之前并没有制定合理的旅游计划,而是决定用一个随机策略来访问这些城市。 小象共有 mm 天的旅游时间。在第 阅读全文
posted @ 2019-04-03 21:57 Dorom 阅读(226) 评论(0) 推荐(0)
摘要: A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time 阅读全文
posted @ 2019-04-03 21:42 Dorom 阅读(327) 评论(0) 推荐(0)
摘要: Now I think you have got an AC in Ignatius.L's "Max Sum" problem. To be a brave ACMer, we always challenge ourselves to more difficult problems. Now y 阅读全文
posted @ 2019-04-02 09:26 Dorom 阅读(208) 评论(0) 推荐(0)
摘要: 描述 Farmer John has three milking buckets of capacity A, B, and C liters. Each of the numbers A, B, and C is an integer from 1 through 20, inclusive. I 阅读全文
posted @ 2019-02-15 22:23 Dorom 阅读(375) 评论(0) 推荐(0)