結果

問題 No.410 出会い
ユーザー kuuso1kuuso1
提出日時 2016-08-16 06:58:10
言語 F#
(F# 4.0)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 386 bytes
コンパイル時間 4,649 ms
コンパイル使用メモリ 169,392 KB
実行使用メモリ 25,732 KB
最終ジャッジ日時 2023-09-10 20:01:15
合計ジャッジ時間 6,426 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
23,672 KB
testcase_01 AC 68 ms
23,588 KB
testcase_02 AC 68 ms
25,660 KB
testcase_03 AC 67 ms
23,844 KB
testcase_04 AC 67 ms
25,676 KB
testcase_05 AC 66 ms
25,732 KB
testcase_06 AC 67 ms
23,796 KB
testcase_07 AC 68 ms
21,684 KB
testcase_08 AC 67 ms
21,560 KB
testcase_09 AC 67 ms
25,664 KB
testcase_10 AC 66 ms
23,640 KB
testcase_11 AC 66 ms
23,636 KB
testcase_12 AC 68 ms
25,644 KB
testcase_13 AC 67 ms
23,876 KB
testcase_14 AC 67 ms
23,604 KB
testcase_15 AC 67 ms
25,664 KB
testcase_16 AC 67 ms
23,716 KB
testcase_17 AC 67 ms
23,532 KB
testcase_18 AC 66 ms
23,640 KB
testcase_19 AC 67 ms
23,620 KB
testcase_20 AC 70 ms
23,628 KB
testcase_21 AC 68 ms
23,624 KB
testcase_22 AC 67 ms
23,620 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System
type Sol() =
    member this.Solve() = 
        let (Px,Py) = Console.ReadLine().Split(' ') |> Array.map double |> fun xs -> (xs.[0],xs.[1])
        let (Qx,Qy) = Console.ReadLine().Split(' ') |> Array.map double |> fun xs -> (xs.[0],xs.[1])
        let ans = abs(Px - Qx) + abs(Py - Qy) |> fun x -> x/2.0
        Console.WriteLine(ans)

let mySol = new Sol()
mySol.Solve()
0