結果

問題 No.1139 Slime Race
ユーザー eSeFeSeF
提出日時 2020-07-31 16:26:33
言語 F#
(F# 4.0)
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 542 bytes
コンパイル時間 4,524 ms
コンパイル使用メモリ 161,956 KB
実行使用メモリ 43,232 KB
最終ジャッジ日時 2023-09-15 02:42:09
合計ジャッジ時間 8,534 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
24,976 KB
testcase_01 AC 87 ms
24,996 KB
testcase_02 AC 85 ms
24,896 KB
testcase_03 AC 87 ms
25,008 KB
testcase_04 AC 85 ms
24,892 KB
testcase_05 AC 85 ms
22,888 KB
testcase_06 AC 92 ms
23,264 KB
testcase_07 AC 86 ms
24,948 KB
testcase_08 AC 85 ms
22,840 KB
testcase_09 AC 86 ms
24,972 KB
testcase_10 AC 174 ms
41,400 KB
testcase_11 AC 169 ms
38,548 KB
testcase_12 AC 189 ms
43,232 KB
testcase_13 AC 84 ms
22,816 KB
testcase_14 AC 171 ms
39,376 KB
testcase_15 AC 177 ms
40,236 KB
testcase_16 AC 189 ms
43,096 KB
testcase_17 AC 176 ms
41,620 KB
testcase_18 AC 162 ms
38,108 KB
testcase_19 AC 134 ms
27,228 KB
testcase_20 AC 134 ms
29,076 KB
testcase_21 AC 161 ms
39,836 KB
testcase_22 AC 176 ms
39,348 KB
testcase_23 AC 194 ms
40,360 KB
testcase_24 AC 86 ms
24,896 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System
let R T = stdin.ReadLine()|> T
let RS T = stdin.ReadLine().Split()|>Array.map T
let R2 T U = RS string|>fun c-> (c.[0]|>T),(c.[1]|>U)
let R3 T U V = RS string|>fun c-> (c.[0]|>T),(c.[1]|>U),(c.[2]|>V)
let R4 T U V W = RS string|>fun c-> (c.[0]|>T),(c.[1]|>U),(c.[2]|>V),(c.[3]|>W)
let R5 T U V W X = RS string|>fun c-> (c.[0]|>T),(c.[1]|>U),(c.[2]|>V),(c.[3]|>W),(c.[4]|>X)
[<EntryPoint>]
let main argv =
    let N,D=R2 int int64
    let _ = RS int
    RS int64
    |>Array.sum
    |>fun c -> ((D+c-1L)/c)
    |>printfn "%d"
    0
0