結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー Charlotte8687Charlotte8687
提出日時 2018-12-03 10:57:47
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 205 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 2,185 ms
コンパイル使用メモリ 102,484 KB
実行使用メモリ 49,528 KB
最終ジャッジ日時 2023-09-13 21:07:23
合計ジャッジ時間 5,345 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
21,868 KB
testcase_01 AC 62 ms
21,780 KB
testcase_02 AC 62 ms
21,812 KB
testcase_03 AC 62 ms
21,804 KB
testcase_04 AC 62 ms
19,800 KB
testcase_05 AC 64 ms
23,800 KB
testcase_06 AC 71 ms
19,832 KB
testcase_07 AC 74 ms
23,008 KB
testcase_08 AC 93 ms
27,376 KB
testcase_09 AC 99 ms
29,472 KB
testcase_10 AC 173 ms
45,792 KB
testcase_11 AC 172 ms
46,028 KB
testcase_12 AC 177 ms
46,216 KB
testcase_13 AC 178 ms
46,440 KB
testcase_14 AC 180 ms
44,624 KB
testcase_15 AC 185 ms
46,844 KB
testcase_16 AC 205 ms
49,528 KB
testcase_17 AC 62 ms
21,796 KB
testcase_18 AC 62 ms
21,776 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

namespace StudyApp
{
    class Program
    {
        static void Main(string[] args)
        {
            int num = int.Parse(Console.ReadLine());
            string[] inputs = Console.ReadLine().Trim().Split(' ');

            var result = inputs.Select(data => Int64.Parse(data)).Sum();
            Console.WriteLine(result);
        }
    }
}
0