Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
79116 胡盛哲 含有3的所有数 C++ Accepted 1 MS 272 KB 256 2024-06-30 13:53:19

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 g = i % 10; int s = i/10%10; int b = i/100%10; if(g == 3||s == 3||b == 3){ cout << i << " " ; } } return 0; }