結果

問題 No.349 干支の置き物
ユーザー prog470
提出日時 2016-05-14 14:21:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 404 bytes
コンパイル時間 1,977 ms
コンパイル使用メモリ 161,304 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-06 02:31:23
合計ジャッジ時間 2,200 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 9 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)

using namespace std;

int main(){
	
	string s[] = {"ne","ushi","tora","u","tatsu","mi","uma","hitsuji","saru,tori","inu","i"}
	, str[50];

	int n;
	cin>>n;
	rep(i,0,n){
		cin>>str[i];
	}

	string  tmp = str[0];
	rep(i,1,n){
		if(str[i] == tmp){
			cout<<"NO"<<endl;
			return 0;
		}
		tmp = str[i];
	}

	cout<<"YES"<<endl;

	
	return 0;
}
0