結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー necynecy
提出日時 2020-04-02 02:17:14
言語 OCaml
(5.1.0)
結果
WA  
実行時間 -
コード長 135 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 19,696 KB
実行使用メモリ 9,164 KB
最終ジャッジ日時 2024-04-17 08:52:30
合計ジャッジ時間 1,831 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,248 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 WA -
testcase_05 AC 1 ms
5,376 KB
testcase_06 WA -
testcase_07 AC 4 ms
5,376 KB
testcase_08 AC 13 ms
5,376 KB
testcase_09 AC 23 ms
6,016 KB
testcase_10 AC 70 ms
8,320 KB
testcase_11 AC 70 ms
8,448 KB
testcase_12 AC 75 ms
8,576 KB
testcase_13 AC 80 ms
8,576 KB
testcase_14 AC 77 ms
8,632 KB
testcase_15 AC 81 ms
8,832 KB
testcase_16 AC 88 ms
9,164 KB
testcase_17 AC 2 ms
5,376 KB
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

let () =
    let n = read_int () in 
    let nums = Array.init n (fun _ -> read_int ()) in
    Array.fold_left (+) 0 nums |> print_int 
0