結果

問題 No.3125 Make It Symmetry
ユーザー リテモス
提出日時 2025-04-25 21:41:00
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 485 bytes
コンパイル時間 4,172 ms
コンパイル使用メモリ 253,228 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-04-25 21:41:14
合計ジャッジ時間 5,517 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>

using namespace std;
using namespace atcoder;
using ll = long long;
using mint = modint998244353;

#define rep(i, n) for (int i = 0; i < (n); ++i)

int main() {

  int n; cin >> n;
  vector<string> s(n);
  rep(i,n) cin >> s[i];

  int cnt = 0;

  int N = n/2;

  rep(i,n)rep(j,N){
    if (s[i][j] != s[i][n-1-j]){
      // cout << i << " " << j << endl;
      cnt++;
    }
  }
  cout << (cnt%2==0 ? "Yes" : "No") << endl;

  return 0;
}
0