GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Icefishc/length: 长度单位转换工具

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
input.txt
input.txt
 
 

Repository files navigation

#length

##题目介绍 您要做的是一个长度单位转化和计算工具,能够把不同的长度单位转换为标准长度(米),并且可以在不同单位之间进行加减运算。

输入文件

输入文件input.txt的内容可分为两部分:

  1. 不同单位和标准长度米的转换规则, 比如

1 mile = 1609.344 meters, 代表1英里等于1609.344米;

  1. 转换前或者计算前的单位,比如 1.2 miles // 一个长度 1.2 miles + 1 fath - 0.2 meters // 单位可能不同的长度之间的加减运算

您要做的

我们期望您编写一个应用程序,可以读取输入文件,了解不同单位与米之间的转换规则后,把以不同单位表示的长度都转换为标准单位米;同时计算不同单位长度的加减表达式,得到以米为单位的结果。

做题要求:

  • 请一定Fork本仓库再做题目

  • 使用的编程语言不限

  • 输出结果为文件"output.txt",其格式见下面说明

  • 源代码和结果文件"output.txt"上传到您的GitHub代码库中

  • 结果文件“output.txt”一定要放到代码库的根目录下

输出文件格式

该文件的格式共有12行,并严格遵守以下规则:

  • 第1行是您在渣打编程马拉松官网上报名时的注册邮箱,比如[email protected]

  • 第2行是空行

  • 第3行至第12行,每行显示1个计算结果,比如1931.21 m

  • 计算结果要求精确到小数点后两位

  • 计算结果均以字母m结尾,请注意数字和字母m之间有一个空格。

About

长度单位转换工具

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.