結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー nanophoto12nanophoto12
提出日時 2014-11-28 00:06:17
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 68 ms / 5,000 ms
コード長 438 bytes
コンパイル時間 4,108 ms
コンパイル使用メモリ 96,904 KB
実行使用メモリ 15,616 KB
最終ジャッジ日時 2023-09-29 22:25:45
合計ジャッジ時間 6,250 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
15,428 KB
testcase_01 AC 64 ms
15,520 KB
testcase_02 AC 63 ms
15,608 KB
testcase_03 AC 63 ms
15,424 KB
testcase_04 AC 64 ms
15,444 KB
testcase_05 AC 63 ms
15,560 KB
testcase_06 AC 63 ms
15,604 KB
testcase_07 AC 68 ms
15,448 KB
testcase_08 AC 65 ms
15,420 KB
testcase_09 AC 64 ms
15,588 KB
testcase_10 AC 64 ms
15,584 KB
testcase_11 AC 63 ms
15,420 KB
testcase_12 AC 63 ms
15,352 KB
testcase_13 AC 62 ms
15,352 KB
testcase_14 AC 63 ms
15,508 KB
testcase_15 AC 64 ms
15,596 KB
testcase_16 AC 62 ms
15,520 KB
testcase_17 AC 62 ms
15,544 KB
testcase_18 AC 62 ms
15,360 KB
testcase_19 AC 64 ms
15,512 KB
testcase_20 AC 65 ms
15,608 KB
testcase_21 AC 63 ms
15,556 KB
testcase_22 AC 64 ms
15,364 KB
testcase_23 AC 64 ms
15,616 KB
testcase_24 AC 63 ms
15,364 KB
testcase_25 AC 62 ms
15,428 KB
testcase_26 AC 62 ms
15,504 KB
testcase_27 AC 62 ms
15,440 KB
testcase_28 AC 63 ms
15,428 KB
testcase_29 AC 63 ms
15,536 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.Collections.Generic;
using System.Linq;

internal class Probram81
{
    public static void Main(string[] args)
    {
        int n = int.Parse(Console.ReadLine());
        List<decimal> values = new List<decimal>();
        for (int i = 0; i < n; i++)
        {
            values.Add(decimal.Parse(Console.ReadLine()));
        }
        Console.WriteLine(values.Sum().ToString("F10"));
    }
}
0