結果

問題 No.819 Enjapma game
ユーザー leaf_1415
提出日時 2019-04-19 23:35:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 474 ms
コンパイル使用メモリ 55,392 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-23 05:53:17
合計ジャッジ時間 1,336 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int h, w;
char c[205][205];

int main(void)
{
	cin >> h >> w;
	
	int cnt = 0;
	for(int i = 0; i < h; i++){
		for(int j = 0; j < w; j++){
			char c;
			cin >> c;
			if(c == 'o') cnt += (j-1-i+w)%2+1;
		}
	}
	if(cnt%3 == 0) cout << "YES" << endl;
	else cout << "NO" << endl;
	return 0;
}
0