結果
| 問題 |
No.275 中央値を求めよ
|
| コンテスト | |
| ユーザー |
kokoa1046
|
| 提出日時 | 2017-09-09 11:17:58 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 306 bytes |
| コンパイル時間 | 111 ms |
| コンパイル使用メモリ | 5,376 KB |
| 実行使用メモリ | 16,896 KB |
| 最終ジャッジ日時 | 2024-11-07 09:04:37 |
| 合計ジャッジ時間 | 2,327 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 6 WA * 31 RE * 1 |
ソースコード
(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))))
kokoa1046