반응형
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
/*
 * Author : Jeonghun Cho
 * Date : December 2, 2019
 */
 
public class Main {
 
    public static void main(String[] args) throws IOException{
        // TODO Auto-generated method stub
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        
        while(true) {
            String[] str = br.readLine().split(" ");
            if(str[0].equals("0"&& str[1].equals("0")) {
                break;
            }
            bw.write(Integer.parseInt(str[0])+Integer.parseInt(str[1])+"\n");
            bw.flush();
        }
        br.close();
    }
}
Colored by Color Scripter
반응형

+ Recent posts