結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー nattoumarunattoumaru
提出日時 2018-02-06 18:18:30
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 612 bytes
コンパイル時間 1,327 ms
コンパイル使用メモリ 67,292 KB
実行使用メモリ 49,520 KB
最終ジャッジ日時 2023-09-25 19:48:26
合計ジャッジ時間 4,590 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
20,712 KB
testcase_01 AC 57 ms
20,744 KB
testcase_02 AC 58 ms
20,792 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 96 ms
26,772 KB
testcase_10 AC 173 ms
47,472 KB
testcase_11 AC 175 ms
45,956 KB
testcase_12 AC 176 ms
48,568 KB
testcase_13 AC 179 ms
47,052 KB
testcase_14 AC 182 ms
49,520 KB
testcase_15 AC 183 ms
48,100 KB
testcase_16 AC 198 ms
48,364 KB
testcase_17 AC 56 ms
20,800 KB
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace programPractice
{
    class Program
    {
        static void Main(string[] args)
        {
            int line1 = Int32.Parse(Console.ReadLine());
            var stArray = Console.ReadLine().Split();
            int[] iArray = new int[line1];
            int sum = 0;

            for (int i = 0; i < line1; i++)
            {
                iArray[i] = Int32.Parse(stArray[i]);
                sum += iArray[i];
            }

            Console.WriteLine(sum);
        }
    }
}
0