#include <stdio.h>
#include <string.h>
int main(void)
{
int t;
scanf("%d",&t);
for(int p=0;p<t;p++)
{
long long int cnt=0,min=4000000001;
int n,w1,w2,w3,w4,memo[501]={},d=0;
char mbti[10000][10],mbtii[100][10];
scanf("%d %d %d %d %d",&n,&w1,&w2,&w3,&w4);
for(int i=0;i<n;i++)
{
scanf("%s",mbti[i]);
}
for(int i=0;i<n;i++)
{
if(memo[i]==0)
{
memo[i]=1;
int q=0;
for(int j=i;j<n;j++)
{
if(strcmp(mbti[i],mbti[j])==0)
{
q=(q+1)%2;
memo[j]=1;
}
}
if(q==1)
{
strcpy(mbtii[d++],mbti[i]);
}
}
}
}
}top of page

실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
230726
230726
댓글 0개
좋아요
댓글(0)
더 이상 게시물에 대한 댓글 기능이 지원되지 않습니다. 자세한 사항은 사이트 소유자에게 문의하세요.
bottom of page


