結果

問題 No.819 Enjapma game
ユーザー convexineqconvexineq
提出日時 2021-03-23 06:01:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 1,470 ms
コンパイル使用メモリ 86,764 KB
実行使用メモリ 75,896 KB
最終ジャッジ日時 2023-08-16 09:38:56
合計ジャッジ時間 5,188 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
70,948 KB
testcase_01 AC 69 ms
71,188 KB
testcase_02 AC 68 ms
71,188 KB
testcase_03 AC 70 ms
70,928 KB
testcase_04 AC 68 ms
71,108 KB
testcase_05 AC 69 ms
71,100 KB
testcase_06 AC 72 ms
71,144 KB
testcase_07 AC 70 ms
71,060 KB
testcase_08 AC 70 ms
71,260 KB
testcase_09 AC 72 ms
71,256 KB
testcase_10 AC 71 ms
71,208 KB
testcase_11 AC 88 ms
75,484 KB
testcase_12 AC 77 ms
75,564 KB
testcase_13 AC 78 ms
75,716 KB
testcase_14 AC 78 ms
75,600 KB
testcase_15 AC 79 ms
75,836 KB
testcase_16 AC 78 ms
75,644 KB
testcase_17 AC 78 ms
75,756 KB
testcase_18 AC 77 ms
75,896 KB
testcase_19 AC 78 ms
75,788 KB
testcase_20 AC 76 ms
75,720 KB
testcase_21 AC 76 ms
75,852 KB
testcase_22 AC 80 ms
75,744 KB
testcase_23 AC 77 ms
75,532 KB
testcase_24 AC 78 ms
75,768 KB
testcase_25 AC 80 ms
75,824 KB
testcase_26 AC 76 ms
75,716 KB
testcase_27 AC 75 ms
75,620 KB
testcase_28 AC 78 ms
75,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

h,w = map(int,input().split())
b = [input() for _ in range(h)]
r = [0,0]
cnt = 0
for i in range(h):
    for j in range(w):
        if b[i][j] == "o":
            cnt += 1
            r[(i+j)%2] += 1
print("YES" if (cnt+r[0])%3==0 else "NO")
0