摘要: 注意处理溢出#include#include#include#includeusing namespace std;long long n;long long a[60][2];int k;int fun(long long y,int x){ long long cnt=0,cur=1; ... 阅读全文
posted @ 2014-08-21 17:33 JarvisLau 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;struct Point{ double x,y; Point(double x=0,double y=0):x(x),y(y){}};typedef Point Ve... 阅读全文
posted @ 2014-08-21 14:00 JarvisLau 阅读(367) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;struct Point{ int x,y; Point(int x=0,int y=0):x(x),y(y){}};typedef Point Vector;bool... 阅读全文
posted @ 2014-08-21 13:58 JarvisLau 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int gcd(int a,int b){ return a%b==0?b:gcd(b,a%b);}int main(){ int x1,x2,y1,y2; wh... 阅读全文
posted @ 2014-08-21 12:25 JarvisLau 阅读(210) 评论(0) 推荐(0) 编辑