미리보기 방지

[ベクジュン·アルゴリズム] 1998年生まれの私がタイでは2541年


18108


指紋表示

📎Link :

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

使用言語:C#(.NET)

アルゴリズム:

  • 数学
  • 四則演算
미리보기 방지












解答『かいとう』


コード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}
}
}

結果『けっか』


テスト入力:

1
2
D:\■■■■_■■■\■■■■\pihne-■FFF> csc.exe 18108.cs
2541

テスト入力:

1
2
D:\■■■■_■■■\■■■■\pihne-■FFF> csc.exe 18108.cs
1998










終わり