結果
| 問題 |
No.870 無敵囲い
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-08 15:03:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 387 bytes |
| コンパイル時間 | 1,550 ms |
| コンパイル使用メモリ | 167,248 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-29 06:41:34 |
| 合計ジャッジ時間 | 2,288 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 18 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
typedef long long ll;
int main(){
int n; cin>>n;
string a,b,c; a="28"; b="39"; c="79";
rep(i,n){
string p,m,t;
cin>>p>>t; p+=t;
cin>>m>>t; m+=t;
if(p==a) a=m;
else if(p==b) b=m;
else if(p==c) c=m;
}
if(a=="58"&&b=="48"&&c=="68") cout << "Yes" << endl;
else cout << "No" << endl;
}