結果

問題 No.480 合計
ユーザー arito_asuarito_asu
提出日時 2020-07-24 10:55:30
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 5,292 KB
実行使用メモリ 13,848 KB
最終ジャッジ日時 2023-09-07 02:43:40
合計ジャッジ時間 2,063 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
11,680 KB
testcase_01 AC 19 ms
11,632 KB
testcase_02 AC 19 ms
11,708 KB
testcase_03 AC 19 ms
11,848 KB
testcase_04 AC 18 ms
11,680 KB
testcase_05 AC 19 ms
11,700 KB
testcase_06 AC 19 ms
11,784 KB
testcase_07 AC 20 ms
11,692 KB
testcase_08 AC 20 ms
11,752 KB
testcase_09 AC 18 ms
11,724 KB
testcase_10 AC 19 ms
11,832 KB
testcase_11 AC 18 ms
11,788 KB
testcase_12 AC 20 ms
13,848 KB
testcase_13 AC 18 ms
11,840 KB
testcase_14 AC 19 ms
11,672 KB
testcase_15 AC 19 ms
11,648 KB
testcase_16 AC 19 ms
11,780 KB
testcase_17 AC 18 ms
11,660 KB
testcase_18 AC 19 ms
11,632 KB
testcase_19 AC 18 ms
11,752 KB
testcase_20 AC 19 ms
11,864 KB
testcase_21 AC 18 ms
11,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (list-sum ls)
    (if (> 2 (length ls))
        (car ls)
        (+ (car ls)(list-sum (cdr ls)))
    )
)

($ print $ list-sum (iota (read) 1))
0