結果
問題 | No.48 ロボットの操縦 |
ユーザー | regerege |
提出日時 | 2016-01-12 21:58:17 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 305 ms / 5,000 ms |
コード長 | 409 bytes |
コンパイル時間 | 12,111 ms |
コンパイル使用メモリ | 189,872 KB |
実行使用メモリ | 34,984 KB |
最終ジャッジ日時 | 2024-05-01 13:47:18 |
合計ジャッジ時間 | 22,390 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 295 ms
33,956 KB |
testcase_01 | AC | 298 ms
34,868 KB |
testcase_02 | AC | 298 ms
34,868 KB |
testcase_03 | AC | 299 ms
34,720 KB |
testcase_04 | AC | 300 ms
34,088 KB |
testcase_05 | AC | 301 ms
34,852 KB |
testcase_06 | AC | 301 ms
34,856 KB |
testcase_07 | AC | 299 ms
34,848 KB |
testcase_08 | AC | 305 ms
34,088 KB |
testcase_09 | AC | 292 ms
33,828 KB |
testcase_10 | AC | 293 ms
34,084 KB |
testcase_11 | AC | 295 ms
34,836 KB |
testcase_12 | AC | 298 ms
34,192 KB |
testcase_13 | AC | 292 ms
34,212 KB |
testcase_14 | AC | 292 ms
33,832 KB |
testcase_15 | AC | 294 ms
34,852 KB |
testcase_16 | AC | 300 ms
34,740 KB |
testcase_17 | AC | 302 ms
34,592 KB |
testcase_18 | AC | 295 ms
33,964 KB |
testcase_19 | AC | 297 ms
33,948 KB |
testcase_20 | AC | 297 ms
34,216 KB |
testcase_21 | AC | 293 ms
34,984 KB |
testcase_22 | AC | 296 ms
34,212 KB |
testcase_23 | AC | 294 ms
34,076 KB |
testcase_24 | AC | 294 ms
34,472 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (262 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/
ソースコード
let ``No.48 ロボットの操縦`` () = let X = int <| stdin.ReadLine() let Y = int <| stdin.ReadLine() let L = int <| stdin.ReadLine() let a = if X = 0 && 0 <= Y then 0 elif Y < 0 then 2 else 1 [abs X; abs Y] |> List.map (fun a -> a/L+ (if a % L = 0 then 0 else 1)) |> List.fold (fun s n -> s + n) a |> printfn "%d" ``No.48 ロボットの操縦`` ()