人生有信仰 数据有梯度 暴力不爆零


摘要: 3585: mex Description 有一个长度为n的数组{a1,a2,...,an}。m次询问,每次询问一个区间内最小没有出现过的自然数。 有一个长度为n的数组{a1,a2,...,an}。m次询问,每次询问一个区间内最小没有出现过的自然数。 Input 第一行n,m。 第二行为n个数。 从 阅读全文
posted @ 2017-04-27 20:18 lkhll 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 2483: Pku2279 Mr. Young's Picture Permutations Description Mr. Young wishes to take a picture of his class. The students will stand in rows with each 阅读全文
posted @ 2017-04-27 16:19 lkhll 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 3940: [Usaco2015 Feb]Censoring Description Farmer John has purchased a subscription to Good Hooveskeeping magazine for his cows, so they have plenty o 阅读全文
posted @ 2017-04-27 15:58 lkhll 阅读(368) 评论(0) 推荐(0) 编辑