結果

問題 No.819 Enjapma game
ユーザー leaf_1415leaf_1415
提出日時 2019-04-19 23:35:02
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 55,600 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 13:31:48
合計ジャッジ時間 1,762 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 WA -
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 2 ms
4,348 KB
testcase_09 AC 1 ms
4,348 KB
testcase_10 AC 2 ms
4,348 KB
testcase_11 AC 3 ms
4,348 KB
testcase_12 AC 4 ms
4,348 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 3 ms
4,348 KB
testcase_16 AC 4 ms
4,348 KB
testcase_17 AC 3 ms
4,348 KB
testcase_18 AC 4 ms
4,348 KB
testcase_19 AC 3 ms
4,348 KB
testcase_20 WA -
testcase_21 AC 4 ms
4,348 KB
testcase_22 AC 4 ms
4,348 KB
testcase_23 AC 3 ms
4,348 KB
testcase_24 AC 4 ms
4,348 KB
testcase_25 AC 3 ms
4,348 KB
testcase_26 AC 4 ms
4,348 KB
testcase_27 AC 3 ms
4,348 KB
testcase_28 AC 3 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

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