| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 74557 | 杨竣周 | 幸运数字 | C++ | Accepted | 100 | 129 MS | 260 KB | 216 | 2023-05-27 16:29:23 |
#include<bits/stdc++.h> using namespace std; int ans,n; int main(){ cin>>n; for(int i=4;i<=n;i++) if(i%4==0||i%7==0||to_string(i).find("44")!=-1||to_string(i).find("77")!=-1) ans++; cout<<ans; return 0; }