[백준] JAVA/입출력과 사칙연산

[백준] JAVA 18108: 1998년생인 내가 태국에서는 2541년생?!

코딩하는곰곰 2022. 2. 4. 20:17

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


Solution:

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class Main {	
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int year = Integer.parseInt(br.readLine());
		System.out.print(year-543);
		br.close();
	}
}