結果
| 問題 |
No.410 出会い
|
| ユーザー |
kuuso1
|
| 提出日時 | 2016-08-16 06:58:10 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 2,000 ms |
| コード長 | 386 bytes |
| コンパイル時間 | 7,053 ms |
| コンパイル使用メモリ | 190,888 KB |
| 実行使用メモリ | 29,440 KB |
| 最終ジャッジ日時 | 2024-06-28 11:06:53 |
| 合計ジャッジ時間 | 9,484 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (242 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/
ソースコード
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()
kuuso1