-
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
-
TMS320F28035中文数据手册-2013版
TMS320F28035的中文寄存器数据手册,对于寄存器功能查找非常方便,希望能大家共同学习分享。(date sheet of TMS320F28035,use it very good.)
- 2020-08-31 11:18:10下载
- 积分:1
-
U_TEST
瑞萨G14串口通讯测试代码,能实现发送接受数据,和电脑串口通讯(Renesas G14 serial communication test code, can realize to send receive data, and computer serial port communication)
- 2014-12-23 11:18:37下载
- 积分:1
-
用VC编写的WWW浏览器,利用Microsoft的WebBrowser控件。
用VC编写的WWW浏览器,利用Microsoft的WebBrowser控件。-VC prepared by the WWW browser, using Microsoft"s WebBrowser control.
- 2022-12-03 16:55:02下载
- 积分:1
-
基于DEM-CFD耦合的研究
DISCRETE ELEMENT METHOD AND ITS PRACTICE ON EDEM4
- 2020-06-23 03:00:02下载
- 积分:1
-
easyshell
不错的后门代码,用了一些驱动技术来隐藏进程,隐藏注册表,希望对大家有所帮助(good backdoor code, used some technology-driven process to conceal, hide the registry, and I hope to help everyone)
- 2007-04-16 03:55:07下载
- 积分:1
-
Threads-and-chat-program-example
有客户端的聊天软件,可实现网络通讯,对于了解网络编程有帮助(A client chat software, network communications, network programming help for understanding)
- 2013-10-28 09:33:58下载
- 积分:1
-
网络版本的中国象棋服务器源代码,实现象棋的基本功能,对大家的游戏编程可以起到很好的启发...
网络版本的中国象棋服务器源代码,实现象棋的基本功能,对大家的游戏编程可以起到很好的启发-network version of the Chinese chess server source code, chess achieve the basic functions of the game programming we can play good source of inspiration
- 2022-05-13 09:28:05下载
- 积分:1
-
GraphAnimationAPP
drawline MFC 使用C++实现划线功能(drawline MFC)
- 2015-01-17 23:26:40下载
- 积分:1
-
UVALive4849
uvalive4849的ac源码。算法:2-sat。题意:给n(n<=3000)个黑方块的坐标,保证黑方块没有公共边。对于每个黑方块选一个角作为结点,使得所选结点满足输入的一个无向图。其中距离为曼哈顿距离。输出是否有解。possible或impossible。(AC source of uvalive 4849. Algorithms: 2-sat. Meaning of the questions: to n (n <= 3000) coordinates a black box, to ensure that there is no common edge black squares. For each black box to choose a corner as nodes, such that the selected nodes meet a directed graph with no input. Where the distance is the Manhattan distance. Output is solvable. possible or impossible.)
- 2015-01-25 21:27:51下载
- 积分:1