結果
問題 | No.1941 CHECKER×CHECKER(1) |
ユーザー |
![]() |
提出日時 | 2022-05-21 00:11:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 643 bytes |
コンパイル時間 | 1,909 ms |
コンパイル使用メモリ | 197,056 KB |
最終ジャッジ日時 | 2025-01-29 12:15:02 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; using P = pair<int, int>; const int inf = 1073741824; const long long linf = 1152921504606846976; // const int mod = 998244353; // const int mod = 1000000007; const int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1}; void _main() { vector<string> s(3); for (int i = 0; i < 3; i++) cin >> s[i]; vector<string> s1(3), s2(3); string h = "#.#", d = ".#."; s1[0] = h; s1[1] = d; s1[2] = h; s2[0] = d; s2[1] = h; s2[2] = d; cout << ((s == s1 or s == s2) ? "Yes\n" : "No\n"); return; } int main() { ios::sync_with_stdio(false); cin.tie(0); cout << fixed << setprecision(15); _main(); }