結果

問題 No.289 数字を全て足そう
ユーザー go_boardwalkgo_boardwalk
提出日時 2017-03-31 11:46:57
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 91 ms / 1,000 ms
コード長 147 bytes
コンパイル時間 26 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 13,696 KB
最終ジャッジ日時 2023-09-21 10:35:20
合計ジャッジ時間 1,647 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
11,728 KB
testcase_01 AC 17 ms
11,748 KB
testcase_02 AC 17 ms
11,680 KB
testcase_03 AC 15 ms
11,720 KB
testcase_04 AC 15 ms
11,844 KB
testcase_05 AC 16 ms
11,800 KB
testcase_06 AC 16 ms
11,952 KB
testcase_07 AC 17 ms
12,136 KB
testcase_08 AC 18 ms
12,300 KB
testcase_09 AC 16 ms
11,780 KB
testcase_10 AC 16 ms
11,876 KB
testcase_11 AC 17 ms
12,272 KB
testcase_12 AC 17 ms
12,260 KB
testcase_13 AC 17 ms
12,088 KB
testcase_14 AC 18 ms
12,484 KB
testcase_15 AC 17 ms
12,148 KB
testcase_16 AC 17 ms
12,144 KB
testcase_17 AC 17 ms
12,192 KB
testcase_18 AC 18 ms
12,220 KB
testcase_19 AC 17 ms
12,084 KB
testcase_20 AC 17 ms
12,280 KB
testcase_21 AC 15 ms
11,728 KB
testcase_22 AC 18 ms
12,216 KB
testcase_23 AC 91 ms
13,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define s (read))

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