| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 71339 | sh25_wangsj | 与7无关的数 | C++ | Wrong Answer | 1 MS | 244 KB | 397 | 2025-10-25 11:25:22 |
#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; e=0; } } cout<<d; return 0; }