『ベクジュン·アルゴリズム』ちび·ジョンミン

미리보기 방지

ベクジュン·オンライン·ジャージー / ちび·ジョンミン


11382

📎Link :

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


指紋表示


미리보기 방지












解答『かいとう』

コード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;


namespace boj
{
class Program
{
static void Main(string[] args)
{
string stringInput = Console.ReadLine();
string[] arrayInput = stringInput.Split(' ', StringSplitOptions.None);
long[] intResult = new long[3] { 0, 0, 0 };

for (int i = 0; i < 3; i++)
{
intResult[i] = System.Convert.ToInt64(arrayInput[i]);
}

long total = 0;
for (int i = 0; i < 3; i++)
{
total += intResult[i];
}

Console.WriteLine(total);
}
}
}

結果『けっか』


미리보기 방지









終わり