結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
stack9996
|
| 提出日時 | 2015-08-29 17:31:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 551 bytes |
| コンパイル時間 | 538 ms |
| コンパイル使用メモリ | 70,220 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-18 15:34:01 |
| 合計ジャッジ時間 | 1,006 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 5 WA * 2 |
ソースコード
#include <iostream>
#include <cstdio>
#include <numeric>
#include <algorithm>
#include <string>
#include <vector>
#include <functional>
#include <cmath>
#include <queue>
#define rep(i, a) FOR(i, 0, a)
#define FOR(i, a, b) for(int i = a; i < b; ++i)
typedef long long ll;
typedef unsigned long long ull;
typedef std::pair<int, int> P;
struct edge{ int to, time, cost; };
int main(){
int w, h;
char a;
std::cin >> w >> h >> a;
rep(i, h){
rep(j, w){
std::cout << a;
a = (a == 'W' ? 'B' : 'W');
}
std::cout << std::endl;
}
return 0;
}
stack9996