結果
| 問題 |
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 |
ソースコード
#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;
}
prog470