結果
問題 |
No.82 市松模様
|
ユーザー |
![]() |
提出日時 | 2015-08-25 23:52:43 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 557 bytes |
コンパイル時間 | 74 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 16,384 KB |
最終ジャッジ日時 | 2024-07-18 14:36:20 |
合計ジャッジ時間 | 947 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 2 WA * 5 |
ソースコード
(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) (CngClr Color)) ) ) (loop (+ i 1) j (CngClr Color)) ) ) ) )