Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
55232 | yuboyuan | 与7无关的数 | C++ | Accepted | 1 MS | 240 KB | 178 | 2024-11-03 19:41:19 |
#include<iostream> using namespace std; int main() { int n,s=0; cin>>n; for(int i=1;i<=n;i++) if(i%7&&i%10!=7&&i/10!=70) s+=i*i; cout<<s; return 0; }