CodeForces 697B Barnicle(学习scanf(),科学计数法的转换)

博客内容介绍了如何将科学计数法表示的距离值转换为常规的十进制形式,以便于Barney准确射出他的心箭。文章通过CodeForces上的697B问题作为例子,讲解了科学计数法的解析和转换方法,包括输入的字符串格式和输出的数字要求。文章还提及了解题过程中的难点和解决方案。
摘要由CSDN通过智能技术生成

http://codeforces.com/problemset/problem/697/B

B. Barnicle
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

Barney is standing in a bar and starring at a pretty girl. He wants to shoot her with his heart arrow but he needs to know the distance between him and the girl to make his shot accurate.

Barney asked the bar tender Carl about this distance value, but Carl was so busy talking to the customers so he wrote the distance value (it's a real number) on a napkin. The problem is that he wrote it in scientific notation. The scientific notation of some real number x is the notation of form AeB, where A is a real number and 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值