题解 | #数位五五#
数位五五
https://www.nowcoder.com/practice/4306996b0a534178b90b3514a8b30028
#include <stdio.h> int main() { int a, b,m=0; scanf("%d%d",&a,&b); for(int i=a;i<=b;i++) { int s=0,j=i; while(j) { s+=j%10; j=j/10; } if(s%5==0) m++; } printf("%d",m); return 0; }#菜狗的解题#