結果
| 問題 | No.632 穴埋め門松列 | 
| コンテスト | |
| ユーザー |  ikd | 
| 提出日時 | 2019-08-04 14:29:58 | 
| 言語 | Scheme (Gauche-0.9.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 22 ms / 1,000 ms | 
| コード長 | 544 bytes | 
| コンパイル時間 | 54 ms | 
| コンパイル使用メモリ | 5,120 KB | 
| 実行使用メモリ | 16,000 KB | 
| 最終ジャッジ日時 | 2024-07-08 07:01:54 | 
| 合計ジャッジ時間 | 874 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 | 
ソースコード
#! /usr/bin/env gosh
(define (kado s)
  (let* ([l (string-split s " ")]
         [a (string->number (car l))]
         [b (string->number (car (cdr l)))]
         [c (string->number (car (cdr (cdr l))))])
      (and (not (= a c))
           (or (and (< a b)
                    (< c b))
               (and (> a b)
                    (> c b))))))
(let ([s (read-line)])
  (display (if (kado (regexp-replace #/\?/ s "1"))
             "1"
             ""))
  (display (if (kado (regexp-replace #/\?/ s "4"))
             "4"
             "")))
            
            
            
        