10950 - A + B - 3알고리즘/백준2023. 8. 16. 21:30
Table of Contents
1. 배경지식
-
2. 문제해결
테스트 케이스 T는 T만큼 반복하여 A, B를 입력받아 A,B를 더하여 출력한다.
3. 구현력
package boj;
import java.util.Scanner;
public class b10950 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for(int test_case=1; test_case<=T; test_case++) {
int a = sc.nextInt();
int b = sc.nextInt();
System.out.println(a+b);
}
}
}
728x90
'알고리즘 > 백준' 카테고리의 다른 글
25304 - 영수증 (0) | 2023.08.16 |
---|---|
8393 - 합 (0) | 2023.08.16 |
2480 - 주사위 세개 (0) | 2023.08.15 |
2525 - 오븐 시계 (0) | 2023.08.15 |
2884 - 알람 시계 (0) | 2023.08.15 |
@leegeonwoo :: geonwoo
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!