結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2022-09-19 13:22:07 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 38 ms / 5,000 ms |
コード長 | 337 bytes |
コンパイル時間 | 255 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 17,280 KB |
最終ジャッジ日時 | 2024-12-22 02:26:26 |
合計ジャッジ時間 | 1,818 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
(define (chk-each-digit3 n) (string-scan (number->string n) "3")) (define (chk3p n) (cond ((= 0 (mod n 3)) #t) ((chk-each-digit3 n) #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))) )