結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー Rin
提出日時 2015-09-04 16:25:01
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 26 ms / 1,000 ms
コード長 607 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 6,820 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-11-18 09:28:42
合計ジャッジ時間 1,592 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (System.out.println x)
  (begin
    (display x)
    (newline)
  )
)

(let (
      (foo (string-append (symbol->string (read)) (symbol->string (read))))
     )
  (let loop(
            (i 0)
            (Vacation 0)
            (MaxVac 0)
           )
    (if (= i 14)
        (System.out.println MaxVac)
        (if (string=? (list->string (list (string-ref foo i))) "o")
            (if (< MaxVac (+ Vacation 1))
                (loop (+ i 1) (+ Vacation 1) (+ Vacation 1))
                (loop (+ i 1) (+ Vacation 1) MaxVac)
            )
            (loop (+ i 1) 0 MaxVac)
        )
    )
  )
)
0