結果

問題 No.289 数字を全て足そう
ユーザー go_boardwalk
提出日時 2017-03-31 12:02:22
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 103 ms / 1,000 ms
コード長 275 bytes
コンパイル時間 32 ms
コンパイル使用メモリ 6,812 KB
実行使用メモリ 17,152 KB
最終ジャッジ日時 2024-07-07 04:39:50
合計ジャッジ時間 1,409 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

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