結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー go_boardwalkgo_boardwalk
提出日時 2017-03-30 22:18:35
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 228 ms / 3,000 ms
コード長 94 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 17,468 KB
最終ジャッジ日時 2023-08-26 17:00:25
合計ジャッジ時間 2,864 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
11,644 KB
testcase_01 AC 15 ms
11,748 KB
testcase_02 AC 15 ms
11,752 KB
testcase_03 AC 16 ms
11,668 KB
testcase_04 AC 15 ms
11,656 KB
testcase_05 AC 15 ms
11,608 KB
testcase_06 AC 16 ms
11,776 KB
testcase_07 AC 23 ms
12,756 KB
testcase_08 AC 57 ms
15,452 KB
testcase_09 AC 84 ms
15,372 KB
testcase_10 AC 192 ms
15,412 KB
testcase_11 AC 194 ms
15,388 KB
testcase_12 AC 202 ms
15,528 KB
testcase_13 AC 205 ms
17,468 KB
testcase_14 AC 203 ms
15,360 KB
testcase_15 AC 205 ms
15,360 KB
testcase_16 AC 228 ms
17,340 KB
testcase_17 AC 16 ms
11,664 KB
testcase_18 AC 15 ms
11,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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