
백준 온라인 저지 / 18108 1998년생인 내가 태국에서는 2541년생?!
https://www.acmicpc.net/problem/18108
사용언어 : C# (.NET)
알고리즘 :

□ 문제 정리
- 불기, 서기 차이 확인해서 : int diff = 544 – 1
- 읽은 걸 : Console.ReadLine()
- 숫자로 변환하고 : int.Parse()
- 차이 만큼 빼서 : – diff
- 출력한다 : Console.WriteLine()
□코드 작성(해답지)
using System;
using System.Collections.Generic;
using System.Linq;
namespace boj
{
class Program
{
static void Main(string[] args)
{
int y = int.Parse(Console.ReadLine());
// 입력받은 년도에 543을 제외 하고 출력
Console.WriteLine(y-543);
}
}
}