結果
| 問題 |
No.3125 Make It Symmetry
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-25 21:33:19 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 2,000 ms |
| コード長 | 586 bytes |
| コンパイル時間 | 3,565 ms |
| コンパイル使用メモリ | 278,400 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-04-25 21:33:33 |
| 合計ジャッジ時間 | 4,816 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 36 |
ソースコード
#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
long long int LMINF = -1e18;
long long int modint = 1000000007;
int main() {
int n;
cin >> n;
vector<vector<char>> A(n,vector<char>(n));
int count = 0;
for(int i = 0; i < n; i++){
for(int j = 0; j < n; j++){
cin >> A[i][j];
if(A[i][j] == '#'){
count++;
}
}
}
if(n%2 == 0){
if(count%2 == 0) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "Yes";
}
}