| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 71349 | sh25_wangsj | 与7无关的数 | C++ | Accepted | 0 MS | 240 KB | 508 | 2025-10-25 11:33:19 |
#include <iostream> using namespace std; int main() { int a,b,c,d=0,e=0; cin>>a; for(int i=1;i<=a;i=i+1){ b=i; while(b!=0){ c=b%10; b=(b-c)*1.0/10; if(c==7){ e=e+1; } } if(e>0){ d=d+0; e=0; }else if(i%7==0){ d=d+0; e=0; }else{ d=d+i*i; e=0; } } cout<<d; return 0; }