Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87288 小徐老师 含有3的所有数 C++ Accepted 1 MS 276 KB 359 2024-08-08 10:28:35

Tests(10/10):


Code:

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