| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 41881 | 202103wsl | 幸运数字 | C++ | Accepted | 100 | 9 MS | 256 KB | 299 | 2022-06-19 09:04:06 |
#include<bits/stdc++.h> using namespace std; int check(int n){ if(n%4==0||n%7==0) return 1; while(n){ if(n%100==44||n%100==77) return 1; n/=10; } return 0; } int main(){ int n,s=0; cin>>n; for(int i=1;i<=n;i++){ int t; t=i; s+=check(t); } cout<<s; return 0; }