結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー p_nixp_nix
提出日時 2018-01-23 15:56:00
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 209 ms / 2,000 ms
コード長 328 bytes
コンパイル時間 2,136 ms
コンパイル使用メモリ 104,900 KB
実行使用メモリ 51,900 KB
最終ジャッジ日時 2023-08-26 23:18:48
合計ジャッジ時間 5,518 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
21,876 KB
testcase_01 AC 63 ms
21,952 KB
testcase_02 AC 65 ms
23,964 KB
testcase_03 AC 64 ms
23,932 KB
testcase_04 AC 63 ms
21,776 KB
testcase_05 AC 65 ms
21,964 KB
testcase_06 AC 72 ms
22,056 KB
testcase_07 AC 77 ms
25,044 KB
testcase_08 AC 95 ms
27,912 KB
testcase_09 AC 101 ms
30,384 KB
testcase_10 AC 183 ms
50,284 KB
testcase_11 AC 186 ms
48,796 KB
testcase_12 AC 189 ms
51,328 KB
testcase_13 AC 191 ms
51,900 KB
testcase_14 AC 192 ms
50,376 KB
testcase_15 AC 196 ms
50,988 KB
testcase_16 AC 209 ms
49,400 KB
testcase_17 AC 63 ms
21,896 KB
testcase_18 AC 63 ms
19,712 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 prob9008
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            long[] a = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
            Console.WriteLine(a.Sum());
        }
    }
}
0