結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー p_nixp_nix
提出日時 2022-01-21 22:43:43
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 205 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 3,528 ms
コンパイル使用メモリ 104,308 KB
実行使用メモリ 49,468 KB
最終ジャッジ日時 2023-08-17 07:04:01
合計ジャッジ時間 5,257 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
21,796 KB
testcase_01 AC 62 ms
21,812 KB
testcase_02 AC 62 ms
21,952 KB
testcase_03 AC 62 ms
21,820 KB
testcase_04 AC 62 ms
21,872 KB
testcase_05 AC 63 ms
19,852 KB
testcase_06 AC 70 ms
19,952 KB
testcase_07 AC 74 ms
22,804 KB
testcase_08 AC 92 ms
27,360 KB
testcase_09 AC 99 ms
27,416 KB
testcase_10 AC 174 ms
45,940 KB
testcase_11 AC 174 ms
43,992 KB
testcase_12 AC 175 ms
44,176 KB
testcase_13 AC 177 ms
44,760 KB
testcase_14 AC 180 ms
44,592 KB
testcase_15 AC 182 ms
44,768 KB
testcase_16 AC 205 ms
49,468 KB
testcase_17 AC 62 ms
21,808 KB
testcase_18 AC 62 ms
21,832 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 Yukicode
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            long a = Console.ReadLine().Split(' ').Select(x=>long.Parse(x)).Sum();
            Console.WriteLine(a);
        }
    }
}
0