結果

問題 No.82 市松模様
ユーザー Rin
提出日時 2015-08-25 23:54:31
言語 Scheme
(Gauche-0.9.15)
結果
WA  
実行時間 -
コード長 548 bytes
コンパイル時間 39 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 16,384 KB
最終ジャッジ日時 2024-07-18 14:36:32
合計ジャッジ時間 783 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 4 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (System.out.println x)
  (begin
    (display x)
    (newline)
  )
)

(define W "W")
(define B "B")

(define (CngClr C)
  (if (eq? C W)
      B
      W
  )
)

(let (
      (W (read))
      (H (read))
      (C (read))
     )
  (let loop((i 1) (j 1) (Color C))
    (begin
      (display Color)
      (if (= i W)
          (if (= j H)
                (newline)
                (begin
                  (newline)
                  (loop 1 (+ j 1) Color)
                )
          )
          (loop (+ i 1) j (CngClr Color))
      )
    )
  )
)
0