自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

sxj731533730

成功埋没过去,失败开拓未来。

  • 博客(13)
  • 资源 (2)

原创 十九、Largest prime factor

Problem Description Everybody knows any number can be combined by the prime number. Now, your task is telling me what position of the largest prime factor. The position of prime 2 is 1, prime 3 is 2

2017-05-20 12:51:14 190

原创 十八、How many prime numbers

Problem Description Give you a lot of positive integers, just to find out how many prime numbers there are.Input There are a lot of cases. In each case, there is an integer N representing the number

2017-05-16 19:37:31 224

原创 十七、最小公倍数

Problem Description 给定两个正整数,计算这两个数的最小公倍数。Input 输入包含多组测试数据,每组只有一行,包括两个不大于1000的正整数.Output对于每个测试用例,给出这两个数的最小公倍数,每个实例输出一行。Sample Input 10 14 Sample Output 70 #include<iostream>using namespace std;int

2017-05-16 12:42:07 336

原创 十六、As Easy As A+B

Problem Description These days, I am thinking about a question, how can I get a problem as easy as A+B? It is fairly difficulty to do such a thing. Of course, I got it after many waking nights. Give

2017-05-16 12:26:52 123

原创 十五、Rank

Problem Description Jackson wants to know his rank in the class. The professor has posted a list of student numbers and marks. Compute Jackson’s rank in class; that is, if he has the top mark(or is ti

2017-05-15 16:44:36 341

原创 十四、排列2

Problem Description Ray又对数字的列产生了兴趣: 现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。Input 每组数据占一行,代表四张卡片上的数字(0<=数字<=9),如果四张卡片都是0,则输入结束。Output 对每组卡片按从小到大的顺序输出所有能由这四张卡片组成的4位数,千位数字相同的在同一行,同一行中每个四位数间用空格分隔。

2017-05-12 21:25:06 282

原创 2、百度2017春招---度度熊回家

度度熊回家时间限制:1秒 空间限制:32768K 一个数轴上共有N个点,第一个点的坐标是度度熊现在位置,第N-1个点是度度熊的家。现在他需要依次的从0号坐标走到N-1号坐标。 但是除了0号坐标和N-1号坐标,他可以在其余的N-2个坐标中选出一个点,并直接将这个点忽略掉,问度度熊回家至少走多少距离? 输入描述: 输入一个正整数N, N <= 50。接下来N个整数表示坐标,正数表示X轴的正

2017-05-09 11:04:31 252

原创 1、百度2017春招---买帽子

买帽子 时间限制:1秒 空间限制:32768K 度度熊想去商场买一顶帽子,商场里有N顶帽子,有些帽子的价格可能相同。度度熊想买一顶价格第三便宜的帽子,问第三便宜的帽子价格是多少? 输入描述: 首先输入一个正整数N(N <= 50),接下来输入N个数表示每顶帽子的价格(价格均是正整数,且小于等于1000)输出描述: 如果存在第三便宜的帽子,请输出这个价格是多少,否则输出-1输入例子:

2017-05-08 22:39:40 657

原创 7、SCM 数码管&FPGA 数码管

(未完待续)module div_smg(sm_cs1,clk,rst_n,sw,smg);/* 共阴极 :不带小数点 ;0, 1, 2, 3, 4, 5, 6, 7, db 3fh,06h,5bh,4fh,66h,6dh,7dh,07h ;8, 9, a, b, c, d,

2017-05-08 15:53:10 367

原创 十三、Wooden Sticks

Problem Description There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It need

2017-05-08 13:52:32 119

原创 6、SCM 流水灯&FPGA流水灯

未完待续module clk_div( clk, rst_n, sw, led);input clk;input rst_n;input [3:0] sw;output reg [3:0] led;reg [3:0] clk_div_1;always@(posedge clk or negedge rst_n)if(!rst_n) clk_div_1<=4'b1111;e

2017-05-08 00:00:09 222

原创 十二、What Is Your Grade?

Problem Description “Point, point, life of student!” This is a ballad(歌谣)well known in colleges, and you must care about your score in this exam too. How many points can you get? Now, I told you the

2017-05-05 13:41:00 362

原创 5、SCM 按键消抖 vs FPGA 按键消抖

SCM(使用的锐志实验板) 时钟周期为11.0592Mhz FPGA (Altrea BJ-EPM240)时钟周期为50Mhz(C语言和Verilog语言的语法不做详细讲解,可以查看相关资料)按键在闭合和断开时,触点会存在抖动现象。在按键按下或者是释放的时候都会出现一个不稳定的抖动时间,如果不处理好这个抖动时间,我们就无法处理好按键编码;首先介绍串行代码的描述思想,然后介绍硬件并行代码的思想

2017-05-03 14:36:12 524

opencv (linux版本)

opencv 脚本安装

2017-04-07

2017最全的vivado license

历史最全的vivdo license,压缩包包含:(后期会定时更新) xilinx_ise_vivado.lic Vivado_license_2016.4.lic xilinx_ise.lic Vivado_2016.4_license_2037.lic xilinx.lic ise_vivado_2014_2.lic 2014Xilinx.lic 2016_Vivado_license.lic

2017-03-19

空空如也

空空如也
提示
确定要删除当前文章?
取消 删除