摘要: 刘汝佳新书--训练指南这是一道用STL解决的题,STL是神奇啊。题意:给出一组数组,求v从左到右第K次出现的下标。分析:因为数组有10^6规模,查询也有10^6规模,若是只用数组的话,肯定存储不了。。// File Name: 11991.cpp// Author: zlbing// Created Time: 2013/3/6 14:59:29#include<iostream>#include<string>#include<algorithm>#include<cstdlib>#include<cstdio>#include&l 阅读全文
posted @ 2013-03-06 15:22 z.arbitrary 阅读(184) 评论(0) 推荐(0) 编辑