Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
89688 马宴飞 不吉利的数 C++ Time Limit Exceeded 1000 MS 272 KB 326 2024-08-31 08:38:47

Tests(0/10):


Code:

# include<iostream> using namespace std; int main(){ int n,m,s=0; cin>>n>>m; for(int i=n;i<=m;i++){ int t=i; while(t>0){ if(t%4==0||(t%6==0&&(t/10)%10==2)){ s++; break; } } t/10; } cout<<m-n+1-s<<endl; return 0; }