Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
6
using namespace std;
7
8
int main() {
9
10
int t;
11
cin>>t;
12
while(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
}
21
return 0;
22
}
Callers
nothing calls this directly
Calls
1
length
Method · 0.80
Tested by
no test coverage detected