結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-06-07 03:11:11 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 9 ms / 5,000 ms |
| コード長 | 285 bytes |
| 記録 | |
| コンパイル時間 | 1,298 ms |
| コンパイル使用メモリ | 29,440 KB |
| 実行使用メモリ | 22,272 KB |
| 最終ジャッジ日時 | 2026-06-07 03:11:19 |
| 合計ジャッジ時間 | 2,847 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
| 純コード判定待ち |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 JUN 2026 03:11:11 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.020
ソースコード
(defun nowroot (s)
(let ((result 1) (i 0))
(loop while (< i (length s)) do
(if (char= (char s i) #\L)
(setf result (* result 2)) (setf result (1+ (* result 2))))
(incf i))
result)
)
(defun main () (let ((S (read-line))) (format t "~A~%" (nowroot S))))
(main)