摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1108和1019感觉很类似,都是求最小公倍数的题目,可是1019题目上给的数据能够通过,可是老是WA,待解决。#includeint gcd(int a,int b){ int t,r; if(a<b) ... 阅读全文
posted @ 2014-11-06 19:52 sequenceaa 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2001注意输入时候的空格就可以了#include#includeint main(){ double x1,x2,y1,y2; while(scanf("%lf %lf %lf %lf",&x1,&y1,... 阅读全文
posted @ 2014-11-06 19:37 sequenceaa 阅读(226) 评论(0) 推荐(0) 编辑