2012年5月25日
摘要: Received: The judge system has received your solution, usually you just need to wait a minute and your solution will be judged.Accepted (AC): OK! Your program is correct!Presentation Error (PE): Output Format Error. Your output format is not exactly the same as the judge's output, although your 阅读全文
posted @ 2012-05-25 21:49 有间博客 阅读(1376) 评论(0) 推荐(0) 编辑
摘要: 由求两个的最大公约数、最小公倍数推广到求N个数的最大公约数,最小公倍数。CODE:AC1#include<stdio.h>2#include<stdlib.h>3#include<string.h>45__int64gcd(__int64a,__int64b)6{7returnb==0?a:gcd(a,b);8}910intmain()11{12__int64n,m,a,b;13scanf("%I64d",&n);14while(n--)15{16scanf("%I64d",&m);17a=1;18wh 阅读全文
posted @ 2012-05-25 18:03 有间博客 阅读(251) 评论(0) 推荐(0) 编辑