結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー うわばみうわばみ
提出日時 2020-04-29 22:18:33
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 367 bytes
コンパイル時間 2,560 ms
コンパイル使用メモリ 65,012 KB
実行使用メモリ 23,032 KB
最終ジャッジ日時 2023-09-29 22:52:49
合計ジャッジ時間 5,684 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
18,880 KB
testcase_01 AC 64 ms
20,864 KB
testcase_02 AC 64 ms
20,916 KB
testcase_03 AC 64 ms
20,812 KB
testcase_04 AC 65 ms
20,880 KB
testcase_05 AC 65 ms
22,896 KB
testcase_06 AC 66 ms
22,980 KB
testcase_07 AC 64 ms
20,920 KB
testcase_08 AC 64 ms
20,948 KB
testcase_09 AC 65 ms
20,936 KB
testcase_10 AC 65 ms
18,872 KB
testcase_11 AC 65 ms
22,948 KB
testcase_12 AC 65 ms
20,980 KB
testcase_13 AC 65 ms
22,800 KB
testcase_14 AC 65 ms
18,828 KB
testcase_15 AC 65 ms
18,800 KB
testcase_16 AC 66 ms
20,812 KB
testcase_17 AC 64 ms
20,900 KB
testcase_18 AC 65 ms
20,824 KB
testcase_19 AC 64 ms
18,912 KB
testcase_20 AC 63 ms
20,896 KB
testcase_21 AC 65 ms
21,004 KB
testcase_22 AC 66 ms
20,888 KB
testcase_23 AC 67 ms
20,900 KB
testcase_24 AC 66 ms
20,836 KB
testcase_25 AC 66 ms
20,956 KB
testcase_26 AC 66 ms
18,884 KB
testcase_27 AC 64 ms
20,812 KB
testcase_28 AC 65 ms
23,032 KB
testcase_29 AC 64 ms
22,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        decimal d = 0;
        for(int i = 0; i < n; i++)
        {
            d += decimal.Parse(Console.ReadLine());
        }
        Console.WriteLine($"{d.ToString("F10")}");
    }
}
0