結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー curryudon08curryudon08
提出日時 2020-06-27 01:09:25
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 184 ms / 3,000 ms
コード長 343 bytes
コンパイル時間 2,583 ms
コンパイル使用メモリ 95,428 KB
実行使用メモリ 24,884 KB
最終ジャッジ日時 2023-09-18 13:25:31
合計ジャッジ時間 6,055 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,588 KB
testcase_01 AC 57 ms
20,688 KB
testcase_02 AC 58 ms
20,608 KB
testcase_03 AC 58 ms
20,660 KB
testcase_04 AC 58 ms
20,744 KB
testcase_05 AC 59 ms
20,756 KB
testcase_06 AC 60 ms
22,776 KB
testcase_07 AC 63 ms
20,640 KB
testcase_08 AC 78 ms
22,648 KB
testcase_09 AC 95 ms
24,840 KB
testcase_10 AC 167 ms
24,796 KB
testcase_11 AC 171 ms
24,740 KB
testcase_12 AC 172 ms
24,884 KB
testcase_13 AC 177 ms
18,556 KB
testcase_14 AC 173 ms
18,624 KB
testcase_15 AC 176 ms
18,680 KB
testcase_16 AC 184 ms
18,660 KB
testcase_17 AC 56 ms
14,652 KB
testcase_18 AC 56 ms
14,560 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace _9009
{
    class Program
    {
        static void Main(string[] args)
        {
            var n = int.Parse(Console.ReadLine());

            var t = 0L;
            for(var i = 0; i < n; i++){
                t += long.Parse(Console.ReadLine());
            }

            Console.WriteLine(t);
        }
    }
}
0