提交时间:2025-08-29 11:45:14

运行 ID: 345041

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