結果
問題 |
No.82 市松模様
|
ユーザー |
|
提出日時 | 2024-03-27 19:53:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 1,649 ms |
コンパイル使用メモリ | 192,752 KB |
最終ジャッジ日時 | 2025-02-20 14:05:04 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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"); }