結果

問題 No.3125 Make It Symmetry
ユーザー sasa8uyauya
提出日時 2025-04-25 22:05:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 374 ms
コンパイル使用メモリ 82,228 KB
実行使用メモリ 57,084 KB
最終ジャッジ日時 2025-04-25 22:05:44
合計ジャッジ時間 3,408 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 35 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

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