結果

問題 No.3163 [Cherry 7th Tune N] Draft
ユーザー norioc
提出日時 2025-06-20 00:11:24
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 513 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 7,972 KB
実行使用メモリ 17,024 KB
最終ジャッジ日時 2025-06-20 00:11:27
合計ジャッジ時間 1,762 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

(use scheme.list)
(use util.match)

(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 (solve)
  (let ((xs (li)))
    (receive (a b) (apply min&max xs)
      (- b a))))

(let ((t (ii)))
  (dotimes (_ t)
    (print (solve))))
0