| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 47818 | zouqinghua | 与7无关的数 | C++ | Accepted | 1 MS | 244 KB | 245 | 2024-05-23 18:29:45 |
#include<bits/stdc++.h> using namespace std; int main() { int i,l,x,y,sum; while(scanf("%d",&x)!=EOF) { sum=0; for(i=1;i<=x;i++) { if(i%7!=0&&i%10!=7&&i/10!=7) sum+=i*i; } printf("%d\n",sum); } return 0; }