My issue
can u explain the problem statement clearly
My code
# cook your dish here
Problem Link: Weapon Value Practice Coding Problem
can u explain the problem statement clearly
# cook your dish here
Problem Link: Weapon Value Practice Coding Problem
@nageswarijampa
here refer the following code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
string s[n];
for(int i=0;i<n;i++)
{
cin>>s[i];
}
int ans=0;
for(int i=0;i<10;i++)
{
int an=0;
for(int j=0;j<n;j++)
{
an=an^(s[j][i]-'0');
}
ans+=an;
}
cout<< ans<<endl;
}
return 0;
}