結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-26 21:37:37 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 5,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 1,049 ms |
| コンパイル使用メモリ | 24,960 KB |
| 実行使用メモリ | 19,584 KB |
| 最終ジャッジ日時 | 2025-03-26 21:37:40 |
| 合計ジャッジ時間 | 2,207 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 26 MAR 2025 09:37:37 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.054
ソースコード
(defvar S)
(defvar ans)
(setq ans 1)
(loop for char = (read-char nil nil) do
(if (eq char #\Newline) (return))
(setq ans (* ans 2))
(if (eq char #\R) (setq ans (+ ans 1)))
)
(format 't "~d~%" ans)