結果

問題 No.480 合計
ユーザー MOD9cXWdOsRxvPyMOD9cXWdOsRxvPy
提出日時 2022-09-18 14:00:19
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 11,888 KB
最終ジャッジ日時 2023-08-23 18:08:15
合計ジャッジ時間 1,635 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,620 KB
testcase_01 AC 19 ms
11,652 KB
testcase_02 AC 18 ms
11,872 KB
testcase_03 AC 18 ms
11,716 KB
testcase_04 AC 17 ms
11,864 KB
testcase_05 AC 17 ms
11,804 KB
testcase_06 AC 18 ms
11,776 KB
testcase_07 AC 18 ms
11,628 KB
testcase_08 AC 18 ms
11,724 KB
testcase_09 AC 17 ms
11,728 KB
testcase_10 AC 17 ms
11,724 KB
testcase_11 AC 17 ms
11,724 KB
testcase_12 AC 17 ms
11,636 KB
testcase_13 AC 17 ms
11,656 KB
testcase_14 AC 16 ms
11,652 KB
testcase_15 AC 17 ms
11,624 KB
testcase_16 AC 16 ms
11,644 KB
testcase_17 AC 17 ms
11,620 KB
testcase_18 AC 17 ms
11,640 KB
testcase_19 AC 16 ms
11,620 KB
testcase_20 AC 17 ms
11,888 KB
testcase_21 AC 18 ms
11,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (sum n)
  (if (= n 1)
      1
      (+ n (sum (- n 1)))))

(let ((n (read)))
      (display (sum n)))
0