結果

問題 No.104 国道
ユーザー keiden
提出日時 2024-09-19 21:20:11
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 200 bytes
コンパイル時間 40 ms
コンパイル使用メモリ 6,812 KB
実行使用メモリ 16,640 KB
最終ジャッジ日時 2024-09-19 21:20:14
合計ジャッジ時間 1,405 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

(use srfi.13)

(define yuki104
  (let*
    (
      (s (read-line))
      (f (lambda (l) (string-fold (lambda (c r) (if (equal? #\L c) (* 2 r) (+ 1 (* 2 r)))) 1 l))))
    (write (f s))
    (newline)))
0