結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー TaK7907TaK7907
提出日時 2017-10-07 07:58:14
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 172 ms / 3,000 ms
コード長 390 bytes
コンパイル時間 2,432 ms
コンパイル使用メモリ 104,024 KB
実行使用メモリ 26,928 KB
最終ジャッジ日時 2023-08-26 17:59:26
合計ジャッジ時間 5,581 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
22,776 KB
testcase_01 AC 53 ms
22,752 KB
testcase_02 AC 54 ms
20,640 KB
testcase_03 AC 56 ms
20,780 KB
testcase_04 AC 57 ms
20,740 KB
testcase_05 AC 56 ms
22,760 KB
testcase_06 AC 57 ms
20,676 KB
testcase_07 AC 58 ms
20,752 KB
testcase_08 AC 75 ms
24,796 KB
testcase_09 AC 90 ms
26,908 KB
testcase_10 AC 163 ms
26,928 KB
testcase_11 AC 168 ms
24,856 KB
testcase_12 AC 163 ms
24,812 KB
testcase_13 AC 172 ms
26,780 KB
testcase_14 AC 157 ms
24,784 KB
testcase_15 AC 164 ms
26,768 KB
testcase_16 AC 172 ms
26,832 KB
testcase_17 AC 53 ms
20,704 KB
testcase_18 AC 54 ms
18,664 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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) {
            UInt64 answer = 0;
            var num = int.Parse( Console.ReadLine() );

            for (var i = 0; i != num; ++i) {
                answer += UInt64.Parse( Console.ReadLine()  );
            }

            Console.WriteLine( $"{answer.ToString():d}" );
        }
    }
}
0