結果
問題 |
No.3125 Make It Symmetry
|
ユーザー |
|
提出日時 | 2025-04-30 02:51:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 382 bytes |
コンパイル時間 | 2,636 ms |
コンパイル使用メモリ | 192,424 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2025-04-30 02:51:14 |
合計ジャッジ時間 | 4,637 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 36 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; if(n % 2 == 1){ cout << "Yes\n"; return 0; } int f = 0; string s; for(int y = 0; y < n; y++){ cin >> s; f ^= count(s.begin(), s.end(), '#') & 1; } cout << (f == 0 ? "Yes" : "No") << '\n'; }