結果

問題 No.9013 台形の面積
ユーザー norioc
提出日時 2025-06-20 02:49:16
言語 Scheme
(Gauche-0.9.15)
結果
WA  
実行時間 -
コード長 676 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 8,100 KB
実行使用メモリ 23,680 KB
最終ジャッジ日時 2025-06-20 02:49:41
合計ジャッジ時間 2,156 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

(use scheme.list)
(use util.match)
(use srfi.13) ; string
(use srfi.42) ; list-ec

(define input read-line)

(define (ii)
  (string->number (read-line)))

(define (li)
  (let ((s (read-line)))
    (map string->number (string-split s " "))))

(define (prn . args)
  (for-each (lambda (i x)
              (when (> i 0)
                (display " "))
              (display x))
            (iota (length args))
            args)
  (newline))


(define (min&max* xs) (apply min&max xs))
(define (sum . xs) (apply + xs))
(define (sum* xs) (apply + xs))

(define divmod div-and-mod)

(match (map string->number (string-split (input) ","))
  ((u b h)
   (prn (/. (* (+ u b) h) 2))))
0