Run ID:87288
提交时间:2024-08-08 10:28:35
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for(int i = 3; i < n; ++i) { int p = i; while(p) { if(p % 10 == 3) { cout << i << ' ' << ' '; break; } p /= 10; } } return 0; }