結果
問題 |
No.3125 Make It Symmetry
|
ユーザー |
👑 |
提出日時 | 2025-03-22 12:19:48 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 8 ms / 2,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 3,552 ms |
コンパイル使用メモリ | 274,020 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-22 12:19:54 |
合計ジャッジ時間 | 5,762 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 36 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int cnt = 0; for (int i = 0; i < N; i++) { string a; cin >> a; cnt += count(a.begin(), a.end(), '#'); } if (N % 2 == 1 || cnt % 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }