Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
23779 hetiantian game C++ 运行出错 19 MS 644 KB 397 2023-07-16 17:29:09

Tests(5/10):


#include <bits/stdc++.h> using namespace std; int s[100005]; int a,b,t; bool check(int x){ while(x){ if(x%10==7)return true; x/=10; } return false; } int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin>>a>>b; for(int i=a;i<=b;i++){ if(check(i)||i%7==0){ s[t]=i; t++; } } cout<<t<<endl; for(int i=0;i<t;i++){ cout<<s[i]<<endl; } }


测评信息: