#include<iostream>
using namespace std;
int main() {
int t,a,temp,f=0;
cin>>t;
for(int i=0;i<t;i++)
{
cin>>a;
f=0;
temp=a;
while(a)
{
if(a%100==21)
{cout<<"The streak is broken!"<<endl;f=1;break;}
a=a/10;
}
if(f==1)continue;
if(temp%21==0)
{
cout<<"The streak is broken!"<<endl;
}
else
cout<<"The streak lives still in our heart!"<<endl;
}
return 0;
}
using namespace std;
int main() {
int t,a,temp,f=0;
cin>>t;
for(int i=0;i<t;i++)
{
cin>>a;
f=0;
temp=a;
while(a)
{
if(a%100==21)
{cout<<"The streak is broken!"<<endl;f=1;break;}
a=a/10;
}
if(f==1)continue;
if(temp%21==0)
{
cout<<"The streak is broken!"<<endl;
}
else
cout<<"The streak lives still in our heart!"<<endl;
}
return 0;
}
yes plz update it
ReplyDeleteoh!sorry i forgot to change language
Delete