結果
| 問題 | No.82 市松模様 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-12-02 23:28:47 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 40,384 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-04 10:06:12 |
| 合計ジャッジ時間 | 585 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 4 WA * 3 |
ソースコード
#include <stdio.h>
const char *s="BW";
int main(){
int W,H,C;
scanf("%d %d %c",&W,&H,&C);
C=C==W;
int y,x;
for(y=0;y<H;y++){
for(x=0;x<W;x++){
putchar(s[(y+x+C)%2]);
}
puts("");
}
return 0;
}