You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
466 B
25 lines
466 B
2 years ago
|
#include <bits/stdc++.h>
|
||
|
using namespace std;
|
||
|
bool judge(int x) {
|
||
|
while (x > 0) {
|
||
|
if (x % 10 == 7) {
|
||
|
return true;
|
||
|
}
|
||
|
x /= 10;
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
int main() {
|
||
|
int L, R, cnt;
|
||
|
scanf("%d%d", &L, &R);
|
||
|
for (int i = L; i <= R; i++) {
|
||
|
if (judge(i)) {
|
||
|
printf("%d\n", i);
|
||
|
cnt++;
|
||
|
}
|
||
|
}
|
||
|
if (cnt == 0) {
|
||
|
printf("None\n");
|
||
|
}
|
||
|
return 0;
|
||
|
}
|