結果

問題 No.421 しろくろチョコレート
ユーザー koyumeishi
提出日時 2016-09-09 16:31:58
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 752 bytes
コンパイル時間 719 ms
コンパイル使用メモリ 87,824 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-16 08:52:21
合計ジャッジ時間 2,252 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 65
権限があれば一括ダウンロードができます

ソースコード

diff #

//入力チェック用
#include <iostream>
#include <vector>
#include <cstdio>
#include <sstream>
#include <map>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>
#include "assert.h"
#include <ctime>
#include <fstream>

using namespace std;

#define MAX_N 50
#define MIN_N 1


void checker(int n, int m, vector<string> &v){
	assert(MIN_N <= n);
	assert(n <= MAX_N);
	
	assert(MIN_N <= m);
	assert(m <= MAX_N);

	string s = "wb";
	assert(v.size() == n);
	for(int i=0; i<n; i++){
		assert(v[i].size() == m);
		for(int j=0; j<m; j++){
			assert( v[i][j] == s[(i+j)%2] || v[i][j] == '.');
		}
	}
}


int main(){
	int n,m;
	cin >> n >> m;
	vector<string> v(n);
	for(int i=0; i<n; i++){
		cin >> v[i];
	}
	checker(n,m,v);
	return 0;
}
0