結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー _i1115_i1115
提出日時 2020-04-08 02:29:20
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 180 ms / 3,000 ms
コード長 233 bytes
コンパイル時間 1,908 ms
コンパイル使用メモリ 101,204 KB
実行使用メモリ 26,952 KB
最終ジャッジ日時 2023-09-22 23:06:20
合計ジャッジ時間 5,148 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,704 KB
testcase_01 AC 56 ms
22,808 KB
testcase_02 AC 55 ms
20,688 KB
testcase_03 AC 55 ms
18,744 KB
testcase_04 AC 56 ms
22,836 KB
testcase_05 AC 56 ms
20,636 KB
testcase_06 AC 57 ms
22,836 KB
testcase_07 AC 61 ms
20,796 KB
testcase_08 AC 78 ms
22,736 KB
testcase_09 AC 93 ms
24,788 KB
testcase_10 AC 167 ms
24,832 KB
testcase_11 AC 169 ms
26,872 KB
testcase_12 AC 171 ms
26,952 KB
testcase_13 AC 173 ms
26,940 KB
testcase_14 AC 170 ms
24,844 KB
testcase_15 AC 172 ms
24,736 KB
testcase_16 AC 180 ms
24,716 KB
testcase_17 AC 55 ms
20,696 KB
testcase_18 AC 55 ms
20,736 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
	static void Main ()
	{
		int n = int.Parse (Console.ReadLine ());
		
		ulong ans = 0;
		for (int i = 0; i < n; i++)
		{
			ans += ulong.Parse (Console.ReadLine ());
		}

		Console.WriteLine (ans);
	}
}
0