結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー TaK7907TaK7907
提出日時 2017-10-06 06:19:01
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 359 bytes
コンパイル時間 1,997 ms
コンパイル使用メモリ 103,680 KB
実行使用メモリ 46,592 KB
最終ジャッジ日時 2024-04-28 10:15:48
合計ジャッジ時間 3,018 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
18,560 KB
testcase_01 AC 22 ms
18,816 KB
testcase_02 AC 22 ms
18,688 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 67 ms
25,600 KB
testcase_10 AC 156 ms
40,832 KB
testcase_11 AC 159 ms
41,088 KB
testcase_12 AC 159 ms
41,088 KB
testcase_13 AC 164 ms
41,472 KB
testcase_14 AC 167 ms
41,856 KB
testcase_15 AC 161 ms
41,984 KB
testcase_16 AC 187 ms
46,592 KB
testcase_17 AC 20 ms
17,920 KB
testcase_18 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace ContestCSharp {
    class Program {
        static void Main(string[] args) {
            Console.ReadLine();
            string[] inputs=  Console.ReadLine().Split(' ');
            double ans=0;
            foreach (var i in inputs) { ans += Convert.ToDouble( i ); }
            Console.WriteLine(ans.ToString());
        }
    }
}
0