結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
20,660 KB
testcase_01 AC 59 ms
20,584 KB
testcase_02 AC 58 ms
20,664 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 97 ms
26,436 KB
testcase_10 AC 175 ms
45,308 KB
testcase_11 AC 177 ms
46,032 KB
testcase_12 AC 180 ms
46,272 KB
testcase_13 AC 182 ms
48,984 KB
testcase_14 AC 185 ms
49,372 KB
testcase_15 AC 189 ms
47,772 KB
testcase_16 AC 200 ms
48,348 KB
testcase_17 AC 58 ms
20,580 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];
            long sum = 0;

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

            Console.WriteLine(sum);
        }
    }
}
0