給出一個非負小數,找出分子不超過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(文本文件) 問題描述: 很多英文文本編輯軟件都具有輔助查錯功能?,F在有一個標準的詞庫,請根據該標準詞庫編制程序實現查錯功能。 輸入格式: 從文本文件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