結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー iwkjoseciwkjosec
提出日時 2018-02-22 03:31:06
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 155 ms / 3,000 ms
コード長 295 bytes
コンパイル時間 970 ms
コンパイル使用メモリ 105,660 KB
実行使用メモリ 27,984 KB
最終ジャッジ日時 2023-10-22 00:41:38
合計ジャッジ時間 3,346 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
23,884 KB
testcase_01 AC 23 ms
23,884 KB
testcase_02 AC 23 ms
23,884 KB
testcase_03 AC 24 ms
23,884 KB
testcase_04 AC 23 ms
23,884 KB
testcase_05 AC 23 ms
23,876 KB
testcase_06 AC 23 ms
23,876 KB
testcase_07 AC 28 ms
23,876 KB
testcase_08 AC 45 ms
25,924 KB
testcase_09 AC 64 ms
27,972 KB
testcase_10 AC 137 ms
27,972 KB
testcase_11 AC 141 ms
27,972 KB
testcase_12 AC 142 ms
27,972 KB
testcase_13 AC 146 ms
27,972 KB
testcase_14 AC 143 ms
27,972 KB
testcase_15 AC 146 ms
27,972 KB
testcase_16 AC 155 ms
27,984 KB
testcase_17 AC 23 ms
23,884 KB
testcase_18 AC 23 ms
23,884 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 static System.Console;

class Program
{
    static void Main()
    {
        var N = int.Parse(ReadLine());
        var s = 0L;
        for (int i = 0; i < N; i++) s += long.Parse(ReadLine());
        WriteLine(s);
    }
}
0