| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148928 | Kevin | 含有3的所有数 | C++ | Accepted | 0 MS | 272 KB | 277 | 2026-03-03 14:19:43 |
#include<bits/stdc++.h> using namespace std; bool hs(int n){ int t=n; while(t!=0){ if(t%10==3){ return true; } t/=10; } return false; } int main() { int n; cin>>n; for(int i=0;i<n;i++){ if(hs(i)){ cout<<i<<" "; } } return 0; }