結果

問題 No.369 足し間違い
ユーザー ichibanshiboriichibanshibori
提出日時 2016-05-14 18:01:28
言語 F#
(.NET 7)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 4,932 ms
コンパイル使用メモリ 153,440 KB
実行使用メモリ 25,680 KB
最終ジャッジ日時 2023-07-28 12:48:00
合計ジャッジ時間 6,468 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
24,848 KB
testcase_01 AC 83 ms
22,764 KB
testcase_02 AC 82 ms
20,724 KB
testcase_03 AC 83 ms
22,764 KB
testcase_04 AC 95 ms
21,772 KB
testcase_05 AC 91 ms
21,044 KB
testcase_06 AC 93 ms
23,516 KB
testcase_07 AC 95 ms
25,680 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let _ = stdin.ReadLine ()
let A = stdin.ReadLine () |> (fun l -> l.Split ()) |> Array.map (fun a -> int a)
let V = stdin.ReadLine () |> int

A |> Array.sum |> (fun a -> a - V) |> printfn "%d"
0