zoj 1813 Biker's Trip Odometer

原创 2012年03月31日 12:31:29
#include "stdio.h"

#define pi  3.1415927
    
int main()
{
      float dia,r,t,dis,mph;
      int count=0;
      while(scanf("%f%f%f",&dia,&r,&t)&&r!=0)
      {
           dis=dia*pi*r/12/5280;
           t=t/3600;
           mph=dis/t;
           count++;
           printf("Trip #%d: %.2f %.2f\n",count,dis,mph);
      }
}


相关文章推荐

Biker's Trip Odometer ACM程序

  • 2013年05月03日 16:16
  • 230B
  • 下载

Biker's Trip Odometer(水题)

Biker's Trip Odometer Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Jav...

杭电1038 Biker's Trip Odometer

Biker's Trip Odometer Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/O...
  • z8110
  • z8110
  • 2015年11月13日 16:52
  • 114

hdu 1038 Biker's Trip Odometer(水题)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1038 Biker's Trip Odometer Time Limit: 2000/100...

HDU 1038.Biker's Trip Odometer【单位换算】【水水水】【8月24】

Biker's Trip Odometer Problem Description Most bicycle speedometers work by using a Hall Eff...

HDU1038 Biker's Trip Odometer(java)

HDU1038 Biker's Trip Odometer(java)
  • sxd8700
  • sxd8700
  • 2015年10月19日 20:56
  • 177

杭电OJ——1038 Biker's Trip Odometer

Biker's Trip Odometer Problem Description Most bicycle speedometers work by using a Hall Effec...

杭电OJ--1.2.2--Biker's Trip Odometer

Problem Description Most bicycle speedometers work by using a Hall Effect sensor fastened to the fr...

Biker's Trip Odometer

Description Most bicycle speedometers work by using a Hall Effect sensor fastened to the front fo...

HDOJ1038 Biker's Trip Odometer

Biker's Trip Odometer Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:zoj 1813 Biker's Trip Odometer
举报原因:
原因补充:

(最多只允许输入30个字)