結果
| 問題 | No.289 数字を全て足そう |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-21 18:36:38 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 6 ms / 1,000 ms |
| コード長 | 166 bytes |
| 記録 | |
| コンパイル時間 | 188 ms |
| コンパイル使用メモリ | 35,584 KB |
| 実行使用メモリ | 29,676 KB |
| 最終ジャッジ日時 | 2026-07-07 13:58:33 |
| 合計ジャッジ時間 | 2,227 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 JUL 2026 01:58:30 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.031
ソースコード
(defvar S) (defvar sum) (setq sum 0) (setq S (read-line)) (loop for c across S do (if (digit-char-p c ) (setq sum (+ sum (digit-char-p c))))) (format 't "~d~%" sum)