Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113179 黄梓皓 含有3的所有数 C++ Accepted 0 MS 272 KB 274 2025-03-15 12:43:50

Tests(10/10):


Code:

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