結果

問題 No.207 世界のなんとか
ユーザー RinRin
提出日時 2015-08-25 22:03:37
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 28 ms / 5,000 ms
コード長 631 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-04-17 16:22:43
合計ジャッジ時間 1,729 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
15,872 KB
testcase_01 AC 27 ms
15,872 KB
testcase_02 AC 27 ms
16,128 KB
testcase_03 AC 27 ms
16,128 KB
testcase_04 AC 28 ms
16,000 KB
testcase_05 AC 27 ms
15,872 KB
testcase_06 AC 27 ms
15,872 KB
testcase_07 AC 27 ms
16,128 KB
testcase_08 AC 27 ms
16,128 KB
testcase_09 AC 28 ms
16,000 KB
testcase_10 AC 28 ms
15,872 KB
testcase_11 AC 27 ms
16,128 KB
testcase_12 AC 26 ms
15,872 KB
testcase_13 AC 26 ms
16,000 KB
testcase_14 AC 27 ms
15,872 KB
testcase_15 AC 27 ms
15,872 KB
testcase_16 AC 27 ms
15,872 KB
testcase_17 AC 27 ms
16,128 KB
testcase_18 AC 27 ms
16,000 KB
権限があれば一括ダウンロードができます

ソースコード

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