結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー shima1104shima1104
提出日時 2019-03-11 23:56:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 530 bytes
コンパイル時間 2,023 ms
コンパイル使用メモリ 101,752 KB
実行使用メモリ 48,500 KB
最終ジャッジ日時 2023-09-05 20:18:18
合計ジャッジ時間 5,051 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
20,684 KB
testcase_01 AC 58 ms
20,864 KB
testcase_02 AC 57 ms
20,740 KB
testcase_03 AC 57 ms
20,776 KB
testcase_04 AC 58 ms
20,732 KB
testcase_05 AC 60 ms
22,912 KB
testcase_06 AC 65 ms
21,028 KB
testcase_07 AC 70 ms
21,660 KB
testcase_08 AC 86 ms
28,352 KB
testcase_09 AC 92 ms
28,368 KB
testcase_10 AC 161 ms
44,788 KB
testcase_11 AC 163 ms
45,016 KB
testcase_12 AC 164 ms
43,340 KB
testcase_13 AC 166 ms
43,276 KB
testcase_14 AC 169 ms
47,616 KB
testcase_15 AC 170 ms
43,756 KB
testcase_16 AC 194 ms
48,500 KB
testcase_17 AC 57 ms
22,884 KB
testcase_18 AC 58 ms
20,660 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());
            string[] ns = Console.ReadLine().Split(' ');
            ulong sum = 0;

            for (int i = 0; i < n; i++)
            {
                sum += ulong.Parse(ns[i]);
                
            }

            Console.WriteLine(sum);

        }
    }
}
0