| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158878 | 谭鑫哲 | 所有不包含7的数 | C++ | Accepted | 1 MS | 272 KB | 437 | 2026-08-23 10:21:15 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a=1,n,s,g; cin>>n; while(a<=n){ s=a/10; g=a%10; if(s!=7&&g!=7){ cout<<a<<" "; } a++; } return 0; }