摘要:
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 阅读全文
摘要:
题目描述 小 X 想探究小道消息传播的速度有多快,于是他做了一个社会实验。 有 nn 个人,其中第 ii 个人的衣服上有一个数 i+1i+1。小 X 发现了一个规律:当一个衣服上的数为 ii 的人在某一天知道了一条信息,他会在第二天把这条信息告诉衣服上的数为 jj 的人,其中 \gcd(i,j)=1 阅读全文
摘要:
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 阅读全文
摘要:
给出了一个序列,你需要处理如下两种询问。 "C a b c"表示给[a, b]区间中的值全部增加c (-10000 ≤ c ≤ 10000)。 "Q a b" 询问[a, b]区间中所有值的和。 给出了一个序列,你需要处理如下两种询问。 "C a b c"表示给[a, b]区间中的值全部增加c (- 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文