- 博客(2)
- 收藏
- 关注
原创 黑洞数495
#include <stdio.h>#include <stdlib.h>int main(){ int t=0,a,b,c,s,g,q; while(scanf("%d",&t)!=EOF) { while(t!=495) {q=t; a=t%10; b=t/10%10; c=t/100; if(a>=b&&a>=c&&b>=c){ s=a*100+b*10+c; g=c*100+b*10+a; t=s-g; } else
2022-10-22 17:35:50
413
1
原创 a,b中能被9和21整除的个数
#include <stdio.h> #include <math.h> int main() { int a,b,n; scanf("%d%d",&a,&b); if(a%63==0) n=(b/63)-(a/63)+1; else n=(b/63)-(a/63); printf("%d",n); }
2022-10-20 15:14:11
178
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人