| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 71336 | sh25_wangsj | 与7无关的数 | C++ | Wrong Answer | 0 MS | 248 KB | 378 | 2025-10-25 11:22:14 |
#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&&i%7!=0){ d=d+i*i; } } cout<<d; return 0; }