poj1665
#include <stdio.h>
#include <stdlib.h>
#define pi 3.1415926
int main()
{
float dia,tim;
int rev,count=;
while(scanf("%f%d%f",&dia,&rev,&tim)!=EOF)
{
float dis,MPH;
if(rev==)
break;
dis=pi*dia*rev/;
tim/=;
MPH=dis/tim;
printf("Trip #%d: %.2f %.2f\n",++count,dis,MPH);
}
return ;;
}
poj1665的更多相关文章
随机推荐
- Android WebView 小结
1.设置网页的缩放比例的时候,可以使用以下属性: mWebview.setInitialScale(25);//为25%,最小缩放等级 WebSettings setting = mWebview.g ...
- 如果有需要确解MD5的,可以尝试这个网站。
http://www.hashkiller.co.uk/md5-decrypter.aspx
- SQL语句执行效率及分析
查询效率分析:子查询为确保消除重复值,必须为外部查询的每个结果都处理嵌套查询.在这种情况下可以考虑用联接查询来取代.如果要用子查询,那就用EXISTS替代IN.用NOT EXISTS替代NOT IN. ...
- php 表单校验函数库(判断email格式是否正确、http地址是否合法有效、手机号码是否合法)
/** * 表单校验函数库 */ /** * 判断email格式是否正确 * @param $email */ function is_email($email) { return strlen($e ...
- jquery.validate的效验方式
jQuery校验官网地址:http://bassistance.de/jquery-plugins/jquery-plugin-validation 原文地址:http://www.cnblogs.c ...
- Android TextView文字描边的实现!!
Android开发:文字描边 转自:http://www.oschina.net/code/snippet_586849_37287 1. [代码][Java]代码 1 2 3 4 5 6 7 8 9 ...
- VC维的物理意义
vc约等于可调节参数的个数 来自为知笔记(Wiz)
- C/C++各种系统开发环境搭建
http://pan.baidu.com/s/1qWJKF4g
- bind新发现
function foo(a,b){ this.val = a+b; } var bar = foo.bind(null, 'p1'); var baz = new bar('p2'); consol ...
- Secret of Success(成功的秘诀)
A youngman asked Socrates the secret of Success. Socrates told the youngman to meet him near the riv ...