1 条题解

  • 0
    @ 2024-04-27 11:26:47
    #include <bits/stdc++.h>
    #define int long long
    using namespace std;
    
    signed main()
    {
        ios::sync_with_stdio(false);
        int n,count=0,i=0,t;
        cin>>n;
        if(!n)
        {
            cout<<1;
            return 0;
        }
        while(count!=n)
        {
            i+=5;
            t=i;
            while(t%5==0)
            {
                count++;
                t=t/5;
            }
        }
        if(count==n)
        {
            cout<<i;
        }
        else
        {
            cout<<"No solution";
        }
        return 0;
    }
    
  • 1

信息

ID
1009
难度
6
分类
(无)
标签
递交数
71
已通过
21
通过率
30%
被复制
5
上传者