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