![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HackerRank
素宇
这个作者很懒,什么都没留下…
展开
-
Cut the sticks
Cut the sticks You are given sticks, where the length of each stick is a positive integer. A cut operation is performed on the sticks such that all of them are reduced by the length of the smallest sti原创 2017-06-19 20:18:06 · 336 阅读 · 0 评论 -
Identify Smith Numbers
Identify Smith Numbers #include <cstdio> #include <algorithm> #include <iostream> #include <cmath>using namespace std; long long int f(long long int n){ long long int sum=0; while(n){ s原创 2017-06-19 20:19:18 · 207 阅读 · 0 评论 -
Roads and Libraries
Roads and Libraries #include <cstdio> #include <cstring> #include <algorithm> #include <iostream> using namespace std; int a[1000010]; int vis[1000010]; int f(int x){ if (a[x]==x){ return x原创 2017-06-19 20:19:51 · 207 阅读 · 0 评论