[bzoj1349][Baltic2006]Squint 大水题
来源:互联网 发布:matlab 四维矩阵 画图 编辑:程序博客网 时间:2024/05/01 14:04
1349: [Baltic2006]Squint
Time Limit: 1 Sec Memory Limit: 64 MB[Submit][Status][Discuss]
Description
Write a program to calculate integer square roots.
Input
The input is read from a text file named squint.in. Its only line consists of an integer 0 < = n < 2^63 .
Output
Its only line consists of the smallest nonnegative integer q such that q^2 >= n .
Sample Input
122333444455555
Sample Output
11060446
HINT
sqrt(122333444455555)=11060445.038765619 .
Source
除了1000最水的题
#include<cstdio>#include<cmath>long long a,b;int main(){scanf("%lld",&a); b = sqrt(a); b = b*b<a?b+1:b;printf("%lld",b); return 0;}
阅读全文
0 0
- [bzoj1349][Baltic2006]Squint 大水题
- bzoj1349 [Baltic2006]Squint
- BZOJ 1349: [Baltic2006]Squint 题解
- 大水题!!!
- 大水题
- poj 1656 大水题
- POJ 2328 大水题
- hdu 4247 大水题
- hdu4252 大水题
- hdu 4206 大水题
- 大水题Q2002
- 大水题Q2003
- 大水题Q2006
- 暴力枚举大水题
- nefu 648 大水题
- poj2707~大水题
- HDOJ1234|大水题
- hdu1018(大水题)
- web项目导入jquery.js时报错如何处理?
- 采用 Delphi 10.2 的 TFdMemTable 来保存小量的数据到本地
- centos7中如何删除自带的jdk
- Android中利用手机抓包的方法,经典篇
- Vue.js例子
- [bzoj1349][Baltic2006]Squint 大水题
- OpenCV仿射变换 & SURF特征点描述
- DQL:数据查询语言
- eclipse-tomcatplugin部署maven项目方式七
- 养成个好习惯,从现在开始学点啥就写下来吧... 省的又忘了...
- 深度学习来做图像分割 Fully Convolutional Networks for Semantic Segmentation (FCNs)
- codeforce_314D Sereja and Periods (动态规划)
- 一些讲RNN-lstm比较好的博客
- 注解学习