結果

問題 No.716 距離
ユーザー _Clay_____Clay____
提出日時 2018-09-20 21:20:10
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 558 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 13,844 KB
最終ジャッジ日時 2023-09-25 10:36:33
合計ジャッジ時間 2,501 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
12,052 KB
testcase_01 AC 19 ms
12,012 KB
testcase_02 AC 19 ms
11,916 KB
testcase_03 AC 19 ms
11,848 KB
testcase_04 AC 20 ms
11,916 KB
testcase_05 AC 21 ms
11,852 KB
testcase_06 AC 20 ms
11,856 KB
testcase_07 AC 18 ms
11,676 KB
testcase_08 AC 18 ms
11,672 KB
testcase_09 AC 18 ms
11,668 KB
testcase_10 AC 19 ms
13,844 KB
testcase_11 AC 18 ms
11,820 KB
testcase_12 AC 19 ms
11,828 KB
testcase_13 AC 19 ms
12,076 KB
testcase_14 AC 17 ms
11,820 KB
testcase_15 AC 19 ms
11,812 KB
testcase_16 AC 19 ms
11,848 KB
testcase_17 AC 19 ms
11,916 KB
testcase_18 AC 17 ms
11,840 KB
testcase_19 AC 18 ms
11,804 KB
testcase_20 AC 18 ms
11,784 KB
testcase_21 AC 18 ms
11,756 KB
testcase_22 AC 18 ms
11,900 KB
testcase_23 AC 17 ms
11,748 KB
testcase_24 AC 19 ms
11,816 KB
testcase_25 AC 18 ms
13,740 KB
testcase_26 AC 18 ms
11,752 KB
testcase_27 AC 19 ms
11,844 KB
testcase_28 AC 18 ms
11,772 KB
testcase_29 AC 18 ms
11,760 KB
testcase_30 AC 18 ms
11,916 KB
testcase_31 AC 18 ms
12,020 KB
testcase_32 AC 19 ms
11,932 KB
testcase_33 AC 18 ms
11,772 KB
testcase_34 AC 18 ms
11,724 KB
testcase_35 AC 17 ms
11,684 KB
testcase_36 AC 18 ms
11,704 KB
testcase_37 AC 17 ms
11,744 KB
testcase_38 AC 18 ms
11,796 KB
testcase_39 AC 18 ms
11,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(letrec* ((a (string->number (read-line)))
          (n (map string->number (string-split (read-line) " ")))
          (mm (lambda (n m)
              (if (= (length n) 1) (list m (car n))
                                   (let1 m1 (- (cadr n) (car n))
                                            (if (null? m) (mm (cdr n) m1)
                                                          (mm (cdr n) (min m1 m))))))))  
         (let1 r (mm n '())
                 (begin
                    (print (car r))
                    (print (- (cadr r) (car n))))))
0