結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー cccccc
提出日時 2022-07-12 16:01:35
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 10,249 ms
コンパイル使用メモリ 145,296 KB
実行使用メモリ 163,220 KB
最終ジャッジ日時 2023-09-05 18:19:39
合計ジャッジ時間 12,778 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
28,696 KB
testcase_01 AC 50 ms
28,736 KB
testcase_02 AC 52 ms
28,804 KB
testcase_03 AC 52 ms
30,516 KB
testcase_04 AC 52 ms
28,656 KB
testcase_05 AC 51 ms
28,732 KB
testcase_06 AC 53 ms
29,100 KB
testcase_07 AC 55 ms
30,260 KB
testcase_08 AC 66 ms
35,500 KB
testcase_09 AC 69 ms
36,288 KB
testcase_10 AC 119 ms
50,152 KB
testcase_11 AC 101 ms
52,880 KB
testcase_12 AC 102 ms
53,084 KB
testcase_13 AC 102 ms
53,896 KB
testcase_14 AC 103 ms
54,284 KB
testcase_15 AC 105 ms
54,596 KB
testcase_16 AC 111 ms
57,100 KB
testcase_17 AC 52 ms
28,548 KB
testcase_18 AC 52 ms
163,220 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 158 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main(string[] arg)
    {
        var cnt = int.Parse(Console.ReadLine());
        var ary = Console.ReadLine().Split().Select(long.Parse).ToArray();
        Console.WriteLine("{0}", ary.Sum());
    }
}
0