結果

問題 No.207 世界のなんとか
ユーザー Masahiro HayashiMasahiro Hayashi
提出日時 2015-05-31 14:45:47
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 35 ms / 5,000 ms
コード長 346 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 17,664 KB
最終ジャッジ日時 2024-04-17 16:14:52
合計ジャッジ時間 1,903 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
17,536 KB
testcase_01 AC 33 ms
17,664 KB
testcase_02 AC 33 ms
17,536 KB
testcase_03 AC 32 ms
17,536 KB
testcase_04 AC 33 ms
17,536 KB
testcase_05 AC 33 ms
17,536 KB
testcase_06 AC 34 ms
17,536 KB
testcase_07 AC 33 ms
17,536 KB
testcase_08 AC 33 ms
17,536 KB
testcase_09 AC 33 ms
17,536 KB
testcase_10 AC 32 ms
17,536 KB
testcase_11 AC 33 ms
17,536 KB
testcase_12 AC 33 ms
17,664 KB
testcase_13 AC 32 ms
17,536 KB
testcase_14 AC 32 ms
17,536 KB
testcase_15 AC 32 ms
17,536 KB
testcase_16 AC 31 ms
17,536 KB
testcase_17 AC 32 ms
17,536 KB
testcase_18 AC 32 ms
17,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env gosh

(use srfi-13)

(define (main args)
  (receive (a b) (apply values (map string->number (string-split (read-line) " ")))
    (let loop ([i a])
      (cond
       [(<= i b)
        (when (or (= (mod i 3) 0)
                  (string-contains (number->string i) "3"))
          (print i))
        (loop (+ i 1))])
       ))
  0)
0