結果
| 問題 | No.82 市松模様 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-12-02 23:29:40 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 264µs | |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 38,144 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-25 09:05:41 |
| 合計ジャッジ時間 | 998 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <stdio.h>
const char *s="BW";
int main(){
int W,H;
char 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;
}