Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
99595 | 刘佳宇 | 所有不包含7的数 | C++ | Accepted | 1 MS | 272 KB | 381 | 2024-11-30 12:01:25 |
#include<iostream> using namespace std; int main(){ int n,c=0; cin>>n; for(int i=1;i<=n;i++){ c=i; if(c==7){ continue; } else if(c%10==7){ continue; } else if(c%100/10==7){ continue; } cout<<i<<" "; } }