欢迎来到淘码网(TMA.CN)

yy

价格: ¥ 9 积分可抵¥ 9

最后更新: 2019-12-23 19:22:54

演示地址:

指导费: 免费

分类
参数1
参数2
参数3
参数4
参数5
参数6
大小
1 MB
发货方式
自动发货
下载方式
远程下载
1
1
1
备注说明

所属分类中间件编程
开发工具:C/C++
文件大小:6KB
下载次数:6
上传日期:2008-12-12 13:32:58
说明:  给出一个非负小数,找出分子不超过M,分母不超过N的最简分数或整数, 使其最接近给出的小数。如果这个分数不唯一,输出‘TOO MANY’。 输入文件格式(closest.in) 第一行,M,N(1<=M,N<=10^9) 第二行,即小数R,(0<R 输出文件格式(closest.out) 仅一行,若解唯一输出 分子 / 分母(整数K写成K/1),否则输出TOO MANY 样例输入: 360 120 3.1415926536 样例输出: 355/113
(Give a non-negative decimals to identify elements does not exceed M, the denominator does not exceed N most Jane Score or integral to the nearest decimal given. If the scores are not the only, the output TOO MANY. Input file format (closest.in) the first line, M, N (1 <= M, N <= 10 ^ 9) the second line, that is, a small number of R, (0 <R output file format (closest.out) only his party, If the only solution output elements/denominator (integer K written K/1), otherwise the output sample TOO MANY Input: 360 1203.1415 926536 sample output: 355/113)

文件列表
最接近的分数.c
最接近的分数.exe
最接近的分数.txt

0 (0%)

好评

0 (0%)

中评

0 (0%)

差评

  • 会员中心
  • 浏览记录
  • 我的订单
  • 我的收藏
  • 在线客服

    点击这里给我发消息 点击这里给我发消息

    官方微信

    仅处理投诉、举报及平台使用问题;
    商品问题请咨询商家客服!

  • 意见反馈
  • 返回顶部
浏览记录