import java.util.Scanner;
public class Main10952 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(true){
int A = sc.nextInt();
int B = sc.nextInt();
if(A ==0 && B ==0 ){
break;
}
System.out.println(A+B);
}
}
}
'휴지통 > 알고리즘 & 자료구조' 카테고리의 다른 글
동적계획법/분할정복 (0) | 2021.07.05 |
---|---|
백준 1100 (0) | 2021.07.04 |
백준 10951 (0) | 2021.07.03 |
재귀 호출(Recursive Call) (0) | 2021.07.03 |
삽입 정렬 (Insertion Sort) (0) | 2021.07.03 |