Type: Default 1000ms 512MiB

两数之和

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

给定两个整数 aa 和 bb,求它们的和。

输入格式

输入的第一行包含两个整数 aa 和 bb(−109≤a,b≤109-10^9 \le a,b \le 10^9)。

输出格式

输出一个整数 a+ba+b。

样例

2 3
5

参考实现

#include <bits/stdc++.h>
#define pb push_back
#define fi first
#define sc second
#define ll long long
using namespace std;

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	int a, b;
	cin >> a >> b;
	cout << a + b;
	return 0;
}

2026新生赛热身赛

Not Attended
Status
Done
Rule
XCPC
Problem
9
Start at
2026-8-29 10:45
End at
2026-9-13 10:45
Duration
360 hour(s)
Host
Partic.
50