結果
問題 |
No.3125 Make It Symmetry
|
ユーザー |
|
提出日時 | 2025-05-02 20:01:02 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 322 bytes |
コンパイル時間 | 3,380 ms |
コンパイル使用メモリ | 276,712 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-05-02 20:01:07 |
合計ジャッジ時間 | 5,221 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 10 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll=long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll N; cin>>N; vector<string> S(N); ll cnt=0; for(int i=0;i<N;i++){ cin>>S[i]; for(int j=0;j*2<N;j++)if(S[i][j]!=S[i][N-j-1])cnt++; } cout<<(cnt%2==0?"Yes":"No")<<endl; }