给出一个非负小数,找出分子不超过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
标签:
上传时间: 2017-01-08
上传用户:iswlkje
本程序通过tc2.0和tc3.0编译运行,请在主目录(tc.exe所在的目录)下添加文件Out.xia
上传时间: 2013-12-25
上传用户:CHENKAI
Symbian 内存泄露检查及调式教程,Using Hooklogger to find Out where a leave() came from
上传时间: 2013-12-25
上传用户:stampede
Distributed applications, devices, and services appear in many different arrangements in an enterprise. At your company, you probably access data from your intranet services, from computers distributed throughOut the company network, and from services across the firewall Out on the Web. For example, you might access a calendar-sharing application or a financial application to fill Out expense sheets. Someone must maintain all these applications. Not only the applications, but also the hardware that supports them must be maintained. Resource management encompasses both applications and hardware. In fact, both application and hardware management can be supported through the development of Java Management Extensions (JMX) resource management software. This book will show how you can use JMX to manage and monitor all your resources across an enterprise—both software and hardware.
标签: applications arrangements Distributed different
上传时间: 2014-01-05
上传用户:330402686
创建两个生产者进程和两个消费者进程,生产者进程a需要生成10000个整数,每次都将自己的进程号(用getpid()函数获得)和生成的整数放入共享内存中(共享内存大小为64Byte)。生产者b每次从26个英文字母中选一个,并将自己的进程号和选中的字母放入共享内存中,直到26个字母全部都选中。消费者进程c负责从共享内存中读取数据生产者进程a的数据并且将这些数据写入文件a.Out。消费者进程d从共享内存读取进程b的数据后写入b.Out中。
标签: 进程
上传时间: 2014-01-24
上传用户:王者A
查错问题 文件名:check.* 输入文件:check.in(文本文件,选手按规定格式自行创建) 输出文件:check.Out(文本文件) 问题描述: 很多英文文本编辑软件都具有辅助查错功能。现在有一个标准的词库,请根据该标准词库编制程序实现查错功能。 输入格式: 从文本文件check.in中读入数据。 第一行一个整数N(N≤10000),表示标准词库中单词的个数。 第2--N+1行,每行一个标准单词,单词的长度不超过10。 第N+2行开始为待查文本,其单词间用空格(或连续空格)分隔,单词的个数不会超过1000。 输出格式: 输出到文本文件check.Out中。 (1)第一行开始输出拼错的单词; (2)最后一行输出一个整数表示拼错的单词总数。(拼错相同的单词重复计数) 注意:如果一个单词在字典中无法找到,那么我们就认为这个单词拼错了。 输入样例: 3 like this we we like the sport 输出样例: the sport
上传时间: 2013-11-28
上传用户:2404
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book and Addison Wesley Longman Inc., was aware of a trademark claim, the designations have been printed in initial caps or all caps. The authors and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising Out of the use of the information or programs contained herein. The publisher offers discounts on this book when ordered in quantity for special sales. For more information, please contact:
标签: manufacturers designations distinguish products
上传时间: 2017-01-23
上传用户:woshiayin
遥控解码通过电脑串口显示 /* 晶振:11.0569MHz */ #include <REGX52.h> #define uchar unsigned char uchar data IRcode[4] //定义一个4字节的数组用来存储代码 uchar CodeTemp //编码字节缓存变量 uchar i,j,k //延时用的循环变量 sbit IRsignal=P3^2 //HS0038接收头Out端直接连P3.2(INT0) /**************************延时0.9ms子程序**********************/ void Delay0_9ms(void) {uchar j,k for(j=18 j>0 j--) for(k=20 k>0 k--) } /***************************延时1ms子程序**********************/ void Delay1ms(void) {uchar i,j for(i=2 i>0 i--) for(j=230 j>0 j--) }
标签: uchar unsigned 11.0569 include
上传时间: 2013-12-12
上传用户:Breathe0125
C51源程序集锦 This a demo program showing a way to perform simultaneous RS-232 transmit and receive using only one hardware timer. The transmit and receive rOutines divide each bit time into 4 slices to allow synchronizing to incoming data that may be Out of synch with Outgoing data.
标签: simultaneous transmit program perform
上传时间: 2017-02-08
上传用户:yangbo69
一般而言,文字模式下的输入法并没有特殊的规范或协议,程序所要做的,只有取得使用者的字键输入,再将中文输出到「标准输出 (standard Out)」管道,系统自然会将这些文字喂入应用程序中。只要应用程序能够接受并处理 8位字符码,则不会有任何问题。
标签:
上传时间: 2013-12-10
上传用户:sqq