結果
問題 |
No.3125 Make It Symmetry
|
ユーザー |
![]() |
提出日時 | 2025-04-25 21:30:32 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 540 bytes |
コンパイル時間 | 3,128 ms |
コンパイル使用メモリ | 274,760 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-04-25 21:31:07 |
合計ジャッジ時間 | 4,381 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 WA * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ll long long #define mod 998244353 int main(){ cin.tie(0)->sync_with_stdio(0); cout.tie(0); int N; char A[509][509]; cin>>N; for(int i=1;i<=N;i++){ for(int j=1;j<=N;j++) cin>>A[i][j]; } int shape=0; for(int i=1;i<=N;i++){ for(int j=1;j<=N;j++){ if(A[i][j]=='#') shape++; } } shape%=N; if(shape%2==0) cout<<"Yes"<<endl; else cout<<"No"<<endl; }