15 條題解

  • 2
    @ 2024-10-14 20:08:40

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

    資訊

    ID
    33
    時間
    1000ms
    記憶體
    128MiB
    難度
    7
    标签
    遞交數
    6538
    已通過
    1712
    上傳者