[C#] 백준 18108번 : 1998년생인 내가 태국에서는 2541년생?!
using System;
class Program
{
static void Main(string[] args)
{
string year = Console.ReadLine();
int a = int.Parse(year);
Console.WriteLine(a - 543);
}
}
반응형
'백준 > C#' 카테고리의 다른 글
[C#] 백준 2588번 : 곱셈 (0) | 2025.01.22 |
---|---|
[C#] 백준 10430번 : 나머지 (0) | 2025.01.21 |
[C#] 백준 10926번 : ??! (0) | 2025.01.20 |
[C#] 백준 10869번 : 사칙연산 (0) | 2025.01.20 |
[C#] 백준 1008번 : A/B (0) | 2025.01.20 |