結果
問題 | No.3125 Make It Symmetry |
ユーザー |
![]() |
提出日時 | 2025-04-25 21:22:38 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 8 ms / 2,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 3,281 ms |
コンパイル使用メモリ | 274,368 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-04-25 21:22:45 |
合計ジャッジ時間 | 4,800 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 36 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int N; cin >> N; int cnt = 0; for(int i = 0; i < N; i++) { string s; cin >> s; for(char c : s) cnt += (c == '#'); } cout << (N % 2 == 1 || cnt % 2 == 0 ? "Yes" : "No") << endl; }