結果
| 問題 |
No.9014 テストの合計点と平均点
|
| ユーザー |
norioc
|
| 提出日時 | 2025-06-20 00:35:19 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 2,000 ms |
| コード長 | 690 bytes |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 7,972 KB |
| 実行使用メモリ | 17,152 KB |
| 最終ジャッジ日時 | 2025-06-20 00:35:31 |
| 合計ジャッジ時間 | 1,036 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 |
ソースコード
(use scheme.list)
(use util.match)
(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))
(let* ((s (input)))
(match (map string->number (string-split s ","))
((a b c)
(format #t "合計点:~d\n" (sum a b c))
(format #t "平均点:~,1f\n" (/. (sum a b c) 3)))))
norioc