13 条题解

  • 0
    @ 2023-12-12 21:21:43

    #include<stdio.h> int main() { int n; scanf("%d",&n); int i,temp; int num=0; for(i=1;i<=n;i++) { temp=i; while(temp!=0) { if(temp%10==9) { num++; } temp=temp/10; } } printf("%d",num); return 0; }

    信息

    ID
    33
    时间
    1000ms
    内存
    128MiB
    难度
    7
    标签
    递交数
    5568
    已通过
    1456
    上传者