Run ID:113144

提交时间:2025-03-15 12:14:27

#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { int shi = i / 10; int gh = i % 10; if (shi != 7 && gh != 7) { cout << i << " "; } } return 0; }