結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー poritporit
提出日時 2017-08-13 21:25:09
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 202 ms / 3,000 ms
コード長 539 bytes
コンパイル時間 2,157 ms
コンパイル使用メモリ 106,416 KB
実行使用メモリ 34,864 KB
最終ジャッジ日時 2023-08-26 17:18:50
合計ジャッジ時間 5,374 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,552 KB
testcase_01 AC 60 ms
21,464 KB
testcase_02 AC 60 ms
21,464 KB
testcase_03 AC 59 ms
21,644 KB
testcase_04 AC 59 ms
21,556 KB
testcase_05 AC 60 ms
21,476 KB
testcase_06 AC 61 ms
21,572 KB
testcase_07 AC 65 ms
21,568 KB
testcase_08 AC 83 ms
24,200 KB
testcase_09 AC 101 ms
29,108 KB
testcase_10 AC 180 ms
30,408 KB
testcase_11 AC 184 ms
34,580 KB
testcase_12 AC 186 ms
32,672 KB
testcase_13 AC 189 ms
32,732 KB
testcase_14 AC 185 ms
32,824 KB
testcase_15 AC 188 ms
34,864 KB
testcase_16 AC 202 ms
33,324 KB
testcase_17 AC 59 ms
21,544 KB
testcase_18 AC 59 ms
19,612 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 ConsoleApp13
{
    class Program
    {
        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());
            Console.ReadLine();


        }
    }
}
0