Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
142605 范照赫 A+B 输入输出练习III C++ Accepted 2 MS 276 KB 541 2026-01-11 14:42:17

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c[10000],i,d=0; for(int i=1;;i++){ cin>>a>>b; c[i]=a+b; d++; if(a==0&&b==0){ break; } } for(int i=1;i<d;i++){ cout<<c[i]<<endl; } return 0; }