摘要: 题目:http://acm.pku.edu.cn/JudgeOnline/problem?id=3618注意没有距离原点等长的两点。abs()用的极妙;先前我的代码写了146行,自己都受不了了,而且提交还是错的,郁闷;后来看了http://ren.javaeye.com/blog/344094 的代码:眼前一亮,没有我之前那么多繁杂的判断。#include<stdio.h>#include<math.h>#include<algorithm>using namespace std;bool cmp(int a, int b){ return abs(a) & 阅读全文
posted @ 2010-04-18 20:05 SubmarineX 阅读(398) 评论(0) 推荐(0) 编辑