求解一个C语言问题
问题:[b]Description
Input c,Output a and b that a + b = c
Input
a signed 32bit integer c
Output
Output just one pair of signed 32bit integers a and b.
Sample Input
17
Sample Output
14 3
Hint
This is a SPJ. For Sample input, You may also output "12 5" instead.
The signed 32bit integers range in [-2147483648, 2147483647].
我的解法
#include <stdio.h>
int main()
{
int signed a,b,c;
scanf("%d",&c);
a=(int)(c/3);
b=c-a;
printf("a=%d b=%d",a,b);
return(0);
}
为什么提交了之后一直是wrong answer T-T看不出哪里错了 请大家指教啊