結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー shima1104shima1104
提出日時 2019-03-12 00:06:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 182 ms / 3,000 ms
コード長 487 bytes
コンパイル時間 1,960 ms
コンパイル使用メモリ 99,944 KB
実行使用メモリ 28,972 KB
最終ジャッジ日時 2023-09-05 20:18:26
合計ジャッジ時間 4,984 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,756 KB
testcase_01 AC 56 ms
20,776 KB
testcase_02 AC 56 ms
22,816 KB
testcase_03 AC 56 ms
20,884 KB
testcase_04 AC 57 ms
20,764 KB
testcase_05 AC 57 ms
20,804 KB
testcase_06 AC 58 ms
20,816 KB
testcase_07 AC 62 ms
20,708 KB
testcase_08 AC 78 ms
22,804 KB
testcase_09 AC 95 ms
24,908 KB
testcase_10 AC 165 ms
26,896 KB
testcase_11 AC 170 ms
28,972 KB
testcase_12 AC 174 ms
26,800 KB
testcase_13 AC 175 ms
24,708 KB
testcase_14 AC 173 ms
26,964 KB
testcase_15 AC 173 ms
24,796 KB
testcase_16 AC 182 ms
27,020 KB
testcase_17 AC 56 ms
20,872 KB
testcase_18 AC 55 ms
20,684 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;
using System.Text;
using System.Threading.Tasks;

namespace test_2
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            ulong sum = 0;

            for (int i = 0; i < n; i++)
            {

                sum += ulong.Parse(Console.ReadLine());
                
            }

            Console.WriteLine(sum);

        }
    }
}
0