-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQ10824.java
More file actions
21 lines (18 loc) ยท 826 Bytes
/
Q10824.java
File metadata and controls
21 lines (18 loc) ยท 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* Date: 2018. 07. 09.
* URL: https://www.acmicpc.net/problem/10824
* Title: ๋ค ์
* Problem: ๋ค ์์ฐ์ A, B, C, D๊ฐ ์ฃผ์ด์ง๋ค. ์ด ๋, A์ B๋ฅผ ๋ถ์ธ ์์ C์ D๋ฅผ ๋ถ์ธ ์์ ํฉ์ ๊ตฌํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ์์ค.
* ๋ ์ A์ B๋ฅผ ํฉ์น๋ ๊ฒ์ A์ ๋ค์ B๋ฅผ ๋ถ์ด๋ ๊ฒ์ ์๋ฏธํ๋ค. ์ฆ, 20๊ณผ 30์ ๋ถ์ด๋ฉด 2030์ด ๋๋ค.
*/
package io.inhyuck.io;
import java.io.*;
public class Q10824 {
public static void main(String args[]) throws IOException{
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
String[] numbers = bufferedReader.readLine().split(" ");
String a = numbers[0] + numbers[1];
String b = numbers[2] + numbers[3];
System.out.println(Long.valueOf(a) + Long.valueOf(b));
}
}