8 条题解
- 1
信息
- ID
- 985
- 时间
- 1000ms
- 内存
- 32MiB
- 难度
- 3
- 标签
- 递交数
- 431
- 已通过
- 220
- 上传者
#include <iostream>
#include <stack>
#include <cmath>
#include <vector>
#include <string.h>
#include <queue>
#include <stdio.h>
#include <iomanip>
#include <cstdio>
#include <algorithm>
#define int long long
using namespace std;
const int N = 1e5 + 10;
const int INF = 0x3f3f3f3f;
signed main()
{
int a, b;
while(cin >> a >> b && a != 0 && b != 0)
{
cout << a + b << endl;
}
return 0;
}
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
const int N=1e7+10;
const int INF=0x3f3f3f3f;
int main()
{
int a=1,b=1;
while(a)
{
cin>>a>>b;
if(a==0 && b==0)
{
return 0;
}
cout<<a+b<<"\n";
}
}