-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathArt.c
54 lines (45 loc) · 880 Bytes
/
Art.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
the_wolverine
Ashutosh Verma - ashutoshvrm8@gmail.com
Submitting on behalf of team wishmegoodluck
*/
#include<stdio.h>
#include<string.h>
void wake_up_gaurav_bhatt()
{
/*damn that boy is is sleeping*/
}
int main()
{
long long int t,n,i,q,yo;
long long int a[100000];
scanf("%lld",&t);
while(t--)
{
scanf("%lld",&n);
for(i=0;i<n;i++)
scanf("%lld",&a[i]);
if(n<=2)
printf("No\n");
for(i=0;i<n;i++)
{
yo=1;
for(q=i+1;q<i+3;q++)
{
if(a[i]!=a[q])
{
yo=0;
break;
}
}
if(yo==1)
{
printf("Yes\n");
goto space;
}
}
printf("No\n");
space:;
}
return 0;
}