結果

問題 No.410 出会い
ユーザー Nobita GomuNobita Gomu
提出日時 2017-10-05 14:15:29
言語 F#
(F# 4.0)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 3,153 ms
コンパイル使用メモリ 156,804 KB
実行使用メモリ 27,232 KB
最終ジャッジ日時 2023-09-10 20:19:53
合計ジャッジ時間 6,418 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
27,152 KB
testcase_01 AC 94 ms
25,176 KB
testcase_02 AC 95 ms
25,048 KB
testcase_03 AC 95 ms
25,072 KB
testcase_04 AC 95 ms
25,136 KB
testcase_05 AC 95 ms
25,220 KB
testcase_06 AC 96 ms
25,140 KB
testcase_07 AC 95 ms
27,152 KB
testcase_08 AC 95 ms
25,212 KB
testcase_09 AC 95 ms
27,232 KB
testcase_10 AC 95 ms
25,140 KB
testcase_11 AC 94 ms
25,060 KB
testcase_12 AC 95 ms
27,116 KB
testcase_13 AC 96 ms
27,152 KB
testcase_14 AC 96 ms
25,044 KB
testcase_15 AC 96 ms
27,192 KB
testcase_16 AC 95 ms
25,144 KB
testcase_17 AC 96 ms
27,200 KB
testcase_18 AC 95 ms
25,204 KB
testcase_19 AC 96 ms
25,124 KB
testcase_20 AC 97 ms
25,188 KB
testcase_21 AC 95 ms
25,228 KB
testcase_22 AC 99 ms
25,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let f (s:string) = s.Split ' ' |> Seq.map float

Seq.zip (stdin.ReadLine () |> f) (stdin.ReadLine () |> f)
|> Seq.map (fun e -> abs ((fst e) - (snd e)))
|> Seq.sum
|> fun n -> n / 2.0
|> printfn "%f"
0