結果
問題 | No.275 中央値を求めよ |
ユーザー |
![]() |
提出日時 | 2016-07-15 16:24:25 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 7 ms / 1,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 4,376 ms |
コンパイル使用メモリ | 178,052 KB |
実行使用メモリ | 8,320 KB |
最終ジャッジ日時 | 2024-06-24 23:53:50 |
合計ジャッジ時間 | 4,483 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 38 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
importData.Listmain = dogetLineli <- getLinelet ns = sort $ map read $ words liprint $ compute nscompute ns| odd (length ns) = ns !! l2| True = (ns !! (l2-1) + ns !! l2) / 2where l2 = div (length ns) 2