Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95651 吕毅心 所有不包含7的数 C++ Accepted 1 MS 276 KB 318 2024-11-01 17:15:38

Tests(4/4):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() using namespace std; int main(){ int n,i,a,b; cin>>n; for(i=1;i<=n;i++){ a=i%10; b=i%100/10; if(a!=7&&b!=7){ cout<<i<<" "; } } return 0; }