結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー _i1115_i1115
提出日時 2020-04-08 02:26:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 280 bytes
コンパイル時間 3,493 ms
コンパイル使用メモリ 98,912 KB
実行使用メモリ 50,388 KB
最終ジャッジ日時 2023-09-22 23:00:38
合計ジャッジ時間 5,145 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,732 KB
testcase_01 AC 58 ms
20,668 KB
testcase_02 AC 57 ms
20,832 KB
testcase_03 AC 59 ms
20,772 KB
testcase_04 AC 58 ms
20,820 KB
testcase_05 AC 59 ms
22,796 KB
testcase_06 AC 66 ms
22,852 KB
testcase_07 AC 71 ms
23,756 KB
testcase_08 AC 87 ms
28,432 KB
testcase_09 AC 92 ms
26,304 KB
testcase_10 AC 158 ms
40,688 KB
testcase_11 AC 162 ms
43,124 KB
testcase_12 AC 163 ms
45,124 KB
testcase_13 AC 167 ms
47,384 KB
testcase_14 AC 168 ms
45,544 KB
testcase_15 AC 167 ms
45,728 KB
testcase_16 AC 189 ms
50,388 KB
testcase_17 AC 58 ms
20,768 KB
testcase_18 AC 58 ms
20,708 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 ());
		
		string[] nums_str = Console.ReadLine ().Split (' ');
		ulong ans = 0;
		for (int i = 0; i < n; i++)
		{
			ans += ulong.Parse (nums_str[i]);
		}

		Console.WriteLine (ans);
	}
}
0