結果

問題 No.311 z in FizzBuzzString
ユーザー RinRin
提出日時 2016-04-29 11:12:00
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 16,044 KB
最終ジャッジ日時 2023-10-25 02:43:37
合計ジャッジ時間 1,022 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

(define n (read))

(let ((z (* 16 (quotient n 15)))
     )
  (let loop((foo 3))
    (if (or (> foo 15) (<= n 15))
        (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