結果
問題 | No.394 ハーフパイプ(1) |
ユーザー |
|
提出日時 | 2020-07-26 11:35:43 |
言語 | OCaml (5.2.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 261 bytes |
コンパイル時間 | 342 ms |
コンパイル使用メモリ | 21,448 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 01:50:23 |
合計ジャッジ時間 | 1,054 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
let () = let arr = Array.to_list (Array.init 6 @@ fun _ -> Scanf.scanf "%d " @@ fun d -> d) in let lst = List.fast_sort compare arr in let lst = List.tl (List.rev (List.tl lst)) in Printf.printf "%.2f\n" ((float_of_int (List.fold_left (+) 0 lst)) /. 4.)