結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
Rin
|
| 提出日時 | 2015-08-23 20:19:00 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
OLE
|
| 実行時間 | - |
| コード長 | 520 bytes |
| コンパイル時間 | 29 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 20,608 KB |
| 最終ジャッジ日時 | 2024-07-18 13:03:52 |
| 合計ジャッジ時間 | 12,399 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | OLE * 1 -- * 18 |
ソースコード
(define (CheckThree x)
(let loop((i x))
(if (= (modulo i 10) 3)
#t
(if (> i 3)
(loop (inexact->exact (floor (/ i 10))))
#f))))
(let (
(From (read (current-input-port)))
(To (read (current-input-port)))
)
(let loop((i From))
(begin
(when (or (= (modulo i 3) 0 ) (CheckThree i))
(begin (display i) (newline)))
(unless (= i To)
(loop (+ i 1)))
)
)
)
Rin