Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
23670 yihang game C++ 运行出错 17 MS 632 KB 327 2023-07-16 14:52:03

Tests(5/10):


#include"bits/stdc++.h" using namespace std; int s[100000]; int main(){ int n,m,ans=0,t=0; cin>>n>>m; for(int i=n;i<=m;i++){ if(i%7==0||(i%10==7||i/10%10==7||i/100%10==7||i/1000%10==7||i/100000%10==7||i/10000%10==7)){ t++; s[t]=i; ans++;}} cout<<ans<<endl; for(int i=1;i<=ans;i++){ cout<<s[i]<<endl;} }


测评信息: