結果

問題 No.289 数字を全て足そう
ユーザー nohopennohopen
提出日時 2019-02-11 08:24:49
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 26 ms / 1,000 ms
コード長 157 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 17,024 KB
最終ジャッジ日時 2024-07-17 13:24:07
合計ジャッジ時間 2,216 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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