結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー varrhovarrho
提出日時 2019-09-11 21:07:57
言語 Nim
(2.0.2)
結果
AC  
実行時間 108 ms / 3,000 ms
コード長 159 bytes
コンパイル時間 3,002 ms
コンパイル使用メモリ 70,528 KB
実行使用メモリ 10,804 KB
最終ジャッジ日時 2023-09-15 13:56:55
合計ジャッジ時間 4,592 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 5 ms
4,376 KB
testcase_08 AC 16 ms
4,380 KB
testcase_09 AC 28 ms
4,636 KB
testcase_10 AC 89 ms
9,296 KB
testcase_11 AC 93 ms
9,472 KB
testcase_12 AC 94 ms
9,580 KB
testcase_13 AC 96 ms
9,716 KB
testcase_14 AC 95 ms
10,092 KB
testcase_15 AC 98 ms
10,112 KB
testcase_16 AC 108 ms
10,804 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math, sequtils, strutils
var
    n: int = stdin.readline.parseInt
    a: seq[int] = mapIt(0..<n, stdin.readline.parseInt)
    ans: int = sum(a)
echo ans
0