結果
問題 |
No.1941 CHECKER×CHECKER(1)
|
ユーザー |
![]() |
提出日時 | 2022-06-17 00:49:20 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 1,804 ms |
コンパイル使用メモリ | 170,172 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-07 11:03:27 |
合計ジャッジ時間 | 2,591 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { vector<string> S( 3 ); cin >> S[0] >> S[1] >> S[2]; string ans = "Yes"; for( int i = 0; i < 3; i++ ) { for( int j = 0; j < 3; j++ ) { if( i + 1 < 3 && S[i][j] == S[i + 1][j] ) ans = "No"; if( j + 1 < 3 && S[i][j] == S[i][j + 1] ) ans = "No"; } } cout << ans << endl; }