結果

問題 No.421 しろくろチョコレート
ユーザー koyumeishi
提出日時 2015-02-12 07:56:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 729 bytes
コンパイル時間 1,330 ms
コンパイル使用メモリ 83,528 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-16 06:26:09
合計ジャッジ時間 2,760 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 100
#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