結果

問題 No.1941 CHECKER×CHECKER(1)
ユーザー shojin
提出日時 2024-05-05 12:31:40
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 3,040 ms
コンパイル使用メモリ 272,824 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 09:58:32
合計ジャッジ時間 3,705 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
  string S[3];
  for(auto &x : S) cin >> x;
  
  bool yes = false;
  if(S[0] == "#.#" && S[1] == ".#." && S[2] == "#.#") yes = true;
  if(S[0] == ".#." && S[1] == "#.#" && S[2] == ".#.") yes = true;
  
  cout << (yes ? "Yes" : "No");
}
0