Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113180 曹锦择 含有3的所有数 C++ Output Limit Exceeded 0 MS 268 KB 302 2025-03-15 12:43:51

Tests(0/10):


Code:

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