Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
71337 sh25_wangsj 与7无关的数 C++ Wrong Answer 0 MS 244 KB 396 2025-10-25 11:23:34

Tests(0/1):


#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; }


Judgement Protocol: