結果

問題 No.46 はじめのn歩
ユーザー kuuso1kuuso1
提出日時 2016-08-19 00:28:59
言語 F#
(F# 4.0)
結果
AC  
実行時間 309 ms / 5,000 ms
コード長 221 bytes
コンパイル時間 7,128 ms
コンパイル使用メモリ 200,800 KB
実行使用メモリ 34,408 KB
最終ジャッジ日時 2024-04-25 09:04:00
合計ジャッジ時間 11,078 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 305 ms
33,924 KB
testcase_01 AC 306 ms
33,928 KB
testcase_02 AC 303 ms
33,932 KB
testcase_03 AC 309 ms
34,048 KB
testcase_04 AC 304 ms
33,664 KB
testcase_05 AC 302 ms
34,204 KB
testcase_06 AC 307 ms
34,184 KB
testcase_07 AC 296 ms
33,784 KB
testcase_08 AC 302 ms
33,920 KB
testcase_09 AC 302 ms
34,408 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (200 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
/home/judge/data/code/Main.fs(4,13): warning FS0025: この式のパターン マッチが不完全です たとえば、値 '[|_; _; _|]' はパターンに含まれないケースを示す可能性があります。 [/home/judge/data/code/main.fsproj]
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

open System
type Sol() =
    member this.Solve() = 
        let [|A;B|] = stdin.ReadLine().Split() |> Array.map int
        (B / A + if (B%A = 0) then 0 else 1 )|> printf "%d"
        
let mySol = new Sol()
mySol.Solve()
0