結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー YukiYuki
提出日時 2020-12-19 22:19:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 175 ms / 2,000 ms
コード長 333 bytes
コンパイル時間 1,096 ms
コンパイル使用メモリ 109,572 KB
実行使用メモリ 54,108 KB
最終ジャッジ日時 2023-10-21 09:39:44
合計ジャッジ時間 3,403 ms
ジャッジサーバーID
(参考情報)
judge14 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
25,400 KB
testcase_01 AC 30 ms
25,400 KB
testcase_02 AC 30 ms
25,400 KB
testcase_03 AC 30 ms
25,400 KB
testcase_04 AC 31 ms
25,400 KB
testcase_05 AC 30 ms
25,404 KB
testcase_06 AC 36 ms
25,760 KB
testcase_07 AC 39 ms
26,688 KB
testcase_08 AC 58 ms
30,952 KB
testcase_09 AC 64 ms
31,404 KB
testcase_10 AC 148 ms
51,460 KB
testcase_11 AC 154 ms
52,036 KB
testcase_12 AC 152 ms
52,488 KB
testcase_13 AC 158 ms
53,072 KB
testcase_14 AC 159 ms
53,520 KB
testcase_15 AC 160 ms
54,108 KB
testcase_16 AC 175 ms
52,728 KB
testcase_17 AC 30 ms
25,400 KB
testcase_18 AC 30 ms
25,400 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 yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
            Int32 n = Int32.Parse(Console.ReadLine());
            Int64 a = Console.ReadLine().Split(' ').Select(s => Int64.Parse(s)).ToArray().Sum();
            Console.WriteLine(a);
        }
    }
}
0