結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー kmtrc130kmtrc130
提出日時 2017-06-07 14:07:09
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 239 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 894 ms
コンパイル使用メモリ 109,740 KB
実行使用メモリ 57,756 KB
最終ジャッジ日時 2023-10-23 18:57:21
合計ジャッジ時間 3,824 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
25,592 KB
testcase_01 AC 30 ms
25,592 KB
testcase_02 AC 30 ms
25,592 KB
testcase_03 AC 30 ms
25,588 KB
testcase_04 AC 30 ms
25,588 KB
testcase_05 AC 31 ms
25,592 KB
testcase_06 AC 36 ms
25,896 KB
testcase_07 AC 42 ms
26,900 KB
testcase_08 AC 73 ms
31,556 KB
testcase_09 AC 83 ms
32,380 KB
testcase_10 AC 197 ms
54,844 KB
testcase_11 AC 203 ms
55,372 KB
testcase_12 AC 204 ms
55,900 KB
testcase_13 AC 210 ms
56,564 KB
testcase_14 AC 213 ms
57,088 KB
testcase_15 AC 218 ms
57,756 KB
testcase_16 AC 239 ms
56,580 KB
testcase_17 AC 31 ms
25,592 KB
testcase_18 AC 31 ms
25,588 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        int N = int.Parse(Console.ReadLine());
        decimal[] A = Console.ReadLine().Split(' ').Select(s => decimal.Parse(s)).ToArray();
        Console.WriteLine(A.Sum());
    }
}
0