#include<stdio.h>
int main()
{int a,b,c,d;
while(scanf("%d%d%d%d",&a,&b,&c,&d)==4)
{if(a+c==2*b) printf("%d%2d%2d%2d%2d\n",a,b,c,d,(b-a)+d);
if(a*c==b*b) printf("%d%2d%2d%2d%2d\n",a,b,c,d,(b/a)*d);
}
return 0;
}
為什麼我在Dev C上執行都沒錯,可是放上來就錯了?
錯誤訊息是
您的答案為: 1 2 4 612
正確答案為: 1 2 3 4 5