
离线操作
lqybzx
123
展开
-
bzoj 3339: Rmq Problem
Description Input Output Sample Input 7 5 0 2 1 0 1 3 2 1 3 2 3 1 4 3 6 2 7 Sample Output 3 0 3 2 4 HINT 又是第一眼看出了第一步然后不想去想了。。 我们先暴力弄出以1为开头到位置原创 2014-12-02 21:25:15 · 1067 阅读 · 0 评论 -
bzoj 3585: mex
Description 有一个长度为n的数组{a1,a2,...,an}。m次询问,每次询问一个区间内最小没有出现过的自然数。 Input 第一行n,m。 第二行为n个数。 从第三行开始,每行一个询问l,r。 Output 一行一个数,表示每个询问的答案。 Sample Input 5 5 2 1 0 2 1 3 3原创 2014-12-02 22:49:15 · 1213 阅读 · 0 评论 -
bzoj 3563: DZY Loves Chinese
Description 神校XJ之学霸兮,Dzy皇考曰JC。 摄提贞于孟陬兮,惟庚寅Dzy以降。 纷Dzy既有此内美兮,又重之以修能。 遂降临于OI界,欲以神力而凌♂辱众生。 今Dzy有一魞歄图,其上有N座祭坛,又有M条膴蠁边。 时而Dzy狂WA而怒发冲冠,神力外溢,遂有K条膴蠁边灰飞烟灭。 而后俟其日A50题则又令其复原。(可视为立即复原) 然若有祭坛无法相互到达,Dz原创 2014-12-02 22:13:06 · 1659 阅读 · 0 评论 -
hdu 5869 Different GCD Subarray Query 2016ACM/ICPC大连赛区网络赛1002
Problem Description This is a simple problem. The teacher gives Bob a list of problems about GCD (Greatest Common Divisor). After studying some of them, Bob thinks that GCD is so interesting. One d原创 2016-09-16 19:12:56 · 586 阅读 · 0 评论 -
bzoj 4320: ShangHai2006 Homework
Description 1:在人物集合 S 中加入一个新的程序员,其代号为 X,保证 X 在当前集合中不存在。 2:在当前的人物集合中询问程序员的mod Y 最小的值。 (为什么统计这个?因为拯救 过世界的人太多了,只能取模) Input 第一行为用空格隔开的一个个正整数 N。 接下来有 N 行,若该行第一个字符为“A” ,则表示操作 1;若为“B”,原创 2016-10-09 11:52:05 · 382 阅读 · 0 评论 -
hdu 3303 Harmony Forever
Problem Description We believe that every inhabitant of this universe eventually will find a way to live together in harmony and peace; that trust, patience, kindness and loyalty will exist between原创 2016-12-21 18:32:53 · 547 阅读 · 0 评论 -
2017多校训练Contest5: 1001 Rikka with Candies hdu6085
Problem Description As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them: There are n children and m ki原创 2017-08-20 17:48:22 · 371 阅读 · 0 评论