3 条题解

  • 0
    @ 2023-11-21 22:00:21
    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
        int t;
        cin >> t;
        while(t--)
        {
            int n;
            cin >> n;
            double wei = 0;
            for(int i = 1 ; i <= n ; i++)
            {
                wei+=log10(i);
            }
            cout <<(int) wei + 1 << '\n';
        }
    }
    

    信息

    ID
    147
    时间
    3000ms
    内存
    128MiB
    难度
    6
    标签
    (无)
    递交数
    706
    已通过
    214
    上传者