mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
ddd34a4f1c
2000-2099
18 lines
370 B
C++
18 lines
370 B
C++
#include<stdio.h>
|
|
int main()
|
|
{
|
|
int b, l, c, i;
|
|
int a[] = {1, 153, 370, 371, 407};
|
|
while (scanf("%d%d", &b, &l) != EOF)
|
|
{
|
|
c = 0;
|
|
for (i = 0 ; i < 5 ; i++)
|
|
{
|
|
if (a[i] >= b && a[i] <= l)
|
|
printf(c++ ? " %d" : "%d", a[i]);
|
|
}
|
|
printf(c ? "\n" : "no\n");
|
|
}
|
|
return 0;
|
|
}
|