mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
21 lines
570 B
C++
21 lines
570 B
C++
|
int main(void)
|
||
|
{
|
||
|
int m, n;
|
||
|
int x[] =
|
||
|
{
|
||
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
|
1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1
|
||
|
};
|
||
|
while (scanf("%d%d", &m, &n), m || n)
|
||
|
{
|
||
|
for (m += 39, n += 39; x[m] && m <= n ; m++);
|
||
|
puts(m > n ? "OK" : "Sorry");
|
||
|
}
|
||
|
return 0;
|
||
|
}
|