MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/Maths/EvenArray.cpp:8–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace std;
7
8int main() {
9
10int t;
11cin>>t;
12while(t--){
13 string s;
14 cin>>s;
15 cout<<s[0];
16 for(int i=1;i<s.length()-1;i+=2){
17 cout<<s[i];
18 }
19 cout<<s[s.length()-1]<<endl;
20}
21return 0;
22}

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected