Location:
Search - YW-2
Search list
Description: 单字右移1616点阵右移C程序16bit
#include<reg51.h>
#include<intrins.h>
sbit DAT=P1^0 /*\"74HC595第14脚 数据 \",0*/
sbit YW=P1^1 /*\"74HC595第11脚 移位存 \",0*/
sbit SUO=P1^2 /*\"74HC595第12脚 锁存 \",0*/
Platform: |
Size: 2407 |
Author: z |
Hits:
Description: 黑白点的匹配贪心算法
设平面上分布着n个白点和n个黑点,每个点用一对坐标(x, y)表示。一个黑点b=(xb,yb)支配一个白点w=(xw, yw)当且仅当xb>=xw和yb>=yw。若黑点b支配白点w,则黑点b和白点w可匹配(可形成一个匹配对)。在一个黑点最多只能与一个白点匹配,一个白点最多只能与一个黑点匹配的前提下,求n个白点和n个黑点的最大匹配对数。-black and white point matching greedy algorithm based on the distribution of a plane n n white spots and black spots. each point with a pair of coordinates (x, y). A black spots b = Page 205182 (xb and fro) a dominant white spots w = (xw, yw) if and only if xb
Platform: |
Size: 1024 |
Author: 陈馨 |
Hits:
Description: 我们参加比赛时的源程序,现在吐血奉上,希望大家一起提高,里面用到了0832,和液晶显示-We take part in competitions at the source, and now offer hematemesis, hoping to improve the U.S., which used the 0832, and the liquid crystal display
Platform: |
Size: 3072 |
Author: lianghongzhi |
Hits:
Description: 单字右移1616点阵右移C程序16bit
#include<reg51.h>
#include<intrins.h>
sbit DAT=P1^0 /*"74HC595第14脚 数据 ",0*/
sbit YW=P1^1 /*"74HC595第11脚 移位存 ",0*/
sbit SUO=P1^2 /*"74HC595第12脚 锁存 ",0*/-1616 shifted to right word lattice shifted to right C procedures 16bit# Include <reg51.h># Include <intrins.h> sbit DAT = P1 ^ 0/* 74HC595 foot section 14 data , 0*/sbit YW = P1 ^ 1/* 74HC595 shift foot section 11 deposit , 0*/sbit SUO = P1 ^ 2/* 74HC595 latch pin No. 12 , 0* /
Platform: |
Size: 2048 |
Author: z |
Hits:
Description: 有我科技的射频卡(RFID)开发板YW-100系列测试及开发例程-youwokeji YW-100 source code
Platform: |
Size: 180224 |
Author: adf |
Hits:
Description: 有我科技关于YW-100的ISO15693下的测试例程-youwokeji ISO15693
Platform: |
Size: 185344 |
Author: adf |
Hits:
Description: 1、问题描述
设平面上分布着n个白点和n个黑点,每个点用一对坐标(x, y)表示.一个黑点b=(xb,yb)支配一个白点w=(xw, yw)当且仅当xb>=xw和yb>=yw.若黑点b支配白点w,则黑点b和白点w可匹配(可形成一个匹配对).在一个黑点最多只能与一个白点匹配,一个白点最多只能与一个黑点匹配的前提下,求n个白点和n个黑点的最大匹配对数.
2、具体要求
要求:时间效率在O(NlgN)
3、实现方法
基于贪心算法
以x坐标的升序对黑点排序(可用QUICKSORT或者HEAPSORT),对白点生成一个小根堆!-1 Description of the problem based on the distribution of plane n-n-white spots and black spots, each point with a pair of coordinates (x, y) said. A black point b = (xb, yb) dominating a white point w = ( xw, yw) if and only if xb> = xw and yb> = yw. If the black point b dominant white w, then the black point and white point w b can match (which can form a matched pair). in a black spot at most can only be matched with a white spot, a white point can only match with the premise of a black point, find the n-n-white spots and black spots on the maximum number of matches. 2, specific requirements requirements: time efficiency in the O ( NlgN) 3, Implementation of the greedy algorithm based on x coordinates in ascending order of black spots (available QUICKSORT or HEAPSORT), generating a small white spot root heap!
Platform: |
Size: 375808 |
Author: zaclina |
Hits:
Description: 首先随机生成一个存放着50个学生成绩记录的数据文件RecordIn.DAT。
然后读取这个存放着50个学生成绩记录的数据文件RecordIn.DAT。
每个记录长为28个字节,其内容依次为:学号(XH)4字节,姓名(XM)6字节,数学成绩(SX)3字节,语文成绩(YW)3字节,外语成绩(WY)3字节,物理成绩(WL)3字节,化学成绩(HX)3字节,政治成绩(ZZ)3字节。
要求计算出总分,并按学号为偶数的记录,总分从高到低排序,相同成绩按学号从大到小排序,把学号、姓名和总分输出到文件RecordOut.DAT中,每个学生输出一行。
-The first randomly generated a store 50 records of student achievement data files RecordIn.DAT. Then reads the stored 50 records of student achievement data files RecordIn.DAT. Each record length of 28 bytes, the contents were as follows: 4-byte number (XH), name (XM) 6 bytes, math (SX) 3-byte language scores (YW) 3 bytes, foreign language achievement (WY) 3 bytes, 3 bytes of the physical results (WL), chemical score (HX) 3 bytes, and political achievements (ZZ) 3 bytes. Requirement to calculate the total score, press school record is even, the total score from highest to lowest sort of the same grade school numbers from largest to smallest sort, student number, name and score output to the file RecordOut.DAT Each student line of output.
Platform: |
Size: 549888 |
Author: sun rongju |
Hits:
Description: HT66F70A普通I/O口使用烟雾传感器报警测试完整版-HT66F70A MCU I/O port to use smoke sensor alarm test
Platform: |
Size: 19456 |
Author: 蒋非凡 |
Hits:
Description: IC卡读卡器仿键盘工具软件可以将可读写的IC卡读卡器,如型号YW-605HA,YW-607,SDT-HA等读写器当作一个只读的读卡器来使用, 根据配置程序,可以将卡号配置成16进制或者10进制输出到光标所在位置。也可以将数据块的内容输出到光标处,支持中文字符,简单易用-IC card reader keyboard simulation tool can be writable IC card reader, such as model YW-605HA, YW-607, SDT-HA and other readers as a read-only reader to use, Depending on the configuration program, you can configure the card number to hexadecimal or decimal output to the cursor position. Also blocks content data can be output to the cursor, support Chinese characters, easy to use
Platform: |
Size: 259072 |
Author: coodor |
Hits:
Description: 基于单片机的烟雾程序。通过ADC转换,可以将烟雾传感器检测到的数值传送给单片机。-Smoke program based on mcu. Through the ADC conversion, the smoke sensor can detect the value of the transmission to the microcontroller.
Platform: |
Size: 22528 |
Author: 吕淼 |
Hits: