結果

問題 No.369 足し間違い
ユーザー pocaristpocarist
提出日時 2016-05-13 22:51:32
言語 F#
(F# 4.0)
結果
AC  
実行時間 349 ms / 2,000 ms
コード長 414 bytes
コンパイル時間 14,221 ms
コンパイル使用メモリ 190,348 KB
実行使用メモリ 35,824 KB
最終ジャッジ日時 2024-04-15 16:43:42
合計ジャッジ時間 17,843 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 342 ms
33,804 KB
testcase_01 AC 341 ms
33,556 KB
testcase_02 AC 340 ms
33,684 KB
testcase_03 AC 341 ms
33,940 KB
testcase_04 AC 349 ms
35,736 KB
testcase_05 AC 337 ms
34,208 KB
testcase_06 AC 341 ms
34,788 KB
testcase_07 AC 341 ms
35,824 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (771 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

// http://yukicoder.me/problems/1039
open System

let dprintfn fmt = Printf.kprintf Diagnostics.Debug.WriteLine fmt

[<EntryPoint>]
let main argv = 
    let N = Console.ReadLine().Trim() |> int
    let A = Console.ReadLine().Trim().Split([|' '|]) |> Array.map int64
    let v = Console.ReadLine().Trim() |> int64
    let a = Array.sum A
    printfn "%d" <| (a - v)
    0 // 整数の終了コードを返します
0