摘要:
#include<stdio.h>long long a,b;long long up(long long a,long long b){ long long t; if(a==0) return b; while(b!=0) { t=b;b=a%b;a=t; }//求最大公约数; return a;}int main(){ while(scanf("%lld%lld",&a,&b)!=EOF) { if(a==0&&b==0) break; printf("%lld\n",a*b/up(a,b)/up(a,b 阅读全文
posted @ 2012-08-29 17:28
尔滨之夏
阅读(319)
评论(0)
推荐(0)

浙公网安备 33010602011771号