-
Notifications
You must be signed in to change notification settings - Fork 4
/
SER8.c
42 lines (41 loc) · 892 Bytes
/
SER8.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <stdio.h>
int main()
{
long int t, n, x, y, i, j;
scanf("%ld", &t);
for (i = 0; i < t; i++)
{
j = 0;
y = 0;
scanf("%ld", &n);
if (n % 21 == 0)
y = 1;
else
{
while (1)
{
x = n % 10;
n /= 10;
if (x == 1)
{
y = n % 10;
if (y == 2)
{
y = 1;
break;
}
}
else //author Anas Khan
{
if (n == 0)
break;
}
}
}
if (y == 1)
printf("The streak is broken!\n");
else
printf("The streak lives still in our heart!\n");
}
return 0;
}