結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー outoforderoutoforder
提出日時 2017-07-21 23:14:37
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 191 ms / 3,000 ms
コード長 507 bytes
コンパイル時間 1,897 ms
コンパイル使用メモリ 104,484 KB
実行使用メモリ 34,760 KB
最終ジャッジ日時 2023-08-26 17:15:21
合計ジャッジ時間 4,960 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
23,488 KB
testcase_01 AC 55 ms
23,576 KB
testcase_02 AC 55 ms
21,552 KB
testcase_03 AC 54 ms
21,464 KB
testcase_04 AC 55 ms
21,468 KB
testcase_05 AC 55 ms
19,508 KB
testcase_06 AC 57 ms
21,540 KB
testcase_07 AC 60 ms
21,476 KB
testcase_08 AC 78 ms
24,088 KB
testcase_09 AC 96 ms
27,012 KB
testcase_10 AC 174 ms
32,520 KB
testcase_11 AC 179 ms
34,760 KB
testcase_12 AC 179 ms
32,592 KB
testcase_13 AC 183 ms
32,684 KB
testcase_14 AC 179 ms
32,856 KB
testcase_15 AC 181 ms
32,912 KB
testcase_16 AC 191 ms
33,400 KB
testcase_17 AC 55 ms
23,628 KB
testcase_18 AC 54 ms
21,476 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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace No9009
{
    public class Program
    {
        public static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            List<long> list = new List<long>();

            for(int i=0; i<n; i++)
            {
                list.Add(long.Parse(Console.ReadLine()));
            }

            Console.WriteLine(list.Sum());
        }
    }
}
0