2023-08-26 14:00 至 2023-08-28 16:00 时长: 2天2小时
已有2人报名
eg. #include <stdio.h> int main() { int n,z,l,j,x; scanf("%d",&n); while(n--) { x=0; scanf("%d %d",&z,&l); for(j=z;j<=l;j++) { if((j/100*(j%100/10))%10==j%10) { x+=1; } } printf("%d\n",x); } return 0; }
扫描二维码,关注牛客
下载牛客APP,随时随地刷题