結果
| 問題 | No.3125 Make It Symmetry |
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2025-04-28 14:01:55 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 2,000 ms |
| コード長 | 528 bytes |
| 記録 | |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 54,348 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-10 09:21:46 |
| 合計ジャッジ時間 | 2,101 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 36 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 3125.cc: No.3125 Make It Symmetry - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* constant */
const int MAX_N = 500;
/* typedef */
/* global variables */
char s[MAX_N + 4];
/* subroutines */
/* main */
int main() {
int n;
scanf("%d", &n);
int cnt = 0;
for (int i = 0; i < n; i++) {
scanf("%s", s);
for (int j = 0; j < n; j++)
if (s[j] == '#') cnt++;
}
if (! (n & 1) && (cnt & 1)) puts("No");
else puts("Yes");
return 0;
}
tnakao0123