나의 브을로오그으

[c++] 1001번 : A-B 본문

알고리즘/BaekJoon

[c++] 1001번 : A-B

__jhp_+ 2022. 3. 10. 10:25

 

https://www.acmicpc.net/problem/1001

 

1001번: A-B

두 정수 A와 B를 입력받은 다음, A-B를 출력하는 프로그램을 작성하시오.

www.acmicpc.net

#include <iostream>
using namespace std;
int problem_1001()
{
	ios::sync_with_stdio(false);
	cin.tie(NULL);

	int A;
	int B;
	cin >> A >> B;
	cout << A - B << '\n';

	return 0;
}

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

[c++] 1152번 : 단어의 개수  (0) 2022.03.10
[c++] 1008번 : A/B  (0) 2022.03.10
[c++] 2558 : A+B-2  (0) 2022.03.09
[c++] 1000번 : A+B  (0) 2022.03.09
1018번. 체스판 다시 칠하기[C#]  (0) 2022.01.27