結果
問題 |
No.82 市松模様
|
ユーザー |
![]() |
提出日時 | 2022-07-10 18:47:58 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 3,532 ms |
コンパイル使用メモリ | 242,928 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 08:46:36 |
合計ジャッジ時間 | 3,037 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int H,W; char A; cin>>H>>W>>A; for(int i=0;i<W;i++){ for(int j=0;j<H;j++){ if((i+j)%2 == 0) cout<<A; else cout<<(char)('B'+'W'-A); } cout<<endl; } }