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
九度OJ
1058
:反序输出 (基础题)
时间限制:1秒内存限制:32兆特殊判题:否提交:8454解决:3042题目描述:输入任意4个字符(如:abcd),并按反序输出(如:dcba)输入:题目可能包含多组用例,每组用例占一行,包含4个任意的字符。输出:对于每组输入,请输出一行反序后的字符串。具体可见样例。样例输入:Upin cvYj WJpw cXOA样例输出:nipU jYvc wpJW AOXc来源:2000年清华大学计算机研究生机
thudaliangrx
·
2015-10-22 09:00
字符串
C语言
OJ
九度
杭电ACM题目分类
基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、
1058
、1061
·
2015-10-21 11:54
ACM
期望
[http://yishan.cc/blogs/xin/archive/2009/04/12/
1058
.aspx] 学校的期望 我在BBS 看到有人感慨说- 有家长让小孩在大学里专心学习,不要想别的
·
2015-10-21 11:40
HDOJ分类
基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、
1058
、1061
·
2015-10-21 11:10
分类
HDU_
1058
Humble Numbers(DP)
动态规划题,F[n] 可由2, 3, 5, 7与F[n-1]的乘积得到,取这四个数的的最小值,就是当前F[n]的值,即F[n] = min{F[n-1]*2, F[n-1]*3, F[n-1]*5, F[n-1]*7}。 前6个数的递归过程: n1 = 1; n2 = min{1*2, 1*3,1*5,1*
·
2015-10-21 11:29
number
hdu
1058
Humble Numbers
Problem Description A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, ... shows the first
·
2015-10-21 10:08
number
HDU-
1058
-Humble Numbers-暴力贪心
pid=
1058
题意:找出只由2、3、5、7的i次方组成的第k个数。
viphong
·
2015-10-17 19:00
51nod
1058
N的阶乘的长度 (Stirling公式)
输入N求N的阶乘的10进制表示的长度。例如6!=720,长度为3。Input输入N(1 #include #include #include #include usingnamespacestd; intmain() { inti,j,n; doublesum; sum=1; cin>>n; for(i=1;i #include #include #include #include usingn
h1021456873
·
2015-10-16 18:00
hdu 1498 50 years, 50 colors(二分匹配_匈牙利算法)
Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):1918 AcceptedSubmission(s):
1058
Probl
qiqi_skystar
·
2015-10-12 14:00
Humble Numbers HDU杭电
1058
【动态规划】
pid=
1058
ProblemDescriptionAnumberwhoseonlyprimefactorsare2,3,5or7iscalledahumblenumber.Thesequence1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27
yuzhiwei1995
·
2015-09-09 22:00
1058
. A+B in Hogwarts (20) -- 数据范围问题
题目地址:http://www.patest.cn/contests/pat-a-practise/
1058
/* int,long,longlong类型的范围 unsignedint0~4294967295
qq_26437925
·
2015-09-03 15:00
bzoj刷题(shui)记录
codebzoj
1058
:两棵平衡树。codebzoj1922:
FZHvampire
·
2015-08-31 11:58
HDU
1058
Humble Numbers
题目地址:点击打开链接思路:看的标程,看的晕晕乎乎,很多细节没搞懂,除了最后2位11,12,13是th之外,逢1就是st,2就是nd,3就是rd,其他都是thAC代码:#include #include usingnamespacestd; inta[6000]; intmin4(inta,intb,intc,intd) { returnmin(min(a,b),min(c,d)); }
qq_25605637
·
2015-08-30 20:00
HDU
1058
.Humble Numbers【这个题怎么定位呢···就【DP】吧】【8月28】
HumbleNumbersProblemDescriptionAnumberwhoseonlyprimefactorsare2,3,5or7iscalledahumblenumber.Thesequence1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27,...showsthefirst20humblenumbers. Writeaprogram
a995549572
·
2015-08-28 19:00
C++
dp
ACM
HDU
zzuli OJ
1058
: 求解不等式
Description已知不等式1!+2!+3!+...+m!‹n,请编程对用户指定的n值计算并输出满足该不等式的m的整数解。Input输入一个整数n,n为int范围内的正整型。Output输出m的取值范围,具体格式见输出样例。SampleInput2000000000SampleOutputm intmain() { inti,n; doublesum,fact;//若定义为int,会造成计算
sinat_25926481
·
2015-08-28 16:00
编程
c
算法
C语言
ACM
vijos
1058
粘贴文本
发帖来水,这是多年前我认为纯模拟会超时的题。。。然而就这样过了#include #include #include #include usingnamespacestd; intn,k,a,b,c; intt[100000],order[100000]; intmain() { cin>>n>>k; for(inti=1;i>a>>b>>c; for(intj=a;j=c+b-a+2;j--)
zz_ylolita
·
2015-08-28 04:00
HUD
1058
Humble Numbers
HUD
1058
HumbleNumbersProblemDescriptionAnumberwhoseonlyprimefactorsare2,3,5or7iscalledahumblenumber.Thesequence1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27
qq_21120027
·
2015-08-18 18:00
杭电
九度 Online Judge 算法 刷题 题目
1058
:反序输出
题目
1058
:反序输出题目描述:输入任意4个字符(如:abcd),并按反序输出(如:dcba)输入:题目可能包含多组用例,每组用例占一行,包含4个任意的字符。
never_cxb
·
2015-08-14 18:00
c
算法
code
面试
计算机
杭电题目分类
基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、
1058
、1061
wind14
·
2015-08-12 14:00
ACM
杭电oj
hdu
1058
Humble Numbers(dp)
看的题解。。。不知道这些方法都是怎么想出来的,好厉害啊,估计我是想不出来的,用b2,b3,b5,b7来分别记录从第几位数开始还没有乘对应的2,3,5,7然后比较,小的数排上就ok了。。。注意有的时候是、会出现乘积相同,所以都得加一,比如2*3和3*2,都得让b2,b3加一。这道题还涉及到了英语上的知识,就是只有11,12,13是序数词时加th,1,2,3,分别是first,second,third
sinat_22659021
·
2015-08-10 20:00
HDU 1498 50 years, 50 colors 二分图最小点覆盖(基础题)
1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):1918AcceptedSubmission(s):
1058
ProblemDescriptionOnOctorber21st
u012587561
·
2015-08-08 10:00
ACM
HDU
二分图
最小点覆盖
典型题
hdu
1058
Humble Number
pid=
1058
解题思路:orz英语序数。。。
piaocoder
·
2015-08-07 21:00
丑数
南邮 OJ 1094 蛇形填数
蛇形填数时间限制(普通/Java) : 5000MS/ 3000MS 运行内存限制:65536KByte总提交:
1058
测试通过:398 比赛描述在n×n方阵里填入1,2,…,n
changshu1
·
2015-08-04 11:00
ACM
蛇形填数
南邮OJ
南邮 OJ
1058
Tom and Jerry
TomandJerry时间限制(普通/Java) : 1000MS/ 3000MS 运行内存限制:65536KByte总提交:251 测试通过:98 比赛描述Tom和Jerry在10*10的方格中:*...*...........*......*...*...............*.C....*.....*......*........M......*...*.*....
changshu1
·
2015-08-04 10:00
ACM
and
tom
Jerry
南邮OJ
错误提示:连接 built-in.o 提示 undefined reference to
map_xbar_event_to_channel':/home/hello/work/kernel/am335x/linux-3.2.21/arch/arm/mach-omap2/devices.c:
1058
woshidahuaidan2011
·
2015-08-01 11:00
undefined
reference
built-in.o
1058
. A+B in Hogwarts (20)
题目如下:IfyouareafanofHarryPotter,youwouldknowtheworldofmagichasitsowncurrencysystem--asHagridexplainedittoHarry,"SeventeensilverSicklestoaGalleonandtwenty-nineKnutstoaSickle,it'seasyenough."Yourjobistow
xyt8023y
·
2015-07-26 12:00
算法
pat
进位
runas 用法
基本用法:runas/user:Administratorcmd.exe在使用过程中,可能存在以下错误:(1)“RUNAS错误:无法运行-cmd
1058
:无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动
whatever957
·
2015-07-23 22:45
RUNAS
HDOJ题目分类
基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、
1058
、1061
jinjide_ajin
·
2015-07-17 17:00
hdoj
题目分类
hdu
1058
pid=
1058
#include #include intdp[6000]={0,1}; charstr[5][5]={"th","st","nd","rd"}; intn,m,i,j,k,t; intnum2
wojiaohuangyu
·
2015-07-13 10:00
POJ 2247 && HDU
1058
Humble Numbers(数论)
Description定义一种集合,使得其中的元素的素数因子只能是2,3,5,7即:11,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27,…要求这个集合的第n个数是多少Input多组输入,每组用例一个整数n表示查询该集合第n个元素,以n=0结束输入Output对于每组用例,输出集合第n个元素SampleInput123411121321222310
V5ZSQ
·
2015-07-09 11:00
hdu 1719 Friend 数学推导
Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):2099 AcceptedSubmission(s):
1058
ProblemDescriptio
u013532224
·
2015-07-07 21:00
数学
杭电题分类
基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、
1058
、1061
qq_27803491
·
2015-07-07 12:00
ACM
HDU
杭电
杭电题分类
NYOJ
1058
部分和问题(dfs+回溯)
部分和问题时间限制:1000ms | 内存限制:65535KB难度:2描述给定整数a1、a2、.......an,判断是否可以从中选出若干数,使它们的和恰好为K。输入首先,n和k,n表示数的个数,k表示数的和。接着一行n个数。(1 #include intn,sum,s,bz; intv[1000];//标记 inta[1000]; intnum[1000];//记录输出数字 voiddf
helloiamclh
·
2015-07-06 23:00
杭电题目分类
基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、
1058
、1061
helloiamclh
·
2015-06-30 19:00
HDUOJ
基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、
1058
、1061
佳家
·
2015-06-25 22:00
使用xpdf解析中文PDF详细过程
http://www.foolabs.com/xpdf/download.htmlThefollowingpackagesareavailable:Arabic: xpdf-arabic.tar.gz (
1058
byt
hong0220
·
2015-06-15 14:00
HDU 丑数 -
1058
Humble Numbers
这一题是讲了一个名叫丑数的概念(为啥叫丑数,,)。概念:因子中仅仅包含2、3、5,7的数,称为丑数。但其实我百度网上时,发现正常的丑数应该是因子中仅仅包含2、3、5,不过基本都一样。我们可以通过不断mod2,3,5,7,直到无法在摸,验证此时是否为1来判断该数是否为丑数,但是这样的方法太过浪费时间,所以介绍一种新的方法,下面方法摘自这里点击打开链接。根据丑数的定义,丑数应该是另一个丑数乘以2、3,
u010006643
·
2015-06-10 20:00
humble number(hd
1058
)
Problem Description A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, ... shows the firs
·
2015-05-12 22:00
number
HDU 5078 Osu!
TimeLimit:2000/1000MS(Java/Others) MemoryLimit:262144/262144K(Java/Others)TotalSubmission(s):
1058
David_Jett
·
2015-05-11 23:00
入门
HDU
最水题
hdu
1058
Humble Numbers 丑数(set,优先队列应用)
题目要求,如果一个数的素因数(因数中的素数),只有2,3,5,7,那么这个数称为丑数,输入一个数n,求第n个丑数题目给出了前20个丑数1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27里面没有11,因为11的因数11是素数,而且11不属于2,3,5,7;所以不是丑数;我们从小到大生成丑数,可以看出对于任意丑数x,2x,3x,5x,7x,也是丑数,所
chaiwenjun000
·
2015-05-05 20:00
set
STL
priority_que
[置顶] hdu题目分类
分类二:基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、
1058
chaiwenjun000
·
2015-04-22 16:00
ACM
HDOJ
1058
- Humble Numbers 更新Treap模板..
题意: 定义质因数只为2,3,5,7为丑数...问第n大丑数是什么(1 #include #include #include #include #include #include #include #include #defineMAXN10005 #defineMAXM805 #defineoo1key) { if(!insert(h[k].l,key))returnfalse
kk303
·
2015-04-02 18:00
PAT A
1058
A+B in Hogwarts
//ac了 #include intmain(){ //思考一下,本来想着这题能不能用循环的呢,如果循环的话,又要用数组关系了,因为每次取余的数不一样 inta[3]={0}; intb[3]={0}; intc[3]={0}; scanf("%d.%d.%d%d.%d.%d",&a[2],&a[1],&a[0],&b[2],&b[1],&b[0]); intjinwei=0; c[0]=(a[0
daisyleedq
·
2015-02-23 17:00
C++
算法
pat
PAT A
1058
A+B in Hogwarts
//非常重要的是关于进位的处理,这一题是参考书上的的,还要再看 #include intmain(){ inta[3],b[3],c[3]; scanf("%d.%d.%d%d.%d.%d",&a[0],&a[1],&a[2],&b[0],&b[1],&b[2]); intcarry=0;//进位,不懂 c[2]=(a[2]+b[2])%29;//取得2号位的结果 carry=(a[2]+b[2]
daisyleedq
·
2015-02-22 23:00
C++
算法
pat
HDU
1058
Humble Numbers(递推)
pid=
1058
题意:丑数是指只有2,3,5or7这几个素因数的数(所以1也是丑数),找到第n个丑数。思路:除了2,3,5,7任何一个丑数都是由另一个丑数乘上2,或3,或5,或7得到的。
kalilili
·
2015-02-12 00:00
hdu
1058
dp解法
应用了递推的思想,一个数的形式必然是2^p1*3^p2*5^p3*7*p4的形式,所以当前一定是由前面某一个数乘上2,5,7,3中的某一个获得的,而且是乘积最小的,所以我们标记当前最靠前的没有乘某一个因子的数,也就是当前某个因子对应的可以乘取的最小的数,可以采取如下方式进行动态规划,代码很好理解当然更简单的还有枚举的做法在我的解题报告中也有另一篇枚举法的解体方法代码如下:#include #inc
qq_24451605
·
2015-02-02 23:00
C++
动态规划
hdu
1058
枚举法
#include #include #include #include #defineUP2000000000L #defineMAX160007 usingnamespacestd; typedeflonglongLL; LLnum[MAX]; intcnt=1; voidinit() { LLtemp1=1,temp2=1,temp3=1,temp4=1; while(temp1UP)
qq_24451605
·
2015-02-02 22:00
枚举
C++
1058
. A+B in Hogwarts (20)
题目:IfyouareafanofHarryPotter,youwouldknowtheworldofmagichasitsowncurrencysystem--asHagridexplainedittoHarry,"SeventeensilverSicklestoaGalleonandtwenty-nineKnutstoaSickle,it'seasyenough."Yourjobistowri
Yangsongtao1991
·
2015-02-02 22:00
考试
pat
浙江大学
【BZOJ
1058
】 [ZJOI2007]报表统计
1058
:[ZJOI2007]报表统计TimeLimit: 15Sec MemoryLimit: 162MBSubmit: 2013 Solved: 708[Submit][Status]Description
Regina8023
·
2015-02-01 08:00
STL
OI
bzoj
微信怎么添加自定义表情 微信导入表情包详细图文教程
软件名称:阿狸动态QQ表情包2014最新版(
1058
P)
佚名
·
2015-01-28 09:19
上一页
7
8
9
10
11
12
13
14
下一页
按字母分类:
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
其他