結果

問題 No.388 階段 (1)
ユーザー nohopennohopen
提出日時 2019-06-16 19:34:30
言語 F#
(F# 4.0)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 5,361 ms
コンパイル使用メモリ 160,088 KB
実行使用メモリ 24,904 KB
最終ジャッジ日時 2023-08-16 03:56:25
合計ジャッジ時間 7,590 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
22,868 KB
testcase_01 AC 86 ms
22,876 KB
testcase_02 AC 87 ms
22,748 KB
testcase_03 AC 86 ms
24,760 KB
testcase_04 AC 85 ms
22,720 KB
testcase_05 AC 87 ms
24,888 KB
testcase_06 AC 86 ms
24,812 KB
testcase_07 AC 86 ms
22,912 KB
testcase_08 AC 85 ms
20,780 KB
testcase_09 AC 85 ms
22,804 KB
testcase_10 AC 86 ms
24,904 KB
testcase_11 AC 86 ms
20,732 KB
testcase_12 AC 86 ms
22,736 KB
testcase_13 AC 85 ms
22,980 KB
testcase_14 AC 87 ms
22,832 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 a = Console.ReadLine().Split(' ') |> Array.map int
if (a.[0] % a.[1]) = 0 then printfn "%d" ((a.[0] / a.[1]) + 1)
else printfn "%d" (int(Math.Ceiling((double)a.[0] / (double)a.[1])))
0