본문 바로가기

알고리즘/백준

A + B - 3

#include <iostream>
using namespace std;

int main(void)
{
	int A=0, B=0, N=0;
	cin >> N;

	for (int i = 0; i < N; i++)
	{
		cin >> A;
		cin >> B;

		if (A <= 0 || 10 <= A)
			return 0;
		if (B <= 0 || 10 <= B)
			return 0;

		cout << A+B << '\n';
	}
	return 0;
}

'알고리즘 > 백준' 카테고리의 다른 글

빠른 A+B  (0) 2019.09.11
  (0) 2019.09.11
구구단  (0) 2019.09.10
세 수  (0) 2019.09.09
알람 시계  (0) 2019.09.09