結果

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

ソースコード

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 += max(j-1-i, w)%2+1;
		}
	}
	if(cnt%3 == 0) cout << "YES" << endl;
	else cout << "NO" << endl;
	return 0;
}
0