結果
| 問題 | No.82 市松模様 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-27 19:53:12 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 1,126 ms |
| コンパイル使用メモリ | 211,708 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-04 06:42:47 |
| 合計ジャッジ時間 | 2,091 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef int64_t lint;
int main()
{
lint w,h;
char c;
cin>>w>>h>>c;
for(lint i=0;i<h;i++){
for(lint j=0;j<w;j++){
if((i+j)%2==1 ^ c=='B'){
cout<<"B";
}
else{
cout<<"W";
}
}
cout<<""<<endl;
}
// system("pause");
}