Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
33833 yihang game C++ 解答错误 0 MS 252 KB 314 2023-12-31 14:14:56

Tests(0/10):


#include"bits/stdc++.h" using namespace std; long long s[1000000]; int main(){ long long a,b,e,w=0,q=0; cin>>a>>b; for(int i=a;i<=b;i++){ e=i; while(e!=0){ if(e%10==7)w=1; e/=10; } if(i%7==0||w==1){ q++; s[q]=i; }} cout<<q<<endl; for(int i=1;i<=q;i++)cout<<s[i]<<endl; }


测评信息: