結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー curryudon08curryudon08
提出日時 2020-06-27 01:17:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 204 ms / 2,000 ms
コード長 377 bytes
コンパイル時間 2,106 ms
コンパイル使用メモリ 99,592 KB
実行使用メモリ 48,500 KB
最終ジャッジ日時 2023-09-18 13:40:52
合計ジャッジ時間 5,140 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
22,784 KB
testcase_01 AC 59 ms
20,676 KB
testcase_02 AC 59 ms
20,756 KB
testcase_03 AC 59 ms
20,812 KB
testcase_04 AC 60 ms
20,772 KB
testcase_05 AC 61 ms
20,776 KB
testcase_06 AC 68 ms
20,844 KB
testcase_07 AC 72 ms
21,972 KB
testcase_08 AC 95 ms
26,304 KB
testcase_09 AC 98 ms
26,396 KB
testcase_10 AC 170 ms
44,728 KB
testcase_11 AC 171 ms
42,972 KB
testcase_12 AC 174 ms
45,224 KB
testcase_13 AC 176 ms
45,304 KB
testcase_14 AC 178 ms
45,628 KB
testcase_15 AC 182 ms
45,788 KB
testcase_16 AC 204 ms
48,500 KB
testcase_17 AC 59 ms
22,724 KB
testcase_18 AC 60 ms
22,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;

namespace _9008
{
    class Program
    {
        static void Main(string[] args)
        {
            var n = int.Parse(Console.ReadLine());
            var s = Console.ReadLine().Split();

            var t = 0L;
            for(var i = 0; i < n; i++){
                t += long.Parse(s[i]);
            }

            Console.WriteLine(t);
        }
    }
}
0