Leetcode ☞ 319. Bulb Switcher ☆ brain teaser
来源:互联网 发布:base64 js 源码 编辑:程序博客网 时间:2024/05/27 14:13
我的AC:
int bulbSwitch(int n) { return sqrt(n);}
分析:
看的大神解答....=.= : http://www.zhihu.com/question/35485418?sort=created 搜“bulb”即可找到
截图如下:
最终就是找n之前有几个完全平方数,直接给n开平方就得到了!
0 0
- Leetcode ☞ 319. Bulb Switcher ☆ brain teaser
- [leetcode] 319. Bulb Switcher
- leetcode 319. Bulb Switcher
- 319. Bulb Switcher LeetCode
- LeetCode 319. Bulb Switcher
- LeetCode *** 319. Bulb Switcher
- [leetcode]319. Bulb Switcher
- leetcode-319. Bulb Switcher
- leetcode 319. Bulb Switcher
- leetcode 319. Bulb Switcher
- 【leetcode】319. Bulb Switcher
- [Leetcode] 319. Bulb Switcher
- LeetCode-319.Bulb Switcher
- Leetcode 319. Bulb Switcher
- 【LeetCode】319. Bulb Switcher
- [leetcode] 319.Bulb Switcher
- 【leetcode】319. Bulb Switcher
- [leetcode] 319. Bulb Switcher
- 成员指针运算符 .* 和 ->*
- 智能的最小单元
- zstu 1024 Wooden Sticks
- Mac下利用shadowsocks配置Dropbox代理服务器
- 关于用struts2框架中iframe对应的jsp页面的不到action的值的问题
- Leetcode ☞ 319. Bulb Switcher ☆ brain teaser
- 1016: [JSOI2008]最小生成树计数
- MySQL知识(二十一)——用户管理之权限管理、访问控制
- 从Eclipse迁移到Android Studio
- 认识数据仓库建设意义
- c语言:求三个数中的最大值(双分支结构)
- JavaScript 垃圾回收
- 【Manthan, Codefest 16B】【二分 or 递推暴力】A Trivial Problem 输出阶乘为m的所有数
- 微信-弹幕是怎么搞出来的,看svg!