-
medo
设X[ 0 : n - 1]和Y[ 0 : n – 1 ]为两个数组,每个数组中含有n个已排好序的数。找出X和Y的2n个数的中位数。 编程任务 利用分治策略试设计一个O (log n)时间的算法求出这2n个数的中位数。 数据输入 由文件input.txt提供输入数据。文件的第1行中有1个正整数n(n<=200),表示每个数组有n个数。接下来的两行分别是X,Y数组的元素。结果输出 程序运行结束时,将计算出的中位数输出到文件output.txt中(Let X [0: n- 1] and Y [0: n- 1] for the two arrays, each array containing the n number has been sorted. 2n X and Y to identify the number of digits. programming tasks using the divide and conquer strategy try to design an O (log n) time algorithm to calculate this median number 2n. Data input by the input data provided input.txt file. The first line in the file has a positive integer n (n < = 200), that there are n numbers of each array. The next two lines are the X, Y array elements. The end result is output program runs, the calculated median output to file output.txt)
- 2021-03-22 16:29:16下载
- 积分:1
-
testROM
vc用驱动接口开发的,可以禁用usb,光驱,软驱,可以作为动态库使用.(vc-driven interface with development, you can disable the usb, drive, floppy drive, you can use as a dynamic library.)
- 2009-04-10 17:58:50下载
- 积分:1
-
DMX512
void DMX_SendPacket(void) //发送DMX512数据
{
//配置为普通IO
pDMX_buf = 0 发送起始码 00
GPIO_Tx_Config(0) //设置发送的引脚为普通IO
PA2 = 0 //输出低电平
delay_us(150) //延时150us
PA2 = 1 //输出高电平
delay_us(13) //延时13us
GPIO_Tx_Config(1) //设置发送的引脚为复用IO
//USART1->DR = 0x0100 | TXDData[0] //第0帧前导码(DMX512 receiving procedDMX512 receiving procedure ure DMX512 receDMX512 receiving procedure iving procedure DMX512 receiving procedure )
- 2016-02-19 09:23:42下载
- 积分:1
-
2005326231325778
一个挂钩鼠标,模拟鼠标移动HHOOK的原代码,希望对朋友们有用,(It is a mouse hook program, simulating a mouse moving. Hope it helpful.)
- 2005-04-13 12:27:19下载
- 积分:1
-
aodv-code
aodv algorithm for implementing safe network
- 2014-04-13 12:10:57下载
- 积分:1
-
MPEGPLAY
32位操作系统OS/2的MPEG播放机,属于嵌入式领域。(32-bit operating system OS/2)
- 2007-09-21 23:29:41下载
- 积分:1
-
Visual-CPP-OPC-Client-Example
vc++ 开发的opc客户端的例子程序。基于文本界面,合适二次开发用。(opc server example.)
- 2016-01-28 11:41:45下载
- 积分:1
-
VisualPCPPP2008rumenjingdian
Visual+C+++2008入门经典(chinese).zip
中文翻译,精简(Visual+ C+++2008 Beginning (english). Zip
Chinese translation, to streamline)
- 2012-07-14 11:36:01下载
- 积分:1
-
DicomDisplay
vtkImageViewer2实现的放大,缩小,window color/window level调整(vtkImageViewer2 achieve zoom in, zoom, window color/window level adjustment)
- 2013-07-13 13:02:54下载
- 积分:1
-
CPP-BasicEducation(PDF)
C++面向对象的经典使用教程,是难得好的学习材料(failed to translate)
- 2013-05-05 14:29:25下载
- 积分:1