結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-03-21 15:53:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 247 bytes |
| コンパイル時間 | 1,780 ms |
| コンパイル使用メモリ | 165,696 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 00:34:14 |
| 合計ジャッジ時間 | 2,113 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
int h,w;char c;cin>>h>>w>>c;
char a='B';
if(c==a)a='W';
for(int i=0;i<w;i++){
for(int j=0;j<h;j++){
cout<<((i+j)&1?a:c);
}cout<<endl;
}
}
cureskol