結果
| 問題 |
No.349 干支の置き物
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-12 12:59:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 432 bytes |
| コンパイル時間 | 1,221 ms |
| コンパイル使用メモリ | 161,840 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-04 07:13:12 |
| 合計ジャッジ時間 | 4,558 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 1 |
| other | AC * 2 WA * 6 RE * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
string eto[12]={"ne", "ushi", "tora", "u", "tatsu","mi","uma","hitsuji","saru","tori","inu","i"};
string diff[12];
string ans, cnt;
int exec=0;
int n;
cin>>n;
rep(i,n){
cin>>diff[i];
}
rep(i,n){
diff[i]=cnt;
if(cnt==diff[i+1]) exec++;
}
if(exec==1){
cout<<"NO"<<endl;
}else{
cout<<"YES"<<endl;
}
return 0;
}