반응형

풀이 : cin을 통해 a와 b를 입력받고 + 연산을 통해 합한 값을 출력하면 된다
코드
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int a,b;
cin >> a >> b;
cout << a+b;
return 0;
}반응형
'algorithm > 기초 코드' 카테고리의 다른 글
| [algorithm] 백준 9498번 시험 성적 (0) | 2025.10.12 |
|---|---|
| [algorithm] 백준 10869번 사칙연산 (0) | 2025.10.10 |
| [algorithm] 백준 10171번 고양이 (0) | 2025.10.10 |
| [algorithm] 백준 2557번 Hello World (0) | 2025.10.10 |
| [algorithm] 백준 10871번 x보다 작은수 (0) | 2025.10.10 |
