結果

問題 No.82 市松模様
ユーザー RinRin
提出日時 2015-08-25 23:54:31
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 548 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 5,340 KB
実行使用メモリ 14,264 KB
最終ジャッジ日時 2023-09-25 18:25:11
合計ジャッジ時間 910 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
11,692 KB
testcase_01 WA -
testcase_02 AC 18 ms
11,624 KB
testcase_03 AC 18 ms
11,708 KB
testcase_04 WA -
testcase_05 AC 19 ms
13,604 KB
testcase_06 WA -
testcase_07 AC 18 ms
11,884 KB
testcase_08 AC 20 ms
11,944 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

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