雕刻时光

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

2011年8月16日

摘要: 统计正方形个数 set做结构体要加:friend bool operator<(data a,data b) { if(a.x==b.x) return a.y>b.y; else return a.x>b.x; }枚举正方形的两个点 知道下面两个点寻找set中这两个点是否存在View Code #include<stdio.h>#include<string.h>#include<iostream>#include<set>using namespace std;struct data{ int x,y; friend boo 阅读全文

posted @ 2011-08-16 20:43 huhuuu 阅读(341) 评论(0) 推荐(0) 编辑