結果

問題 No.275 中央値を求めよ
コンテスト
ユーザー kokoa1046
提出日時 2017-09-09 11:17:58
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
WA  
実行時間 -
コード長 306 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 108 ms
コンパイル使用メモリ 8,100 KB
実行使用メモリ 17,152 KB
最終ジャッジ日時 2026-05-07 17:27:22
合計ジャッジ時間 2,711 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 6 WA * 31 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(use srfi-1)
(define n (read))
(define (readn n)  (if (= n 0) '() (cons (read) (readn (- n 1)) ) ))
(define x (readn n))
(if (even? (length x)) (print(exact->inexact(/ (+  (list-ref x (-(quotient (length x) 2)1) ) (list-ref x (quotient (length x)2) ))2))) (print (list-ref x (+ (quotient (length x)2)1))))
0