結果
問題 |
No.1941 CHECKER×CHECKER(1)
|
ユーザー |
|
提出日時 | 2022-05-21 00:29:40 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 411 bytes |
コンパイル時間 | 1,862 ms |
コンパイル使用メモリ | 199,116 KB |
最終ジャッジ日時 | 2025-01-29 12:21:11 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; using vll = vector<ll>; #define all(A) A.begin(),A.end() #define rep(i, n) for (ll i = 0; i < (ll) (n); i++) int main() { vector<string> S(3); rep(i,3)cin>>S[i]; if(S==vector<string>({"#.#",".#.","#.#"})||S==vector<string>({".#.","#.#",".#."})){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }