結果
問題 |
No.1941 CHECKER×CHECKER(1)
|
ユーザー |
![]() |
提出日時 | 2022-05-20 21:25:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 819 bytes |
コンパイル時間 | 3,451 ms |
コンパイル使用メモリ | 231,236 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-20 07:13:01 |
合計ジャッジ時間 | 4,363 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; //const long nPrime = 1000000007; //const long nPrime = 998244353; typedef long long ll; int main() { vector<vector<ll>> vviNum(3,vector<ll>(3,0)); for(ll i = 0; i < 3; i++){ string s; cin >> s; for(ll j = 0; j < 3; j++){ if(s[j] == '#'){ vviNum[i][j] = 1; } } } for(ll i = 0; i < 2; i++){ for(ll j = 0; j < 3; j++){ if(vviNum[i][j] == vviNum[i+1][j]){ cout << "No" <<endl; return 0; } if(vviNum[j][i] == vviNum[j][i+1]){ cout << "No" <<endl; return 0; } } } cout << "Yes" <<endl; return 0; }