Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
23777 yihang game C++ 编译错误 0 MS 0 KB 411 2023-07-16 17:27:18

Tests(0/0):


#include"bits/stdc++.h" using namespace std; long long s[1000000]; int sd(int x){ while(x){ if(x%10==7){ x/=10; return true;} } return false;} int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); long long n,m,ans=0; cin>>n>>m; for(int i=n;i<=m;i++){ if(sd(i)||x%7==0){ s[ans]=i; ans++; } } cout<<ans<<endl; for(int i=0;i<ans;i++){ cout<<s[i]<<endl; }}


测评信息: