杭电acm1002为什么老出错

#include

int main(void)
{
int T = 0, a = 0, count_a = 0, count_b = 0;
long long A[1000] = { 0 }, B[1000] = { 0 }, SUM[1000] = { 0 };

scanf("%d", &T);

while (T > 0)
{
    a++;
    scanf("%lld %lld", &A[a], &B[a]);
    SUM[a] = A[a] + B[a];

    T--;
}
for (T = 1; T <= a; T++)
{
    printf("Case %d:\n%lld + %lld = %lld\n\n", T, A[T], B[T], SUM[T]);
}

}
为什么不能这么做??每次提交显示wrong answer!why?

查看全部
u014632633
Berumottox
2015/08/05 12:56
  • 杭电
  • acm
  • 点赞
  • 收藏
  • 回答
    私信

1个回复