Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
48897 | 杨中琦 | 幸运数字 | C++ | Accepted | 100 | 0 MS | 252 KB | 159 | 2022-07-17 12:46:13 |
#include<iostream> int main(){ int a,b,c=0; scanf("%d %d",&a,&b); while(a<=b){ if(a%6==0||a%8==0) c=c+1; a++; } printf("%d",c); return 0; }