結果
問題 | No.275 中央値を求めよ |
ユーザー |
![]() |
提出日時 | 2022-10-02 19:03:01 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 66 ms / 1,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 379 ms |
コンパイル使用メモリ | 5,632 KB |
実行使用メモリ | 24,576 KB |
最終ジャッジ日時 | 2024-12-25 15:40:13 |
合計ジャッジ時間 | 4,499 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 38 |
ソースコード
#!/usr/bin/env gosh (use scheme.sort) (define (med v) (inexact (vector-find-median < v 0)) ) (define (str->vec str) (list->vector (map (^x (string->number x)) (string-split str " "))) ) (define (main _) (let* ([_ (read-line)] [str (read-line)]) (display (med (str->vec str))) ) (newline) 0)