雕刻时光

just do it……nothing impossible
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年2月5日

摘要: 查询某个数字第N次出现在数列的位置mapView Code #include<stdio.h>#include<map>#include<string.h>#include<iostream>using namespace std;int mhash[1000099];struct data{ int x,y; friend bool operator <(data a,data b){//用map一定要写,不然会出错 if(a.y==b.y) return a.x<b.x; else return a.y<b.y;... 阅读全文

posted @ 2013-02-05 22:27 huhuuu 阅读(249) 评论(0) 推荐(0) 编辑

摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=497&page=show_problem&problem=3146STL的使用,同时注意出栈出队列是的 empty判断View Code #include<iostream>#include<queue>#include<stack>#include<stdio.h>using namespace std;struct data { int v; int k; 阅读全文

posted @ 2013-02-05 20:54 huhuuu 阅读(434) 评论(0) 推荐(0) 编辑