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
1058
acmjlb
1058
入门题
题目描述现给你一组数,要求你找出其中只出现过一次的那个数。题目保证只有一个数字出现过一次,并且除了只出现一次的那个数字外,其余的数字均出现了偶数次。输入格式输入包含多组测试样例。每组样例第一行为一个正整数n(1 intmain() { intn,p,i,s; while(scanf("%d",&n)!=EOF,n) { s=0; for(i=0;i
liu168ad
·
2013-12-10 18:11
异或
acmjlb1058
基于visual Studio2013解决C语言竞赛题之
1058
打印数字
题目解决代码及点评/************************************************************************/ /* 58.编写程序,按照1,2,...,28的顺序填一个7×7数组的左上角,程序的输出结果为: 1247111622 358121723 69131824 10141925 152026 2127 28 */ /***
yincheng01
·
2013-12-10 00:00
hdu
1058
dp思想,找出质因子只含有2,3,5,7的数code:#include usingnamespacestd; inta[6000]; intmin(intaa,intbb,intcc,intdd) { if(aa<=bb&&aa<=cc&&aa<=dd)returnaa; elseif(bb<=aa&&bb<=cc&&bb<=dd)returnbb; elseif(cc<=aa&&c
洛伊佩拉
·
2013-12-03 21:00
HD
1058
Humber Numbers。本地都通过了最终还是WA了,莫名其妙
#include #include usingnamespacestd; intfindMin(inta,intb) { returna>=b?b:a; } intmain() { //ifstreamcin("input.txt"); intdp[5844],n=1; dp[1]=1; inta=1,b=1,c=1,d=1; for(inti=2;i>n&&n) { if(n%10==1&&n%
daer520
·
2013-11-10 00:00
五种方法查看Ubuntu/Redhat等Linux系统版本号等系统信息
resource_id=
1058
最近碰到一个问题,在Linux终端下怎么查看当前操作系统是什么,版本是什么。不同的Linux发行版不完全一样,查了一些资料现在总结如下。
sunmenggmail
·
2013-10-27 11:00
Android插入物理键盘的同时显示软键盘
以下方法可以在插入物理键盘的同事,在显示屏上显示软键盘:修改base/services/input/EventHub.cpp文件中的函数:openDeviceLocked(......)在
1058
/
中华大吉
·
2013-10-21 19:00
poj 3345 Bribing FIPA(树形DP&输入控制)
BribingFIPATimeLimit: 2000MS MemoryLimit: 65536KTotalSubmissions: 3380 Accepted:
1058
DescriptionThereisgoingtobeavotingatFIPA
y5885922
·
2013-10-03 19:00
c
算法
ACM
杭电
1058
HumbleNumbersTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):13689 AcceptedSubmission(s):5956ProblemDescriptionAnumberwhoseonlyprimefactorsare2,3,5or7i
doufei_ccst
·
2013-09-27 21:00
HDU题目分类
3317972.html基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、
1058
weixin_34413357
·
2013-09-12 21:00
【PAT】
1058
. A+B in Hogwarts (20)
题目:http://pat.zju.edu.cn/contests/pat-a-practise/
1058
分析:注意输入格式即可简单解题。
realxuejin
·
2013-08-22 21:00
pat
cc++
RIP 路由信息协议
RIP是由Xerox在70年代开发的,最初定义在RFC
1058
中。
Cisco1841sw
·
2013-08-02 09:06
开发
路由器
信息
数据包
实验目的
HDU
1058
Humble Numbers (DP)
思路:通过2,3,5,7这4个数来构造HumbleNumbers;对于用dp[]数组存的数要事先打表;AC代码:#include intdp[5843]; intn; intMin(inta,intb,intc,intd) { if(a<=b&&a<=c&&a<=d)returna; elseif(b<=a&&b<=c&&b<=d)returnb; elseif(c<=a&&c<=b
Job_yi
·
2013-07-31 12:00
HDOJ
1058
Humble Numbers解题报告【DP】
pid=
1058
开始拿到这个题目的时候还纠结了半天,英语很差的话这个题是不可能AC的。。而我就是其中之一。。。HumberNumber不用管它啥意思,就是一类定义的数而已。
sustliangbo
·
2013-07-30 21:00
算法
动态规划
ACM
hdoj
Caused by: java.lang.OutOfMemoryError: PermGen space
在如下文本框输入:-Xmx
1058
M-Xms800M-XX:PermSize=256m-XX:MaxPermSize=256m
fanjf
·
2013-07-30 16:00
1058
. A+B in Hogwarts (20)- PAT
1058
.A+BinHogwarts(20)时间限制50ms内存限制32000kB代码长度限制16000B判题程序Standard作者CHEN,YueIfyouareafanofHarryPotter,
zoushidexing
·
2013-07-30 16:00
HDU
1058
Humble Numbers
HumbleNumbersTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):13158 AcceptedSubmission(s):5715Problem
lsh670660992
·
2013-07-28 20:00
动态规划
HDU
1058
简单数学题,有点思维
/* 题目大意: 素数因子只能是2,3,5,7. 思路: 将解保存在humble数组里面,由于数组里素数因子只有2,3,5,7。则再乘以2,3,5,7 则不变,输出考验英语水平。 */ #include #include usingnamespacestd; intmi(inta,intb) { return(a>x&&x) { cout<<"The"<
opm777
·
2013-07-19 09:00
数学
HDU
hdu
1058
-Humble Numbers
pid=
1058
DP#include #include #include #include #include usingnamespacestd; #defineINT__int64 INTnum[
liujie619406439
·
2013-07-15 19:00
ZOJ
1058
题 Currency Exchange
题目链接~~>简单题:注意每一次交换汇率都要四舍五入到百分位!!!代码:#include intmain() { intT,i,j,n,beg; doublea[6][6],m; intb[15]; scanf("%d",&T); while(T--) { for(i=1;i<=5;i++) for(j=1;j<=5;j++) scanf("%lf",&a[i][j]); while(scanf(
u011074149
·
2013-07-11 09:00
mtk android settings
stop-on-copysvn://192.168.10.22/ALPS_GB2_V2.17_MT6515_NAND_6628_RGT/branches/xiazhengguo/g209_20130217_GELJSW-
1058
svnmerge-r9788
hsyouxishe
·
2013-06-05 17:00
1058
,1053事件报错的处理
最近看了IT之梦的博客关于域的排错,转载了过来。正好迁移Windows2003+exchange2003到Windows2008+exchange2010时也出现了这个问题。http://allan5220.blog.51cto.com/1361759/1212409IT之梦最后找到了未启动的服务,顺藤摸瓜解决了问题。从中学习到了IT之梦的解决问题的思路。 因为错误表
allan5220
·
2013-06-05 16:40
排错
活动目录
SYSVOL
netlogon
域策略事件错误ID 1030 ID
1058
事件日志信息:DetailsProduct:WindowsOperatingSystemEventID:
1058
Source:UserenvVersion:5.2SymbolicName:EVENT_GPT_NOTACCESSIBLEMessage
cocemage
·
2013-06-03 10:54
1030
1058
域策略事件错误ID 1030 ID
1058
事件日志信息:DetailsProduct:WindowsOperatingSystemEventID:
1058
Source:UserenvVersion:5.2SymbolicName:EVENT_GPT_NOTACCESSIBLEMessage
cocemage
·
2013-06-03 10:54
1030
1058
ACM题解报告——HD
1058
今天解了HDOJ上的
1058
题:http://acm.hdu.edu.cn/showproblem.php?
·
2013-05-16 21:00
ACM
定义代码Hdu
1058
Humble Numbers(dp)
pid=
1058
如果一个数是Humble Number,那么它的2倍,3倍,5倍,7倍仍然是Humble Number 定义F[i]为第i个Humble Number F[n]
·
2013-05-05 22:00
number
HDU
1058
Humble Numbers
HumbleNumbersTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):12242 AcceptedSubmission(s):5353ProblemDescriptionAnumberwhoseonlyprimefactorsare2,3,5or7i
fjy4328286
·
2013-05-03 12:00
HDU
TZC OJ
1058
寄居蟹与海葵
题目略...ACCODE:1#include 2#include 3#include 4#defineMax100010 5 6/*主函数*/ 7intmain() 8{ 9charH[Max],J[Max],Temp[Max];//Temp数组是用来存放H数组中的子串,用来和J数组进行比较 10intlen_h,len_j,i,j; 11while(1) 12{ 13sc
·
2013-04-23 23:00
OJ
hdu分类
hdu分类基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、
1058
星球观测者
·
2013-04-13 09:53
ACM
攻略
HDU
1058
Humble Numbers
状态转移方程:num[p]=min(num[i]*2,num[j]*3,num[k]*5,num[l]*7);#include #include #include #include #include #include #include #definemaxn5900 intnum[maxn]; char_th[][11]={"th","st","nd","rd","th","th","th","
i_fuqiang
·
2013-04-09 18:00
hdoj_
1058
HumbleNumbersTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):11887 AcceptedSubmission(s):5162ProblemDescriptionAnumberwhoseonlyprimefactorsare2,3,5or7i
lgh1992314
·
2013-04-08 19:00
CISCO RIP配置案例
文档见RFC
1058
、RFC1723。RIP通过广播UDP报文来交换路由信息,每30秒发送一次路由信息更新。RIP提供跳跃计数(hopcount)作为尺度来衡量路
csco10786826
·
2013-04-07 16:34
配置
RIP
组网技术
CISCO RIP配置案例
文档见RFC
1058
、RFC1723。 RIP通过广播UDP报文来交换路由信息,每30秒发送一次路由信息更新。RIP提供跳跃计数(hopcount)作
csco10786826
·
2013-04-07 16:34
配置
rip
hdu
1058
Humble Numbers (DP初步)
题意: 一组质因子只含有2,3,5,7的数据从小到大排列,求出第n个数 解题思路: 1.此题为动态规划,难点在于如何将数据从小到大放在数组中 2.各个因子逐渐增加相乘,再比较大小得出数组 &nbs
·
2013-04-06 19:00
number
ACM题库分类
2015209.html基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、
1058
kay_zhyu
·
2013-03-24 20:00
hdu
1058
pid=
1058
思路想到了,但是不会处理~~~~~~~~看了别人的佩服额~#include #include #include #include usingnamespacestd; longlongnum
JustSteps
·
2013-03-13 21:00
HDU
1058
Humble Numbers
题目:HumbleNumbers humblenumber从1为"始祖",剩下的所有数,其实都是在此基础上乘以2,3,5,7演化出来的,代码主要语句:f[t]=min(2*f[i],3*f[j],5*f[k],7*f[l]);#include #include usingnamespacestd; intf[5843],n; inti,j,k,l; intmin(inta,intb,
ACdreamers
·
2013-01-30 16:00
HDU
1058
:Humble Numbers
ProblemDescriptionAnumberwhoseonlyprimefactorsare2,3,5or7iscalledahumblenumber.Thesequence1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27,...showsthefirst20humblenumbers. Writeaprogramtofindandprin
libin56842
·
2013-01-24 21:00
c
ACM
HDU
杭电
解题报告
OUI-
1058
:The OUI Inventory on this system does exits o is not writable
错误信息:OUI-10058:TheOUIInventoryonthissystemdoesnotexitsorisnotwritable问题诊断:第一次安装ORACLE执行脚本时出错,会产生文件/etc/oraInst.loc解决方法:cd/etcrmoraInst.loc
huashnag
·
2013-01-21 13:00
vijosP
1058
粘贴文本 简单模拟
这是一道简单的模拟题。题目在这里题意大致是这样的:有一个n行的文本,每行一个数字,从1...n。现在对这个文本做k次剪切、粘贴操作,求最后状态的文本前十行。n的数据范围是100000,k范围是1000。所以这个题直接模拟(废话,题目分类都说了是模拟)。由于是成段的元素频繁换位置,所以首先想到的是用链表做,正好好久没有写链表了,正好熟悉熟悉。不过写了个指针版的链表提交了几次都是RE。。。无奈改用数组
ophunter
·
2013-01-12 02:00
模拟
AD活动目录报错事件ID1030
1058
1.依次单击“开始”、“运行”,在“打开”框中键入regedit,然后单击“确定”。2.在注册表编辑器中,找到下面的注册表子项:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon3.如果缺少“WaitForNetwork”项,则必须添加此项。为此,请按照下列步骤操作:a.右键单击“Winlogon”子项,单
tlw90
·
2013-01-02 14:34
1058
windows time同步系统时间的服务无法启动报错
1058
解决方法
如果启动该服务时提示:错误
1058
:无法启动服务,原因可能是已被禁用与其相关联的设备没有启动。原因是windowstime服务失效。修复:1.运行cmd进入命令行,然后键入w
佚名
·
2012-12-16 17:48
hdu
1058
Humble Numbers
算法分析:典型的DP!1->?1->2=min(1*2,1*3,1*5,1*7)1->2->3=min(2*2,1*3,1*5,1*7)1->2->3->4=min(2*2,2*3,1*5,1*7)1->2->3->4->5=min(3*2,2*3,1*5,1*7)状态转移方程F(n)=min(F(i)*2,F(j)*3,F(k)*5,F(m)*7)(n>i,j,k,m) 特别的: i,j,k,
jjike
·
2012-12-13 11:00
圆心的VPS记录信息
1058
,12个月,webnx线路,(偶尔抽,比he.net的路线差那么一点,但是也还非常不错),40G硬盘,有raid,内存1024,流量500G 大娘买的设备如下1300一年 he圣何塞线路,1024
那年那月
·
2012-12-10 14:00
BZOJ
1058
[ZJOI2007]报表统计
小Q的妈妈是一个出纳,经常需要做一些统计报表的工作。今天是妈妈的生日,小Q希望可以帮妈妈分担一些工作,作为她的生日礼物之一。经过仔细观察,小Q发现统计一张报表实际上是维护一个非负整数数列,并且进行一些查询操作。在最开始的时候,有一个长度为N的整数序列,并且有以下三种操作:INSERTik在原数列的第i个元素后面添加一个新元素k;如果原数列的第i个元素已经添加了若干元素,则添加在这些元素的最后(见下
sdj222555
·
2012-11-29 22:00
hdu
1058
(dp)
HumbleNumbersTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):10640 AcceptedSubmission(s):4622ProblemDescriptionAnumberwhoseonlyprimefactorsare2,3,5or7i
xiuyang_leiasp
·
2012-11-20 13:00
windows 无法访问GPO,事件ID
1058
、1030问题
自从拯救了主域出现了不能新建用户的问题以后,主域在一段时间内很听话,没出什么问题,因此关注就相对减少了,昨天看了下日志,发现大篇幅的出现错误信息,信息ID是
1058
和1030: 网上查了资料之后,提出了错误可能性都排除了
myhbs520
·
2012-11-09 11:02
windows
hdu
1058
humble numbers
恶心的输出#include #include #include #include #include #include #include #include #include #include #defineiinf0x7f7f7f7f #definelinf1000000000000000000LL #definedinf1e200 #defineeps1e-11 #definelnglonglon
Lawrence_Jang
·
2012-11-06 19:00
hdu
1058
51521B 超长打表
hdu105851521B超长打表好吧,我承认我真的没有其他办法了,代码太长,C++博客可能都爆栈了,所以省略了一些内容。。。。。。如果有好的方法希望有大神指教#include#include#include#include#includeusingnamespacestd;inta[5843]={0,1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,
YAIMH1993的笔记
·
2012-10-22 11:00
杭电OJ——
1058
Humble Numbers(用优先队列也可以解)
HumbleNumbersDescriptionAnumberwhoseonlyprimefactorsare2,3,5or7iscalledahumblenumber.Thesequence1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27,...showsthefirst20humblenumbers. Writeaprogramtofinda
lishuhuakai
·
2012-10-11 06:00
struct
Integer
System
input
each
Numbers
HDU
1058
Humble Numbers
实在是无语了,为什么在zoj已经ac的代码在hdu是wa啊!看过之后,发现这里的n和cnt只能用int,或许hdu对数据的格式控制的比较严格吧!#include#include#defineMAX2000000000longlonga[5842];intcmp(constvoid*x,constvoid*y){ if(*(int*)x>*(int*)y)return1; elseretur
Wss0130
·
2012-09-11 22:00
上一页
9
10
11
12
13
14
15
16
下一页
按字母分类:
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
其他