Berumottox
2015-08-05 12:56
采纳率: 54.5%
浏览 1.7k

杭电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?

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题