-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaypian.cpp
More file actions
44 lines (39 loc) · 815 Bytes
/
Copy pathplaypian.cpp
File metadata and controls
44 lines (39 loc) · 815 Bytes
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
#include <iostream>
#include <vector>
#include <cstring> //this is required when uploading on codechef to avoid compile time error of strlen was not declared in scope
using namespace std;
/*
int main()
{
vector<char> result;
int t;
cin>>t;
for (int i=0; i<t; i++)
{
char string[100];
cin>>string;
size_t len = strlen(string);
for (int j=0; j<len; j=j+2)
{
if(string[j] == string[j+1])
{
result.push_back(0);
goto label;
}
}
result.push_back(1);
label:;
}
for (int k=0; k<t; k++) {
if(result[k] == 1)
{
cout<<"yes"<<"\n";
}
else
{
cout<<"no"<<"\n";
}
}
return 0;
}
*/