結果
問題 |
No.143 豆
|
ユーザー |
![]() |
提出日時 | 2018-03-26 22:18:16 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 338 ms / 1,000 ms |
コード長 | 256 bytes |
コンパイル時間 | 11,522 ms |
コンパイル使用メモリ | 184,252 KB |
実行使用メモリ | 34,868 KB |
最終ジャッジ日時 | 2024-07-23 10:56:58 |
合計ジャッジ時間 | 18,348 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (284 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/
ソースコード
open System let read() = Console.ReadLine().Split() |> Array.map (int) let K,N,F = let t = read() t.[0],t.[1],t.[2] let A = read() let num = K * N - (A |> Array.sum) if num >= 0 then num else -1 |> printfn "%i"