杭电2504题为什么WA?又见GCDTime Limit:1000/1000 MS (Java/Others) Memory Limit:32768/32768 K (Java/Others)Total Submission(s):4020 Accepted Submission(s):1632Problem Description有三个正整数a,b,c(0
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/28 22:01:00
杭电2504题为什么WA?又见GCDTime Limit:1000/1000 MS (Java/Others) Memory Limit:32768/32768 K (Java/Others)Total Submission(s):4020 Accepted Submission(s):1632Problem Description有三个正整数a,b,c(0
杭电2504题为什么WA?
又见GCD
Time Limit:1000/1000 MS (Java/Others) Memory Limit:32768/32768 K (Java/Others)
Total Submission(s):4020 Accepted Submission(s):1632
Problem Description
有三个正整数a,b,c(0
杭电2504题为什么WA?又见GCDTime Limit:1000/1000 MS (Java/Others) Memory Limit:32768/32768 K (Java/Others)Total Submission(s):4020 Accepted Submission(s):1632Problem Description有三个正整数a,b,c(0
#include
main()
{
int ri,repeat;
int i,a,b,c;
scanf("%d",&repeat);
for(ri=1;rix)
{
printf("%d\n",c);
break;
}
}
}
}
return 0;
}
/* 参考程序 2*/
#include
// 欧几里得求最大公约数算法
int gcd(int a,int b)
{
if(a