結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー p_nixp_nix
提出日時 2018-01-23 16:15:09
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 196 ms / 3,000 ms
コード長 396 bytes
コンパイル時間 2,010 ms
コンパイル使用メモリ 101,556 KB
実行使用メモリ 30,564 KB
最終ジャッジ日時 2023-08-26 23:19:06
合計ジャッジ時間 5,359 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,544 KB
testcase_01 AC 58 ms
21,508 KB
testcase_02 AC 59 ms
21,600 KB
testcase_03 AC 57 ms
21,532 KB
testcase_04 AC 58 ms
21,420 KB
testcase_05 AC 59 ms
21,444 KB
testcase_06 AC 59 ms
21,492 KB
testcase_07 AC 63 ms
21,428 KB
testcase_08 AC 81 ms
25,548 KB
testcase_09 AC 99 ms
25,908 KB
testcase_10 AC 174 ms
30,436 KB
testcase_11 AC 178 ms
30,364 KB
testcase_12 AC 181 ms
28,400 KB
testcase_13 AC 184 ms
30,564 KB
testcase_14 AC 180 ms
26,556 KB
testcase_15 AC 185 ms
28,936 KB
testcase_16 AC 196 ms
28,972 KB
testcase_17 AC 59 ms
21,416 KB
testcase_18 AC 59 ms
21,484 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 prob9009
{
    class Program
    {
        static void Main(string[] args)
        {
            int c = int.Parse(Console.ReadLine());
            long[] a = new long[c];
            for (int i = 0; i < c; i++)
            {
                a[i] = long.Parse(Console.ReadLine());
            }
            Console.WriteLine(a.Sum());
        }
    }
}
0