| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132049 | 王丞杰 | 19老李吃水果 | C++ | Wrong Answer | 1 MS | 264 KB | 321 | 2025-10-04 23:11:49 |
#include<bits/stdc++.h> using namespace std; int a[10050]; int main(){ int n,m,d; cin>>n; while(n--){ d=1; cin>>m; for(int i=1;i<=m;i++){ cin>>a[i]; } for(int i=1;i<m;i++){ if(a[i]==a[i+1])d=0; } if(d==1){ cout<<"Y"<<endl; } else if(d==0){ cout<<"N"<<endl; } } }
------Input------
5 6 1 2 4 2 2 4 5 1 1 1 2 1 5 1 1 1 2 1 5 1 1 1 2 1 5 1 1 1 2 1
------Answer-----
Y N N N N
------Your output-----
N N N N N