結果

問題 No.207 世界のなんとか
ユーザー Rin
提出日時 2015-08-25 22:03:37
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 26 ms / 5,000 ms
コード長 631 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 6,820 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-10-09 10:29:46
合計ジャッジ時間 1,235 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

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

(define (CheckThree x)
    (let loop((i x))
        (if (= (modulo i 10) 3)
            #t
            (if (> i 13)
                (loop (floor (/ i 10)))
                #f))))

(let (
      (From (read))
      (To   (read))
      )
    (let loop((i From))
        (begin
            (if (or  (= (modulo i 3) 0 )  (CheckThree i))
                (System.out.println i)
                (when (= From To)
                  (newline)
                )
            )
            (when (< i To)
                (loop (+ i 1))
            )
        )
    )
)
0