結果

問題 No.3125 Make It Symmetry
ユーザー moaimomoai
提出日時 2025-04-25 21:30:05
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 584 bytes
コンパイル時間 3,463 ms
コンパイル使用メモリ 277,320 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-25 21:30:38
合計ジャッジ時間 4,854 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 28 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#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<int>> A(n,vector<int>(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";
    }
}
0