| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 71348 | sh25_wangsj | 与7无关的数 | C++ | Compile Error | 0 MS | 0 KB | 566 | 2025-10-25 11:33:02 |
提交时间:2025-10-25 11:31:51 运行 ID: 71347 #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; }