結果
| 問題 | No.82 市松模様 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-11 03:22:07 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 279µs | |
| コード長 | 305 bytes |
| 記録 | |
| コンパイル時間 | 1,818 ms |
| コンパイル使用メモリ | 171,584 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-11 03:22:10 |
| 合計ジャッジ時間 | 3,294 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ll = long long;
int main(void){
int w, h; char c[2]; cin >> w >> h >> c[0];
c[1]='W'+'B'-c[0];
for(int i=0; i<h; i++){
for(int j=0; j<w; j++){
cout << c[(i+j)%2];
}
cout << endl;
}
return 0;
}