結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー itok217itok217
提出日時 2017-04-09 15:52:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 161 ms / 3,000 ms
コード長 248 bytes
コンパイル時間 3,003 ms
コンパイル使用メモリ 101,000 KB
実行使用メモリ 27,020 KB
最終ジャッジ日時 2023-08-26 17:01:05
合計ジャッジ時間 5,725 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
20,772 KB
testcase_01 AC 53 ms
22,764 KB
testcase_02 AC 51 ms
20,820 KB
testcase_03 AC 51 ms
20,732 KB
testcase_04 AC 50 ms
20,728 KB
testcase_05 AC 50 ms
20,664 KB
testcase_06 AC 50 ms
20,772 KB
testcase_07 AC 53 ms
18,716 KB
testcase_08 AC 70 ms
22,892 KB
testcase_09 AC 87 ms
24,832 KB
testcase_10 AC 149 ms
24,796 KB
testcase_11 AC 154 ms
26,820 KB
testcase_12 AC 157 ms
26,860 KB
testcase_13 AC 153 ms
27,020 KB
testcase_14 AC 161 ms
24,780 KB
testcase_15 AC 161 ms
24,844 KB
testcase_16 AC 161 ms
26,824 KB
testcase_17 AC 48 ms
20,736 KB
testcase_18 AC 48 ms
20,700 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program {
   static void Main() {
      int n = int.Parse(Console.ReadLine());
      long sum = 0;
      for (int i = 0; i < n; i++) {
         sum += long.Parse(Console.ReadLine());
      }
      Console.WriteLine(sum);
   }
}
0