結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ixTL255ixTL255
提出日時 2018-07-09 21:18:14
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 197 ms / 3,000 ms
コード長 282 bytes
コンパイル時間 3,426 ms
コンパイル使用メモリ 103,616 KB
実行使用メモリ 37,352 KB
最終ジャッジ日時 2023-09-23 03:14:39
合計ジャッジ時間 5,866 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
21,548 KB
testcase_01 AC 57 ms
21,496 KB
testcase_02 AC 57 ms
21,392 KB
testcase_03 AC 57 ms
21,476 KB
testcase_04 AC 57 ms
21,612 KB
testcase_05 AC 59 ms
21,384 KB
testcase_06 AC 59 ms
21,356 KB
testcase_07 AC 63 ms
21,496 KB
testcase_08 AC 81 ms
24,028 KB
testcase_09 AC 98 ms
24,988 KB
testcase_10 AC 179 ms
32,348 KB
testcase_11 AC 182 ms
32,384 KB
testcase_12 AC 187 ms
32,548 KB
testcase_13 AC 190 ms
34,720 KB
testcase_14 AC 186 ms
32,920 KB
testcase_15 AC 188 ms
32,708 KB
testcase_16 AC 197 ms
37,352 KB
testcase_17 AC 57 ms
21,316 KB
testcase_18 AC 58 ms
23,420 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;

public class Yuki9009
{
	public static void Main()
	{
		Console.ReadLine();
		var a = new List<long>();
		string s;
		while((s = Console.ReadLine()) != null) a.Add(long.Parse(s));
		Console.WriteLine(a.Sum());
	}
}
0