結果
| 問題 |
No.143 豆
|
| コンテスト | |
| ユーザー |
hum_op
|
| 提出日時 | 2016-04-14 20:32:00 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 343 ms / 1,000 ms |
| コード長 | 364 bytes |
| コンパイル時間 | 6,854 ms |
| コンパイル使用メモリ | 186,492 KB |
| 実行使用メモリ | 35,956 KB |
| 最終ジャッジ日時 | 2024-07-23 10:29:06 |
| 合計ジャッジ時間 | 12,028 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (244 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 No143 () =
let IN = Console.ReadLine().Split(' ')
let B = (Int32.Parse IN.[0]) * (Int32.Parse IN.[1])
let last n =
if B - n < 0 then
printfn "-1"
else
printfn "%d" (B - n)
Console.ReadLine().Split(' ')
|> Array.map (fun e -> Int32.Parse e)
|> Array.sum
|> last
()
No143 ()
hum_op