結果
問題 | No.46 はじめのn歩 |
ユーザー | chikeplus |
提出日時 | 2019-01-18 16:53:52 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 88 ms / 5,000 ms |
コード長 | 255 bytes |
コンパイル時間 | 4,391 ms |
コンパイル使用メモリ | 162,712 KB |
実行使用メモリ | 25,112 KB |
最終ジャッジ日時 | 2023-09-20 10:33:27 |
合計ジャッジ時間 | 5,882 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 85 ms
25,032 KB |
testcase_01 | AC | 88 ms
25,016 KB |
testcase_02 | AC | 85 ms
25,024 KB |
testcase_03 | AC | 85 ms
22,992 KB |
testcase_04 | AC | 84 ms
22,912 KB |
testcase_05 | AC | 84 ms
22,988 KB |
testcase_06 | AC | 86 ms
23,072 KB |
testcase_07 | AC | 85 ms
22,976 KB |
testcase_08 | AC | 86 ms
25,112 KB |
testcase_09 | AC | 86 ms
23,064 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved. /home/judge/data/code/Main.fs(7,1): warning FS0020: The result of this expression has type 'string' and is implicitly ignored. Consider using 'ignore' to discard this value explicitly, e.g. 'expr |> ignore', or 'let' to bind the result to a name, e.g. 'let result = expr'.
ソースコード
let args = [ for arg in System.Console.ReadLine().Split( ' ' ) -> arg ] : list<string> let a = System.Int64.Parse( args.Item(0) ) let b = System.Int64.Parse( args.Item(1) ) printfn "%d" ((b / a) + if b % a = 0L then 0L else 1L) System.Console.ReadLine()