#include<bits/stdc++.h>
using namespace std;
bool is_f(string s)
{
int left=s[0]-'0'+s[1]-'0'+s[2]-'0';
int right=s[3]-'0'+s[4]-'0'+s[5]-'0';
if(left==right)
return 1;
return 0;
}
int main()
{
int N;
cin>>N;
string *s=new string[101];
int f=0;
for(int i=0;i<N;i++)
{
f=0;
cin>>s[i];
f=is_f(s[i]);
if(f)
{
cout<<"You are lucky!"<<endl;
}
else
{
cout<<"Wish you good luck."<<endl;
}
}
}
11-21
541
08-10
5020
03-31
3564
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交