Files
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

25 lines
466 B
C++

#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;
}