結果

問題 No.311 z in FizzBuzzString
ユーザー Rin
提出日時 2016-04-29 11:15:31
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 27 ms / 1,500 ms
コード長 375 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 16,000 KB
最終ジャッジ日時 2024-09-24 21:39:22
合計ジャッジ時間 1,503 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

(define n (read))

(let ((z (* 16 (quotient n 15)))
      (tmp (modulo n 15))
     )
  (let loop((foo 3))
    (if (> foo tmp)
        (begin (display z) (newline))
          (begin
            (when (= (modulo foo 3) 0)
              (set! z (+ z 2)))
            (when (= (modulo foo 5) 0)
              (set! z (+ z 2)))
            (loop (+ foo 1))
          )
    )
  )
)
0