結果

問題 No.3125 Make It Symmetry
ユーザー テナガザル
提出日時 2025-04-25 21:24:36
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 999 ms
コンパイル使用メモリ 98,896 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-25 21:24:40
合計ジャッジ時間 2,251 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main()
{
    int n;
    cin >> n;
    vector<string> s(n);
    for (int i = 0; i < n; ++i) cin >> s[i];
    int ans = 0;
    int cnt = 0;
    for (int i = 0; i < n; ++i) for (auto c : s[i]) if (c == '#') ++cnt;
    if (n % 2 || cnt % 2 == 0) ans = 1;
    cout << (ans ? "Yes" : "No") << endl;
}
0