結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ardggyardggy
提出日時 2021-02-11 23:58:45
言語 Nim
(2.0.2)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 3,703 ms
コンパイル使用メモリ 68,532 KB
実行使用メモリ 47,392 KB
最終ジャッジ日時 2023-09-25 13:47:20
合計ジャッジ時間 5,667 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 5 ms
4,376 KB
testcase_08 AC 20 ms
8,504 KB
testcase_09 AC 23 ms
12,100 KB
testcase_10 AC 74 ms
36,720 KB
testcase_11 AC 73 ms
37,724 KB
testcase_12 AC 73 ms
38,480 KB
testcase_13 AC 72 ms
38,184 KB
testcase_14 AC 74 ms
38,384 KB
testcase_15 AC 76 ms
38,972 KB
testcase_16 AC 83 ms
47,392 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils

proc main() =
  let _ = stdin.readLine.parseInt
  echo stdin.readLine.split.map(parseInt).foldl(a + b)  

when isMainModule: main()
0