結果

問題 No.289 数字を全て足そう
ユーザー nohopennohopen
提出日時 2019-02-11 08:24:49
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 21 ms / 1,000 ms
コード長 157 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 13,936 KB
最終ジャッジ日時 2023-09-24 12:29:17
合計ジャッジ時間 2,761 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
13,716 KB
testcase_01 AC 17 ms
11,740 KB
testcase_02 AC 16 ms
11,656 KB
testcase_03 AC 16 ms
11,756 KB
testcase_04 AC 18 ms
11,820 KB
testcase_05 AC 16 ms
11,792 KB
testcase_06 AC 18 ms
11,964 KB
testcase_07 AC 19 ms
13,936 KB
testcase_08 AC 18 ms
11,992 KB
testcase_09 AC 16 ms
11,800 KB
testcase_10 AC 17 ms
11,932 KB
testcase_11 AC 18 ms
11,888 KB
testcase_12 AC 18 ms
12,176 KB
testcase_13 AC 18 ms
11,888 KB
testcase_14 AC 17 ms
12,052 KB
testcase_15 AC 17 ms
12,012 KB
testcase_16 AC 17 ms
11,872 KB
testcase_17 AC 18 ms
11,964 KB
testcase_18 AC 18 ms
11,992 KB
testcase_19 AC 18 ms
11,928 KB
testcase_20 AC 18 ms
11,908 KB
testcase_21 AC 17 ms
11,660 KB
testcase_22 AC 18 ms
12,052 KB
testcase_23 AC 21 ms
13,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (addition str)
  (fold + 0 (map digit->integer (filter char-numeric? (string->list str)))))

(define (main args)
  (print (addition (read-line))) 0)
0