結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー go_boardwalkgo_boardwalk
提出日時 2017-03-30 22:17:45
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 228 ms / 2,000 ms
コード長 94 bytes
コンパイル時間 47 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 15,580 KB
最終ジャッジ日時 2023-09-21 08:56:16
合計ジャッジ時間 3,041 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,848 KB
testcase_01 AC 17 ms
11,652 KB
testcase_02 AC 16 ms
11,752 KB
testcase_03 AC 17 ms
11,880 KB
testcase_04 AC 18 ms
11,576 KB
testcase_05 AC 17 ms
11,664 KB
testcase_06 AC 18 ms
11,796 KB
testcase_07 AC 24 ms
12,984 KB
testcase_08 AC 59 ms
15,288 KB
testcase_09 AC 72 ms
15,340 KB
testcase_10 AC 192 ms
15,440 KB
testcase_11 AC 193 ms
15,544 KB
testcase_12 AC 201 ms
15,344 KB
testcase_13 AC 211 ms
15,356 KB
testcase_14 AC 208 ms
15,328 KB
testcase_15 AC 211 ms
15,580 KB
testcase_16 AC 228 ms
15,348 KB
testcase_17 AC 16 ms
11,636 KB
testcase_18 AC 16 ms
11,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(let loop ((N (read)) (sum 0))
  (if (zero? N ) (print sum)
  (loop (- N 1) (+ sum (read)))))
0