結果
| 問題 |
No.3125 Make It Symmetry
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2025-04-26 06:14:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 354 bytes |
| コンパイル時間 | 321 ms |
| コンパイル使用メモリ | 81,864 KB |
| 実行使用メモリ | 57,052 KB |
| 最終ジャッジ日時 | 2025-04-26 06:14:24 |
| 合計ジャッジ時間 | 3,074 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 36 |
ソースコード
N = int(input())
A = []
black = 0
white = 0
for _ in range(N):
s = input()
b = s.count('#')
black += b
white += N - b
A.append(s)
def solve():
if N % 2 == 0:
if black % 2 == 1: return False
if white % 2 == 1: return False
return True
return True
if solve():
print('Yes')
else:
print('No')
norioc