結果

問題 No.289 数字を全て足そう
ユーザー go_boardwalkgo_boardwalk
提出日時 2017-03-31 12:02:22
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 90 ms / 1,000 ms
コード長 275 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 13,516 KB
最終ジャッジ日時 2023-09-21 10:35:28
合計ジャッジ時間 1,480 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
11,864 KB
testcase_01 AC 16 ms
11,648 KB
testcase_02 AC 16 ms
11,740 KB
testcase_03 AC 15 ms
11,656 KB
testcase_04 AC 15 ms
11,900 KB
testcase_05 AC 15 ms
11,972 KB
testcase_06 AC 15 ms
11,996 KB
testcase_07 AC 16 ms
12,052 KB
testcase_08 AC 16 ms
11,940 KB
testcase_09 AC 15 ms
11,784 KB
testcase_10 AC 15 ms
11,980 KB
testcase_11 AC 16 ms
11,964 KB
testcase_12 AC 16 ms
12,052 KB
testcase_13 AC 15 ms
11,856 KB
testcase_14 AC 16 ms
12,012 KB
testcase_15 AC 16 ms
11,984 KB
testcase_16 AC 16 ms
12,028 KB
testcase_17 AC 17 ms
11,916 KB
testcase_18 AC 20 ms
12,164 KB
testcase_19 AC 16 ms
12,108 KB
testcase_20 AC 17 ms
11,924 KB
testcase_21 AC 16 ms
11,644 KB
testcase_22 AC 17 ms
12,040 KB
testcase_23 AC 90 ms
13,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define s (read))

(print
 (fold + 0 (map digit->integer
                (filter char-numeric?
                        (string->list
                         (if (symbol? s)
                             (symbol->string s)
                             (number->string s)))))))
0