結果

問題 No.3125 Make It Symmetry
ユーザー sasa8uyauya
提出日時 2025-04-25 22:07:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 82,264 KB
実行使用メモリ 56,832 KB
最終ジャッジ日時 2025-04-25 22:08:09
合計ジャッジ時間 3,037 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
c=0
for i in range(n):
	s=input()
	c+=s.count("#")
if c==0:
	print("Yes")
	exit()
if n%2:
	for i in range(1,n+1):
		c-=1
		if c>=0 and c%2==0:
			print("Yes")
			exit()
	print("No")
else:
	print(["No","Yes"][c%2==0])
0