摘要: The hot summer came so quickly that Xiaoming and Xiaohong decided to buy a big and sweet watermelon. But they are two very strange people. They are ev 阅读全文
posted @ 2019-09-07 20:24 __MEET 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 题目描述 小 X 想探究小道消息传播的速度有多快,于是他做了一个社会实验。 有 nn 个人,其中第 ii 个人的衣服上有一个数 i+1i+1。小 X 发现了一个规律:当一个衣服上的数为 ii 的人在某一天知道了一条信息,他会在第二天把这条信息告诉衣服上的数为 jj 的人,其中 \gcd(i,j)=1 阅读全文
posted @ 2019-09-06 22:43 __MEET 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input本题目包含多组测试,请处理到文件结束。 在每个测试的第一行, 阅读全文
posted @ 2019-09-05 22:00 __MEET 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 给你一个长度为n的序列a[N] (1 ≤ N ≤ 50000),询问Q(1 ≤ Q ≤ 200000) 次,每次输出【L, R】区间最大值与最小值的差是多少。 so easy~ so easy~ so easy~ 给你一个长度为n的序列a[N] (1 ≤ N ≤ 50000),询问Q(1 ≤ Q ≤ 阅读全文
posted @ 2019-09-05 21:58 __MEET 阅读(243) 评论(0) 推荐(0) 编辑
摘要: In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic 阅读全文
posted @ 2019-09-05 21:52 __MEET 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 给出了一个序列,你需要处理如下两种询问。 "C a b c"表示给[a, b]区间中的值全部增加c (-10000 ≤ c ≤ 10000)。 "Q a b" 询问[a, b]区间中所有值的和。 给出了一个序列,你需要处理如下两种询问。 "C a b c"表示给[a, b]区间中的值全部增加c (- 阅读全文
posted @ 2019-09-05 21:50 __MEET 阅读(196) 评论(0) 推荐(0) 编辑
摘要: C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生 阅读全文
posted @ 2019-09-04 12:43 __MEET 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int main(){ int red,yellow,green,N,a,b,ans=0; cin>>red>>yellow>>green>>N; while(~scanf("%d%d",&a,&b)) if(a==0||a==1) ans+=b; else if(a==2) ans+=b+red; cout 阅读全文
posted @ 2019-09-03 23:09 __MEET 阅读(241) 评论(0) 推荐(0) 编辑
摘要: There are two types of burgers in your restaurant — hamburgers and chicken burgers! To assemble a hamburger you need two buns and a beef patty. To ass 阅读全文
posted @ 2019-09-02 22:43 __MEET 阅读(315) 评论(0) 推荐(0) 编辑
摘要: Polycarp analyzes the prices of the new berPhone. At his disposal are the prices for nn last days: a1,a2,…,ana1,a2,…,an, where aiai is the price of be 阅读全文
posted @ 2019-09-02 16:18 __MEET 阅读(340) 评论(0) 推荐(0) 编辑