結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー kmtrc130kmtrc130
提出日時 2017-06-07 14:03:50
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 230 ms / 3,000 ms
コード長 295 bytes
コンパイル時間 5,411 ms
コンパイル使用メモリ 101,052 KB
実行使用メモリ 27,060 KB
最終ジャッジ日時 2023-08-26 17:08:09
合計ジャッジ時間 7,728 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
22,900 KB
testcase_01 AC 60 ms
22,992 KB
testcase_02 AC 60 ms
22,840 KB
testcase_03 AC 58 ms
20,808 KB
testcase_04 AC 57 ms
18,916 KB
testcase_05 AC 59 ms
22,896 KB
testcase_06 AC 60 ms
22,796 KB
testcase_07 AC 65 ms
20,740 KB
testcase_08 AC 90 ms
22,832 KB
testcase_09 AC 114 ms
26,940 KB
testcase_10 AC 216 ms
24,976 KB
testcase_11 AC 208 ms
24,908 KB
testcase_12 AC 215 ms
22,940 KB
testcase_13 AC 224 ms
24,888 KB
testcase_14 AC 217 ms
24,852 KB
testcase_15 AC 215 ms
27,008 KB
testcase_16 AC 230 ms
27,060 KB
testcase_17 AC 56 ms
20,856 KB
testcase_18 AC 57 ms
20,784 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
    static void Main(string[] args)
    {
        int N = int.Parse(Console.ReadLine());
        decimal sum = 0;
        for (int i = 0; i < N; i++)
        {
            sum += decimal.Parse(Console.ReadLine());
        }
        Console.WriteLine(sum);
    }
}
0