結果

問題 No.289 数字を全て足そう
ユーザー MOD9cXWdOsRxvPyMOD9cXWdOsRxvPy
提出日時 2022-10-31 00:53:27
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 22 ms / 1,000 ms
コード長 199 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 12,712 KB
最終ジャッジ日時 2023-09-21 21:59:13
合計ジャッジ時間 2,391 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
11,696 KB
testcase_01 AC 19 ms
11,688 KB
testcase_02 AC 19 ms
11,844 KB
testcase_03 AC 19 ms
11,656 KB
testcase_04 AC 19 ms
11,712 KB
testcase_05 AC 19 ms
11,888 KB
testcase_06 AC 18 ms
11,688 KB
testcase_07 AC 19 ms
12,072 KB
testcase_08 AC 20 ms
11,892 KB
testcase_09 AC 19 ms
11,796 KB
testcase_10 AC 18 ms
11,748 KB
testcase_11 AC 19 ms
11,936 KB
testcase_12 AC 19 ms
11,956 KB
testcase_13 AC 19 ms
11,824 KB
testcase_14 AC 19 ms
12,000 KB
testcase_15 AC 19 ms
11,908 KB
testcase_16 AC 18 ms
11,952 KB
testcase_17 AC 20 ms
11,952 KB
testcase_18 AC 20 ms
12,148 KB
testcase_19 AC 19 ms
12,024 KB
testcase_20 AC 20 ms
11,948 KB
testcase_21 AC 18 ms
11,728 KB
testcase_22 AC 20 ms
11,956 KB
testcase_23 AC 22 ms
12,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env gosh

(define (main _)
  (let ([s (read-line)])
    (display
     (apply +
	    (map (^x (- (char->integer x) 48))
		 (filter char-numeric? (string->list s)))))
    )
  (newline)
  0)
0