結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー sasamesasame
提出日時 2017-05-09 10:34:05
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 385 bytes
コンパイル時間 1,986 ms
コンパイル使用メモリ 103,548 KB
実行使用メモリ 50,352 KB
最終ジャッジ日時 2023-10-12 21:42:26
合計ジャッジ時間 5,495 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
22,640 KB
testcase_01 AC 57 ms
20,672 KB
testcase_02 AC 58 ms
20,624 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 95 ms
26,240 KB
testcase_10 AC 165 ms
44,692 KB
testcase_11 AC 168 ms
42,804 KB
testcase_12 AC 170 ms
41,000 KB
testcase_13 AC 170 ms
45,244 KB
testcase_14 AC 173 ms
43,420 KB
testcase_15 AC 175 ms
45,684 KB
testcase_16 AC 199 ms
50,352 KB
testcase_17 AC 56 ms
20,644 KB
testcase_18 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
using System.Collections.Generic;
using System.Linq;
public class Hello{
    public static void Main(){
        int num = int.Parse(Console.ReadLine());
        string[] input = Console.ReadLine().Split();
        int ans = 0;
        foreach (var i in input) {
            ans += int.Parse(i);
        }
        Console.WriteLine(ans);
    }
}
0