結果

問題 No.207 世界のなんとか
ユーザー MOD9cXWdOsRxvPyMOD9cXWdOsRxvPy
提出日時 2022-09-19 12:08:52
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 5,368 KB
実行使用メモリ 14,896 KB
最終ジャッジ日時 2023-08-23 18:49:03
合計ジャッジ時間 1,605 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 24 ms
12,620 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 25 ms
12,580 KB
testcase_07 AC 24 ms
12,584 KB
testcase_08 AC 25 ms
12,596 KB
testcase_09 AC 25 ms
12,692 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 25 ms
12,624 KB
testcase_17 AC 25 ms
12,648 KB
testcase_18 AC 25 ms
12,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (chk3p n)
  (cond
   ((= 0 (mod n 3)) #t)
   ((or (= 3 (div n 10)) (= 3 (mod n 10))) #t)
   (else #f)))

(define (take3 ap)
    (filter (^ (x) (chk3p x)) ap))

(let* ((from (read)) (to (read)))
  (map (^ (x) (display x) (newline))
       (take3 (iota (+ 1 (- to from)) from)))
  )
0