結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー nattoumarunattoumaru
提出日時 2018-02-06 18:27:50
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 615 bytes
コンパイル時間 1,894 ms
コンパイル使用メモリ 60,836 KB
実行使用メモリ 51,180 KB
最終ジャッジ日時 2023-09-25 20:03:24
合計ジャッジ時間 5,268 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
18,656 KB
testcase_01 AC 57 ms
20,772 KB
testcase_02 AC 55 ms
22,760 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 91 ms
27,120 KB
testcase_10 AC 166 ms
44,964 KB
testcase_11 AC 169 ms
49,640 KB
testcase_12 AC 174 ms
50,160 KB
testcase_13 AC 177 ms
50,688 KB
testcase_14 AC 176 ms
51,180 KB
testcase_15 AC 179 ms
49,624 KB
testcase_16 AC 194 ms
50,312 KB
testcase_17 AC 55 ms
20,784 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();
            long[] iArray = new long[line1];
            long sum = 0;

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

            Console.WriteLine(sum);
        }
    }
}
0