If((s+d)%2==0){ 判斷是不是整數解 x=(s+d)/2; if(x<=s) 判斷是不是正整數解 printf("%ld %ld\n",x,s-x); else printf("impossible\n"); } else printf("impossible\n");
別copy 我留了個陷阱hh