E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
3518
POJ 【
3518
】 Prime Gap
PrimeGapTimeLimit:5000MS MemoryLimit:65536KTotalSubmissions:9642 Accepted:5546DescriptionThesequenceofn−1consecutivecompositenumbers(positiveintegersthatarenotprimeandnotequalto1)lyingbetweentwosucces
chen_ze_hua
·
2016-04-11 22:00
素数
数论
3518
e uboot自动设置mac地址
由于产品的需要,需要在uboot中自动设置mac地址,因此查了网上的一些资料,再加上自己的修改,可以成功设置mac地址。 以下是具体步骤: ***1.获取随机数,代码是来自网上*** staticunsignedcharrandom1(void) { unsignedlonglongrand=get_timer(0)*100000; unsignedchara; rand=rand*1664
u011003120
·
2016-04-01 11:00
mac
u-boot
嵌入式 hi
3518
c裸板uboot烧写、kernel烧写、fs烧写小结
1、在uboot中我可以添加自己的命令,添加的方法是找到一个uboot的命令,然后模仿着去增加属于自己的命令代码以及实现函数就可以2、记住在使用printf进行调试的时候,在遇到指针或者字符串的时候最好使用“%x”,以为我不知道指针或者字符串中是否包含不可见字符,如果有不可见字符会导致错误,而且错误不好查找3、对于uboot中的环境变量,其实是放在uboot里面的,也就是环境变量占用的是uboot
DoubleLi
·
2016-03-13 23:00
hdu
3518
Boring counting 后缀数组
题目链接根据height数组的性质分组计算。#include #include #include #include #include #include #include #include #include #include #include #include usingnamespacestd; #definepb(x)push_back(x) #definelllon
yohaha
·
2016-03-03 16:00
嵌入式 hi
3518
c平台网卡模式MII与RMII模式在Uboot和kernel中切换小结
转载自:http://blog.csdn.net/skdkjzz/article/details/39931915很经典,很实用,一下就解决问题了,向大神致敬
u011003120
·
2016-03-01 10:00
kernel
C语言
海思
3518
eUTC转cst时区设置
因为需求,需要将
3518
e上的UTC转化为cst查询网上相关资料。貌似有两种方法比较好。第一种:tzselect命令即可修改,但
3518
的内核以及根文件系统是高度精简过的,因此没有这个命令,暂且不用。
u011003120
·
2016-02-20 18:00
UTC
POJ
3518
Prime Gap(素数题)
【题意简述】:输入一个数,假设这个数是素数就输出0,假设不是素数就输出离它近期的两个素数的差值,叫做PrimeGap。【分析】:这题过得非常险。由于我是打的素数表。由于最大的素数是1299709,所以注意在打表时要使用longlong。否则程序应该不能执行。注意这一点应该就能够了。积累!//2984K235Ms #include usingnamespacestd; #defineN2000001
mengfanrong
·
2016-02-18 12:00
HDU
3518
Boring Counting 后缀数组
分组height?半个月没动后缀数组一堆名词都忘了233#include #include #include #definerep(i,j,k)for(i=j;i=0;i--)sa[--bucket[x[y[i]]]]=y[i]; } voidda(intn,intm){ inti,j,p,*x=wa,*y=wb,*t; rep(i,0,n)x[i]=s[i],z[i]=i; sort(x,z,
huanghongxun
·
2016-02-16 23:00
后缀数组
HDU
OI
3518
e写到flash与挂载nfs方式的区别
因为工作任务需要,需要将
3518
e采集10S左右的视频存到本地,然后上传到服务器中。调试的时候,是通过nfs方式挂载到虚拟机上的,因此采集到的视频文件是存到虚拟机上的。
u011003120
·
2016-01-21 18:00
视频
Flash
hdu
3518
题意:找出一个字符串中至少重复出现两次的字串的个数,注意重复出现时不能有重叠的现象解题思路:height[i]表示排名第i的后缀与排名第i-1的后缀的最长公共前缀,然后我们可以枚举长度为k(1 #include #include #include #include usingnamespacestd; constintmaxn=1005; ints[maxn],t[maxn],t2[maxn],
hexianhao
·
2016-01-18 18:00
后缀数组
hdu
3518
Boring counting 后缀数组基础题
TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):2549 AcceptedSubmission(s):1030ProblemDescription035nowfacedatoughproblem,hisenglishteachergiveshimastr
Atrp
·
2015-12-27 12:00
Delphi APP 開發入門(五)GPS 定位功能
GPS 定位功能 分享: Share on facebook Share on twitter Share on google_plusone_share 閲讀次數:
3518
&
·
2015-11-13 08:33
Delphi
HI
3518
E用J-link烧写裸板fastboot u-boot流程
Hi
3518
E的裸板烧写fastboot是不能像HI3531那样,能够通过FB直接烧写。遵循ARM9的烧写流程。
·
2015-11-12 12:15
link
HDUOJ------2492Ping pong
(Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s):
3518
&
·
2015-11-11 19:34
ping
hdu
3518
Boring counting(后缀数组+height分组)
题意:求重复但不重叠的子串数。 解题思路:height分组。枚举长度L,将height数组进行分组,使得每一组的height都大于L,若有一组的最大的sa值和最小的sa值之差大于L,则说明该组内存在一个符合条件的子串。 View Code 1 /* 2 *Author: Zhaofa Fang 3 *Created time: 2013-05-06-1
·
2015-11-11 19:51
height
HDU
3518
Boring counting(后缀数组)
pid=
3518
题意:给出一个串。求至少出现两次且不重叠的子串的个数? 思路:求sa和h。枚举长度。
·
2015-11-11 14:56
count
hdu
3518
(后缀数组)
题目描述: 找出一个字符串中至少重复出现两次的字串的个数(重复出现时不能重叠)。 code: 后缀数组处理,对于得到height 进行查找... 参考http://blog.csdn.net/mishifangxiangdefeng/article/details/7109211博主
·
2015-11-11 08:40
后缀数组
HDU
3518
后缀数组求不可重叠重复出现的不同子串个数
枚举子串长度,根据height分组,如果本组sa最小值与sa最大值之差超过枚举的长度,则本组对于答案贡献为1。1#include 2#include 3#include 4#include 5#include 6#include 7#include 8#include 9#include 10#include 11#include 12#include 13#include
夢中花落
·
2015-11-09 21:00
poj
3518
Prime Gap
素数水题: View Code #include<iostream> #include<cstdio> #include<cstdlib> #include<algorithm> #include<cmath> #include<queue> #include<set> #include&
·
2015-11-05 08:45
Prim
HDU
3518
pid=
3518
trie View Code 1 #include<cstdio> 2 #include<cstring> 3 #include<
·
2015-11-01 11:08
HDU
BNUOJ 7629 Boring counting
Original ID:
3518
64-bit integer IO format: %I64d Java
·
2015-11-01 08:34
count
3518
Prime Gap
Prime Gap Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 6597 Accepted: 3775 Description The sequence of n − 1 consecutive composite numbers (positive integ
·
2015-10-31 15:50
Prim
poj3083
Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 8046 Accepted:
3518
·
2015-10-31 09:42
poj
后缀数组 --- HDU
3518
Boring counting
pid=
3518
Mean: 给你一个字符串,求:至少出现了两次(无重叠)的子串的种类数。
·
2015-10-28 08:32
count
RHEL6安装Oracle 11g R2
收藏PDF版质料请点这里:http://download.csdn.net/detail/jifeng
3518
/6464999 1.使用DVD做yum源1.1.新建dvd挂载目录[root@oracle
·
2015-10-27 13:32
oracle 11g
poj
3518
线性筛法可以过 #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> using namespace std; const int MAXSIZE=1500000; unsigned long previous[
·
2015-10-21 10:31
poj
POJ
3518
Prime Gap题意好难理解
DescriptionThesequenceofn−1consecutivecompositenumbers(positiveintegersthatarenotprimeandnotequalto1)lyingbetweentwosuccessiveprimenumberspandp+niscalledaprimegapoflengthn.Forexample,‹24,25,26,27,28
qiuxueming_csdn
·
2015-09-06 02:00
hdu
3518
后缀数组的height应用
height[i]表示排第i的子串和第i-1的子串的最长公共前缀,对于某一个长度k,如果存在连续一段height值大于等于k且起始位置的最远距离大于等于k,这一段就存在一个解,ans加1#include #include #include #include #include #include #include #include #include usingnamespacestd; #define
zjck1995
·
2015-09-02 11:00
POJ
3518
Prime Gap(数论)
Description判断输入的n是否为素数,如果是素数的话,直接输出0,如果不是素数的话找到两个连续的素数,分别大于n和小于n输出这两个素数的差就可以了Input多组用例,每组用例一个整数n,以0结束输入Output对于每组用例,如果n是素数则输出0,如果不是则输出连续的两个素数分别大于和小于nSampleInput10112724921700SampleOutput4060114Solutio
V5ZSQ
·
2015-08-30 08:00
海思HI
3518
引起视频超时汇总
近段时间在玩海思
3518
x,由于客户的需求不尽相同,在进行视频配置时,经常碰到视频线程输出以下错误:selectfailed!
zqj6893
·
2015-07-13 22:00
海思视频编码通道
海思3518
视频请求超时
sensor无中断
移植live555 到hi
3518
1.修改config.armlinux文件CROSS_COMPILE?= /opt/hisi-linux-nptl/arm-hisiv100-linux/bin/arm-hisiv100-linux-uclibcgnueabi-COMPILE_OPTS= $(INCLUDES)-I.-O2-DSOCKLEN_T=socklen_t-DNO_SSTREAM=1-D_LARGEFILE_SOURC
xdshengk
·
2015-07-13 17:00
嵌入式Linux定时器问题
开发平台:Debain目标板:HI
3518
E最近在HI
3518
E上编写应用程序时需要用到定时器来实现每隔一定的时间往串口发送数据,可是在实现定时器上出现了问题,具体表现为定时不准,于是乎编写了一段代码在
key123zhangxing
·
2015-05-26 20:00
[hi
3518
] HI
3518
编译uboot 、kernel、rootfs、osdrv 使用说明
1.osdrv顶层Makefile使用说明本目录下的编译脚本支持选用下文提到的两种工具链中的任何一种进行编译,因此编译时需要带上一个编译参数以指定对应的工具链--arm-hisiv100nptl-linux和arm-hisiv200-linux。其中,arm-hisiv100nptl-linux工具链对应uclibc库,arm-hisiv200-linux工具链对应glibc库;CHIP参数指定芯
xipiaoyouzi
·
2015-05-15 16:00
HDU
3518
Boring counting 后缀自动机
题目大意:就是对于给出的字符串S,长度不超过1000,求其中本质不同的子串的数量,这些子串满足在字符串S中出现了至少不重合的2次大致思路:如果将S建立后缀自动机的话,记录每个节点处的串最早一次和最后一次出现的位置,然后状态t处的字符串长度为[Min(t),Max(t)]比较其和rightmost-leftmost的大小即可知道这个状态下有多少满足条件的串时间复杂度O(n)代码如下:Result :
u013738743
·
2015-05-05 09:00
HDU
后缀自动机
Counting
boring
3518
hdu
3518
---Boring counting(后缀数组,对后缀分组)
ProblemDescription035nowfacedatoughproblem,hisenglishteachergiveshimastring,whichconsistswithnlowercaseletter,hemustfigureouthowmanysubstringsappearatleasttwice,moreover,suchapearancescannotoverlapeac
Guard_Mine
·
2015-04-09 14:00
后缀数组
HI3516、HI
3518
E IPCAM方案量产源代码转让
海思HI3516、HI
3518
E、芯唐N32926等IPCAM方案所有量产源代码及资料转让整套包含: 1.以下产品方案中IPCAM端所有源代码; 2.PC客户端、PCNVR、PC矩阵、所有源代码及web
慎重
·
2015-03-20 10:00
HI3518E
3516c
代码转让
Hi
3518
学习:第一课 开发步骤
Hi
3518
SDK安装以及升级使用说明第一章Hi
3518
_SDK_Vx.x.x.x版本升级操作说明如果您是首次安装本SDK,请直接参看第2章。
逆向思维
·
2015-02-02 11:32
工作过程
嵌入式 hi
3518
c平台上无线网卡rtl8188eu系列网卡移植
嵌入式 hi
3518
c平台上无线网卡rtl8188eu系列网卡移植 首先修改driver下驱动文件中的Makefile文件:添加自己的平台,我的平台是hi
3518
c,具体操作如下:#addthenewplatformhi
3518
calterbykjCONFIG_PLATFORM_HI
xuerongdeng
·
2014-12-26 16:00
【POJ】1743 Musical Theme 【后缀数组】
传送门:【POJ】1743MusicalTheme题目分析:这题和HDU
3518
做法差不多。
u013368721
·
2014-12-11 20:00
poj
【HDU】
3518
Boring counting 后缀数组
传送门:【HDU】
3518
Boringcounting题目分析:这题呢,我们先构造出后缀数组,求出height数组。
u013368721
·
2014-12-09 20:00
HDU
arm下如何烧写指定分区大小的内核和文件系统
最近在海思
3518
e平台下烧写内核和文件系统,由于项目需要,需要运行海思SDK中的测试软件HiIspTool,不能使用精简后的文件系统,需要刷一个比较大的文件系统,但在此过程中由于各种原因,弄坏了一个板子
CET8
·
2014-11-29 23:00
内核
ARM
mtd
hi3518
HiIspTool
海思hi
3518
用eclipse采用交叉编译器编译程序在海思开发板上运行
题记:在linux下开发C/C++程序时,eclipse是一款不错的IDE软件,在eclipse开发运行在linux系统下的程序时,用到的编译工具莲是linuxgcc,而如果要将eclipse开发的程序移植到开发板上,则要选择海思自己的编译器,否则执行会出现问题,这里详细介绍下过程。1正确安装海思的交叉编译器。海思给了两个交叉编译器分别是arm-hisiv100nptl-linux、还是arm-h
u011563903
·
2014-11-26 22:00
开发板
海思
hi3518
POJ
3518
Prime Gap(素数)
POJ
3518
PrimeGap(素数)http://poj.org/problem?
u013480600
·
2014-11-16 12:00
Algorithm
算法
ACM
嵌入式 FAAC1.28 在海思HI
3518
C/HI
3518
A平台linux中的编译优化
FAAC1.28的下载地址:http://www.audiocoding.com/downloads.html如何编译:1../configure--host=arm-hisiv100nptl-linux--prefix=/home/ssy/lib2.make3.makeinstall优化在不修改源码的情况下,faac的内存占用非常高,每路音频在13M左右。如果多路音频的话,内存将很快耗尽。搜索M
skdkjxy
·
2014-10-24 18:00
嵌入式 hi
3518
平台多路码流添加osd
/****************************************************************************** function:overlayprocess 1)createsomeoverlayregions 2)displayoverlayregions(OneRegion--Multi-VencGroup) 3)changeallvenc
skdkjxy
·
2014-10-24 16:00
嵌入式 hi
3518
平台以太网网络模块设计包括重连机制和网线检测机制
#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #defineJOSEPH_LOOP
skdkjxy
·
2014-10-24 14:00
嵌入式 hi
3518
平台增加路由代码
/**********************************(C)COPYRIGHT******************************* *FileName:add_route.c *Author:skdkjzz *Date:2014/08/09 *Description:设置静态ip,添加路由表 ***************************************
skdkjxy
·
2014-10-24 14:00
嵌入式 hi
3518
平台获取网关
/**********************************(C)COPYRIGHT*******************************/*FileName:get_gw.c *Author:skdkjzz *Date:2014/08/07 *Description:linux下获取网卡信息 *******************************************
skdkjxy
·
2014-10-24 14:00
嵌入式 hi
3518
平台获取网络环境中的ip、netmask、broadcast等信息
/**********************************(C)COPYRIGHT******************************* *FileName:get_netinfo.c *Author:skdkjzz *Date:2014/08/07 *Description:linux下获取网卡信息 *************************************
skdkjxy
·
2014-10-24 14:00
嵌入式 hi
3518
平台指定网卡测试是否通外网
/**********************************(C)COPYRIGHT******************************* *FileName:netstatus_check.c *Author:skdkjzz *Date:2014/08/07 *Description:检测本机是否连通外部网络(Joseph_Ping百度)。 ******************
skdkjxy
·
2014-10-24 14:00
上一页
3
4
5
6
7
8
9
10
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他