結果
問題 |
No.3125 Make It Symmetry
|
ユーザー |
![]() |
提出日時 | 2025-04-25 21:31:40 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 662 bytes |
コンパイル時間 | 6,385 ms |
コンパイル使用メモリ | 333,112 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-04-25 21:32:06 |
合計ジャッジ時間 | 7,566 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 26 |
ソースコード
#include <bits/stdc++.h> using namespace std; using namespace chrono; #if __has_include(<atcoder/all>) #include <atcoder/all> using namespace atcoder; #endif int main() { int64_t n; cin >> n; vector<string> ss(n); for (auto &&s : ss) { cin >> s; } int64_t cnt = 0; for (auto &&s : ss) { for (auto &&c : s) { if (c == '#') { cnt++; } } } if (n % 2 == 0) { cout << ((2 * cnt == n * n) ? "Yes" : "No") << endl; } else { cout << ((2 * cnt == n * (n - 1)) ? "Yes" : "No") << endl; } return 0; }