hdu 2028 Lowest Common Multiple Plus
摘要:
一道很简单的题,由于自己没有理解清题意,而屡次wrong answer...悲剧。。审题啊审题。。题的思路是,先求两个数的最小公倍数,再把求的数与接下来的一个数一起求最小公倍数...依次下去,直到最后一个....#include<stdio.h>#include<stdlib.h>#include<string.h>__int64 fun(__int64 x,__int64 y){ __int64 temp; if(x<y) { temp=x; x=y; y=temp; } __int64 r,p; p=x*y; while(y) { r=x%y; x 阅读全文
posted @ 2011-03-30 23:54 more think, more gains 阅读(228) 评论(0) 推荐(0)