結果

問題 No.1941 CHECKER×CHECKER(1)
ユーザー futamegawa
提出日時 2023-08-12 16:11:09
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 408 bytes
コンパイル時間 2,008 ms
コンパイル使用メモリ 167,552 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-20 05:10:15
合計ジャッジ時間 2,647 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using ll = long long;
using llu = long long unsigned;

using namespace std;

int main() {
    string S[3];
    cin >> S[0] >> S[1] >> S[2];

    string S1, S2;
    S1 = ".#.";
    S2 = "#.#";

    string result = "No";
    if (S1==S[0] && S2==S[1] && S1==S[2]) { result = "Yes"; }
    if (S2==S[0] && S1==S[1] && S2==S[2]) { result = "Yes"; }
    cout << result << endl; return 0;
}
0