結果
| 問題 |
No.1941 CHECKER×CHECKER(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-11 00:58:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 379 bytes |
| コンパイル時間 | 2,157 ms |
| コンパイル使用メモリ | 193,476 KB |
| 最終ジャッジ日時 | 2025-02-08 01:19:04 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define fi first
#define se second
#define all(a) a.begin(),a.end()
int main(){
vector<string> s(3);
for(int i=0; i<3; ++i) cin >> s[i];
if(s[0]=="#.#" && s[1]==".#." && s[2]=="#.#") cout << "Yes\n";
else if(s[0]==".#." && s[1]=="#.#" && s[2]==".#.") cout << "Yes\n";
else cout << "No\n";
return 0;
}