Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

hwooo

BOJ (C/C++) 10953번: A+B - 6 본문

Study/Algorithm

BOJ (C/C++) 10953번: A+B - 6

hwooo 2022. 11. 24. 01:31

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

 

10953번: A+B - 6

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

www.acmicpc.net


코드

#include <stdio.h>
int main() {
	int n, a, b;
    
	scanf("%d", &n);
    
	for (int i = 0; i < n; i++) {
		scanf("%d,%d", &a, &b);
		printf("%d\n", a + b);
	}
    
	return 0;
}