博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ural 1001 - Reverse Root
阅读量:4321 次
发布时间:2019-06-06

本文共 1145 字,大约阅读时间需要 3 分钟。

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
 ≤ 10
18). 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 should be printed in a separate line with at least four digits after decimal point.

Sample

input output
1427  0      876652098643267843 5276538
2297.0716936297014.11640.000037.7757
Problem Author: Prepared by Dmitry Kovalioff
// Ural Problem 1001. Reverse Root// Verdict: Accepted  // Submission Date: 22:34:56 12 Jan 2014// Run Time: 0.328s//  // 版权所有(C)acutus。(mail: acutus@126.com) //  // [解题方法]  // 简单题,直接按题意输入输出即可// 注意:数组开大点,要使用全局数组#include
double a[300000];void solve(void){ int i; double t; i = 0; while(scanf("%lf",&t) != EOF) a[i++] = t; i--; while(i >= 0) { printf("%.4lf\n", sqrt(a[i])); i--; }}int main(void){ solve(); return 0;}

 

转载于:https://www.cnblogs.com/acutus/p/3516782.html

你可能感兴趣的文章
MANIFEST.MF的用途(转载)
查看>>
react高阶组件
查看>>
Android 高手进阶,自己定义圆形进度条
查看>>
Objective-C路成魔【2-Objective-C 规划】
查看>>
Java之旅(三)--- JSTL和EL表情
查看>>
正则匹配
查看>>
单利模式
查看>>
病毒表-相信对大家都有帮助-病毒词典
查看>>
ios 8 联系人ABPeoplePickerNavigationController
查看>>
列表、字典、append
查看>>
关于JAVA IO流的学习
查看>>
C#使用Json.Net遍历Json
查看>>
软工个人项目之词频统计
查看>>
Alpha 冲刺 (7/10)
查看>>
Bmob基础
查看>>
HashMap和HashTable,HashMap中key和value的原理 - 跳刀的兔子 - 博客园
查看>>
Linux自定义分隔符IFS引发的文本处理问题
查看>>
小米商城-题头4
查看>>
permu 莫队 总结
查看>>
Android中Handler原理
查看>>