URAL1001解题报告
2015-03-16 09:09
267 查看
第一次写blog有点小紧张啊~~~~
Time limit: 2.0 second
Memory limit: 64 MB
The problem is so easy, that the authors were lazy to write a statement for it!
1018). The numbers are separated by any number of spaces and line breaks. A size of the input stream does not exceed 256 KB.
be printed in a separate line with at least four digits after decimal point.
最重要是读懂题!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!;
吃了英语的大亏啊!!;
题意大概是求一堆数的平方根,然后最先输出,输入数中的最后一个数的平方根,从后往前,知道输出 第一个数的平方根;
代码如下;
1001. Reverse Root
Time limit: 2.0 secondMemory limit: 64 MB
The problem is so easy, that the authors were lazy to write a statement for it!
Input
The input stream contains a set of integer numbers Ai (0 ≤ Ai ≤1018). The numbers are separated by any number of spaces and line breaks. A size of the input stream does not exceed 256 KB.
Output
For each number Ai from the last one till the first one you should output its square root. Each square root shouldbe printed in a separate line with at least four digits after decimal point.
Sample
input | output |
---|---|
1427 0 876652098643267843 5276538 | 2297.0716 936297014.1164 0.0000 37.7757 |
吃了英语的大亏啊!!;
题意大概是求一堆数的平方根,然后最先输出,输入数中的最后一个数的平方根,从后往前,知道输出 第一个数的平方根;
代码如下;
#include<iostream> #include<cstdio> #include<cmath> using namespace std; double b[1000001]; int main() { double a; int i=0; while(~scanf("%lf",&a)) { b[i]=sqrt(a); i++; } for(int j=i-1;j>=0;j--) printf("%.4lf\n",b[j]); return 0; }
相关文章推荐
- Ural 1001 Reverse Root 解题报告
- Ural 1001 Reverse Root 解题报告
- YT06-背包-1001—Bone Collector -(6.27日-烟台大学ACM预备队解题报告)
- POJ 1001 解题报告 Exponentiation
- BestCoder24 1001.Sum Sum Sum(hdu 5150) 解题报告
- POJ1001 Exponentiation解题报告
- POJ 1001 Exponentiation [解题报告] Java
- BestCoder5 1001 Poor Hanamichi(hdu 4956) 解题报告
- YT02-简单数学课后题-1001 FatMouse' Trade-(5.31日-烟台大学ACM预备队解题报告)
- YT03-递推求解课后题目-1001 母牛的故事-(6.7日-烟台大学ACM预备队解题报告)
- 【解题报告】 Ural 1348 简单的计算几何
- POJ 1001 Exponentiation解题报告
- YT04-贪心课堂练习-1001 今年暑假不AC-(6.14日-烟台大学ACM预备队解题报告)
- TOJ_1001解题报告
- URAL 1348 Goat in the Garden 2计算几何(解题报告)
- BestCoder17 1001.Chessboard(hdu 5100) 解题报告
- [解题报告]ural 1176 Hyperchannels
- [POJ 1001] Exponentiation C++解题报告 JAVA解题报告
- POJ 1001 Exponentiation解题报告
- codevs 1001 舒适的路线 解题报告 (枚举+并查集)