結果
問題 |
No.3125 Make It Symmetry
|
ユーザー |
![]() |
提出日時 | 2025-04-25 22:38:35 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 6 ms / 2,000 ms |
コード長 | 342 bytes |
コンパイル時間 | 3,349 ms |
コンパイル使用メモリ | 273,040 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-04-25 22:38:40 |
合計ジャッジ時間 | 4,686 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 36 |
ソースコード
#include <bits/stdc++.h> int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; std::cin >> n; int cnt = 0; for (int i = 0; i < n; i++) { std::string a; std::cin >> a; for (int j = 0; j < n; j++) { cnt += a[j] == '#'; } } std::cout << (n % 2 == 0 && cnt % 2 ? "No\n" : "Yes\n"); }