My issue
My code
#include <iostream>
using namespace std;
int main() {
int t,n;
string s[30];
cin>>t;
while(t--)
{
cin>>n;
cin>>s;
int j=0;
while(j<n)
{
if(s[j]==0){
if(s[j+1]==0)
printf("A");
else
printf("T");
}
else if(s[j]==1){
if(s[j+1]==0)
printf("C");
else
printf("G");
}
j+=2;
}
cout<<endl;
}
return 0;
}
Problem Link: DNASTORAGE Problem - CodeChef