早教吧 育儿知识 作业答案 考试题库 百科 知识分享

但是我写的就是wronganswer.Ihaveaverysimpleproblemforyou.GiventwointegersAandB,yourjobistocalculatetheSumofA+B.InputThefirstlineoftheinputcontainsanintegerT(1line;while((line--)&&cin>>A>>B){cout

题目详情
但是我写的就是wrong answer.
I have a very simple problem for you.Given two integers A and B,your job is to calculate the Sum of A + B.
Input
The first line of the input contains an integer T(1line;
while((line--)&&cin>>A>>B)
{
cout
▼优质解答
答案和解析
#include
#include
using namespace std;
#define max 1010
int main()
{
int line,a[max]={0},b[max]={0},c[max]={0},l1,l2,l3,i,j=1,flag;
char A[max],B[max];
cin>>line;
while((line--)&&cin>>A>>B)
{
cout