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
#1038
zzuli OJ
1038
: 绝对值最大
Description输入3个整数,输出绝对值最大的那个数。Input输入包含3个int范围内的整数,用空格隔开。Output输出三个数中绝对值最大的数,单独占一行。若绝对值最大的数不唯一,则输出最先出现的那个。例如,若输入为1-33,则输出为-3;若输入为13-3则输出为3。SampleInput12-3SampleOutput-3HINTSource#include #include int
sinat_25926481
·
2015-08-28 16:00
c
算法
C语言
ACM
1038
. Recover the Smallest Number (30)好题
1038
.RecovertheSmallestNumber(30)时间限制400ms内存限制65536kB代码长度限制16000B判题程序Standard作者CHEN,YueGivenacollectionofnumbersegments
sinat_29278271
·
2015-08-28 09:00
排序
思想题
好题
HiHo
1038
------01背包
#
1038
:01背包时间限制:20000ms单点时限:1000ms内存限制:256MB描述且说上一周的故事里,小Hi和小Ho费劲心思终于拿到了茫茫多的奖券!而现在,终于到了小Ho领取奖励的时刻了!
lv414333532
·
2015-08-25 15:00
HDU
1038
.Biker's Trip Odometer【单位换算】【水水水】【8月24】
Biker'sTripOdometerProblemDescriptionMostbicyclespeedometersworkbyusingaHallEffectsensorfastenedtothefrontforkofthebicycle.AmagnetisattachedtooneofthespokesonthefrontwheelsothatitwilllineupwiththeHall
a995549572
·
2015-08-24 11:00
C++
ACM
HDU
1038
pat(B)
1038
. 统计同成绩学生(哈希)
代码:#include #include #include usingnamespacestd; intH[105]; intmain() { intn; while(scanf("%d",&n)==1) { inti; memset(H,0,sizeof(H)); for(i=0;i
xky1306102chenhong
·
2015-08-23 11:00
pat
使用Autolayout实现UITableView的Cell动态布局和高度动态改变
shi-yong-autolayoutshi-xian-uitableviewde-celldong-tai-bu-ju-he-ke-bian-xing-gao/index.htmlhttp://www.jianshu.com/p/89d
1038
e7fd7http
iStig
·
2015-08-04 13:40
南邮 OJ
1038
最小代价树
最小代价树时间限制(普通/Java) : 1000MS/ 3000MS 运行内存限制:65536KByte总提交:388 测试通过:98 比赛描述以下方法称为最小代价的字母树:给定一正整数序列,例如:4,1,2,3,在不改变数的位置的条件下把它们相加,并且用括号来标记每一次加法所得到的和。例如:((4+1)+ (2+3))=((5)+(5))=10。除去原数不4,1,2,3之
changshu1
·
2015-08-03 11:00
ACM
南邮OJ
最小代价树
hihoCoder -
1038
- 01背包
hihoCoder
1038
:01背包时间限制:20000ms 单点时限:1000ms 内存限制:256MB描述且说上一周的故事里,小Hi和小Ho费劲心思终于拿到了茫茫多的奖券!
violet_echo_0908
·
2015-08-02 14:00
dp
01背包
hihoCoder
Hduoj
1038
【水题】
/*Biker'sTripOdometer TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others) TotalSubmission(s):4913AcceptedSubmission(s):3272 ProblemDescription Mostbicyclespeedometersworkbyusinga
u014641529
·
2015-08-01 17:00
01背包
#
1038
:01背包时间限制:20000ms单点时限:1000ms内存限制:256MB描述且说上一周的故事里,小Hi和小Ho费劲心思终于拿到了茫茫多的奖券!而现在,终于到了小Ho领取奖励的时刻了!
李晨龙
·
2015-08-01 16:00
上海黄金商圈地段-梅龙镇广场地下车库改造
上海梅龙镇广场建造于1999年,处于上海商圈黄金地带的南京西路
1038
号。隔街相望的便是上海恒隆广场,云集来自世界各地顶尖时尚品牌的高端百货商场。
sharemedia
·
2015-07-22 13:26
避免对C#中float,double,decimal的错误理解(转)
NameCTSTypeDescriptionSignificantFiguresRange(approximate)floatSystem.Single32-bitsingle-precisionfloatingpoint7±1.5×10−45 to±3.4×
1038
dou
Gopher老虞
·
2015-07-21 14:00
避免对C#中float,double,decimal的错误理解(转)
NameCTSTypeDescriptionSignificantFiguresRange(approximate)floatSystem.Single32-bitsingle-precisionfloatingpoint7±1.5×10−45 to±3.4×
1038
dou
Gopher老虞
·
2015-07-21 14:00
利用C++文件流进行数据块的读写
科研项目上遇到一个文件流的读写问题,要把一个图片像素大小(1392*
1038
)的矩阵(double型)数据写入磁盘,一开始是用ofstream将数据逐个写入txt文件中,这样做的结果就是写出的文件太大,
tmshasha
·
2015-07-14 10:00
数据块
存储
open
文件读写
ofstream
[Tyvj
1038
] 忠诚
忠诚描述老管家是一个聪明能干的人。他为财主工作了整整10年,财主为了让自已账目更加清楚。要求管家每天记k次账,由于管家聪明能干,因而管家总是让财主十分满意。但是由于一些人的挑拨,财主还是对管家产生了怀疑。于是他决定用一种特别的方法来判断管家的忠诚,他把每次的账目按1,2,3…编号,然后不定时的问管家问题,问题是这样的:在a到b号账中最少的一笔是多少?为了让管家没时间作假他总是一次问多个问题。输入格
slongle_amazing
·
2015-06-28 09:00
1038
. Recover the Smallest Number (30) - 字符串排序
题目如下:Givenacollectionofnumbersegments,youaresupposedtorecoverthesmallestnumberfromthem.Forexample,given{32,321,3214,0229,87},wecanrecovermanynumberssuchlike32-321-3214-0229-87or0229-32-87-321-3214with
xyt8023y
·
2015-06-12 16:00
排序
算法
vector
pat
sstream
hihoCoder#
1038
: 01背包
【题目链接】:clickhere~~时间限制:20000ms单点时限:1000ms内存限制:256MB描述且说上一周的故事里,小Hi和小Ho费劲心思终于拿到了茫茫多的奖券!而现在,终于到了小Ho领取奖励的时刻了!小Ho现在手上有M张奖券,而奖品区有N件奖品,分别标号为1到N,其中第i件奖品需要need(i)张奖券进行兑换,同时也只能兑换一次,为了使得辛苦得到的奖券不白白浪费,小Ho给每件奖品都评了
u013050857
·
2015-06-10 11:00
dp
ACM
hihoCoder
LightOJ
1038
- Race to 1 Again 【DP】
problem=
1038
题意:题目很短,不叙述了。
u014427196
·
2015-06-09 20:00
Pat(Basic Level)Practice--
1038
(统计同成绩学生)
Pat
1038
代码题目描述:本题要求读入N名学生的成绩,将获得某一给定分数的学生人数输出。输入格式:输入在第1行给出不超过105的正整数N,即学生总人数。
u012736084
·
2015-05-19 19:00
basic
pat
北宋历代帝王年号
年宋真宗咸平998年-1004年景德1004年-1008年大中祥符1008年-1017年天禧1017年-1022年乾兴1022年宋仁宗天圣1023年-1032年明道1032年-1033年景祐1034年-
1038
代兰芬
·
2015-05-18 17:34
1038
. Recover the Smallest Number (30)
Givenacollectionofnumbersegments,youaresupposedtorecoverthesmallestnumberfromthem.Forexample,given{32,321,3214,0229,87},wecanrecovermanynumberssuchlike32-321-3214-0229-87or0229-32-87-321-3214withrespe
oFengWuYu1
·
2015-05-10 03:00
LIghtOJ
1038
---Race to 1 Again(概率dp)
Rimilearnedanewthingaboutintegers,whichis-anypositiveintegergreaterthan1canbedividedbyitsdivisors.So,heisnowplayingwiththisproperty.HeselectsanumberN.AndhecallsthisD.Ineachturnherandomlychoosesadiviso
Guard_Mine
·
2015-04-29 20:00
dp
[省选前题目整理][BZOJ
1038
][ZJOI 2008]瞭望塔(半平面交)
id=
1038
思路http://blog.csdn.net/qpswwww/article/details/44105605这个半平面交并不可以当作模板用,因为这里的半平面交并不是一个封闭的多边形,因此少了很多一般的半平面交的细节代码
qpswwww
·
2015-04-10 16:00
TOJ
1038
Prime Land-- 素数
题意题意大概就是这样,输入的是一个数字因数分解之后的表示形式:N=∏ki=1paii其中pi是N的质因子.输入的数据就是pi和ai然后求出的N-1的质因子分解表示,按质因子的倒序排列SampleInput171512150915910SampleOutput243213111171513121思路就按着最简单的想法去做即可,不过需要注意需要使用longlong类型表示N。另外输入的时候,由于并不确
u013652219
·
2015-03-19 11:00
TOJ
1038
. 统计同成绩学生(20)
题目链接:http://www.patest.cn/contests/pat-b-practise/10381038.统计同成绩学生(20)时间限制250ms内存限制65536kB代码长度限制8000B判题程序Standard作者CHEN,Yue本题要求读入N名学生的成绩,将获得某一给定分数的学生人数输出。输入格式:输入在第1行给出不超过105的正整数N,即学生总人数。随后1行给出N名学生的百分制
ice_camel
·
2015-03-14 20:00
二分查找
归并排序
C语言
乙级
浙大PAT
[BZOJ
1038
][ZJOI 2008]瞭望塔(半平面交)
id=
1038
思路这个题在上海ACM/ICPC冬令营的比赛中也考过,不是很难,不过想要想到用半平面交来搞还是不容易的。
qpswwww
·
2015-03-06 21:00
PAT A
1038
Recover the Smallest Number 算法问题和关于'0'和0的小错误
//ac,改了一次,s[0]!='0',我写成了s[0]!=0 //注意连接起来最小才是最小 //+表示字符串的连接 //注意去除前导0总是要考虑字符串长度为0,A1060也是这样的 #include #include #include #include usingnamespacestd; constintmaxn=10010; stringstr[maxn];//注意这里string应该是不定
daisyleedq
·
2015-03-06 17:00
C++
算法
pat
【BZOJ
1038
】 [ZJOI2008]瞭望塔
1038
:[ZJOI2008]瞭望塔TimeLimit: 10Sec MemoryLimit: 162MBSubmit: 973 Solved: 428[Submit][Status]Description
Regina8023
·
2015-02-25 11:00
半平面交
计算几何
OI
bzoj
[置顶] oj分类
集锦了一下网上几个比较好的分类~~~~留着用~水题:1004、1005、1008、1012、1013、1014、1015、1017、1020、1021、1022、1031、1032、1033、1036、1037、
1038
ydd97
·
2015-01-22 11:00
hihoCoder -
1038
- 01背包 (经典动态规划问题!!)
#
1038
:01背包时间限制:20000ms单点时限:1000ms内存限制:256MB描述且说上一周的故事里,小Hi和小Ho费劲心思终于拿到了茫茫多的奖券!而现在,终于到了小Ho领取奖励的时刻了!
u014355480
·
2014-12-25 18:00
dp
动态规划
ACM
hihoCoder
PAT
1038
. Recover the Smallest Number
#include #include #include #include #include usingnamespacestd; boolcomp(stringa,stringb) { strings1=a+b; strings2=b+a; //returnlexicographical_compare(s1.begin(),s1.end(),s2.begin(),s2.end()); retur
guoliang
·
2014-12-20 19:00
九度OJ
1038
Sum of factorials (模拟)
题目
1038
:SumofFactorials时间限制:1秒内存限制:32兆特殊判题:否提交:1491解决:635题目描述: JohnvonNeumann,b.Dec.28,1903,d.Feb.8,1957
wdkirchhoff
·
2014-12-13 15:00
九度OJ
1038
#
1038
: 01背包
时间限制:20000ms单点时限:1000ms内存限制:256MB描述且说上一周的故事里,小Hi和小Ho费劲心思终于拿到了茫茫多的奖券!而现在,终于到了小Ho领取奖励的时刻了!小Ho现在手上有M张奖券,而奖品区有N件奖品,分别标号为1到N,其中第i件奖品需要need(i)张奖券进行兑换,同时也只能兑换一次,为了使得辛苦得到的奖券不白白浪费,小Ho给每件奖品都评了分,其中第i件奖品的评分值为valu
liupan1114250779
·
2014-12-12 23:00
hdu3607——Traversal
TraversalTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):
1038
Guard_Mine
·
2014-12-07 12:00
dp
线段树
PAT
1038
. Recover the Smallest Number (30)
http://pat.zju.edu.cn/contests/pat-a-practise/
1038
Givenacollectionofnumbersegments,youaresupposedtorecoverthesmallestnumberfromthem.Forexample
xtzmm1215
·
2014-11-03 00:00
BZOJ
1038
ZJOI 2008 瞭望塔 半平面交
题目大意:给出一个村庄的轮廓,在这个村庄里可以在任意的地方建一个瞭望塔,这个塔需要足够高,使得能够看得村庄的全貌。求这个瞭望塔的最小高度。思路:对于村庄中的每一条边,瞭望塔为了看见它,必须要在这个直线左侧的半平面区域。这样的话为了满足所有的边的需求,做一次半平面交,瞭望塔的最高点必须在所有边的半平面交的区域内。如下图样例。所有边的半平面交区域就是上面的图形。设上面半平面的函数关系是F(x),村长的
jiangyuze831
·
2014-10-24 15:00
计算几何
半平面交
bzoj
ZJOI2008
BZOJ
1038
ZJOI2008 瞭望塔 半平面交
题目大意及模拟退火题解:见 http://blog.csdn.net/popoqqq/article/details/39340759 这次用半平面交写了一遍……求出半平面交之后,枚举原图和半平面交的每个点,求出答案即可#include #include #include #include #include #defineM310 #defineeps1e-7 usingnamespacestd;
PoPoQQQ
·
2014-10-24 15:00
半平面交
bzoj
BZOJ1038
BZOJ
1038
ZJOI2008 瞭望塔 模拟退火+二分答案
题目大意:给定一条折线,要求选择一个点建立高度为h的瞭望塔,要求瞭望塔塔顶可以看到折线上的每一个点,求h的最小值正解:半平面交不会!于是我们选择模拟退火来寻找瞭望塔的横坐标确定瞭望塔的高度的时候我们选择二分处理对于二分的每一个值我们把折线上的端点从左到右枚举瞭望塔的塔尖到每个端点的连线必须从左到右逆时针顺序否则就会被遮挡如图,塔尖到点2的连线在到点1的连线的顺时针方向,故点1被遮挡,该高度不可行写
PoPoQQQ
·
2014-09-17 12:00
模拟退火
bzoj
二分答案
BZOJ1038
PAT (Advanced)
1038
. Recover the Smallest Number (30)
#include #include #include #include usingnamespacestd; boolcmp(conststring&a,conststring&b) { return(a+b)>n; vectornum(n); for(inti=0;i>num[i]; } sort(num.begin(),num.end(),cmp); stringresult; for(i
hale1007
·
2014-09-02 21:00
ACdream区域赛指导赛之手速赛系列(5) 解题报告 A C D
/* *thiscodeismadebysquee_spoon *Problem:
1038
*Verdict:Accepted *SubmissionDate:2014-08-2219:41:23 *Tim
squee_spoon
·
2014-08-23 14:00
ACdream
1038
Recover the Smallest Number
先想到sort,但是cmp不对;又想到深搜,但是想不到判断退出的条件,把所有结果保存下来,再怎么比较找出最小的也不行;最后ref:http://tech-wonderland.net/blog/pat-
1038
kaneqi
·
2014-08-20 14:00
LightOJ
1038
Race to 1 Again 期望 记忆化dp
题目链接:点击打开链接
1038
-Raceto1AgainPDF(English)StatisticsForumTimeLimit: 2second(s)MemoryLimit: 32MBRimilearnedanewthingaboutintegers
qq574857122
·
2014-08-18 00:00
poj dp合集
1015JuryCompromise1029Falsecoin1036Gangsters1037Adecorativefence
1038
BugsIntegrated,Inc.1042GoneFishing1050TotheMax1062
zz_ylolita
·
2014-08-09 01:00
tyvj
1038
忠诚题解
本题属于ST我用的方法是倍增令f]i,j]表示i~i+2^j-1中的最小值f[i,0]:=a[i];//注意:这里可以直接read(f[i,0]);防止超时循环算出f[i,j]的时候要先循环j在循环i,i在数据范围很大的时候一定要算到它最大所能算到的地方,防止超时n-1shlj+1programt; varn,m,i,j,k,x,y,ans:longint; f:array[0..100000,0
zz_ylolita
·
2014-08-08 20:00
HDU-4902 Nice boat
NiceboatTimeLimit:30000/15000MS(Java/Others) MemoryLimit:131072/131072K(Java/Others)TotalSubmission(s):
1038
·
2014-08-01 20:00
HDU
C#中DECIMAL ,DOUBLE,FLOAT
45to±3.4×
1038
doubleS
CNHK1225
·
2014-07-31 14:00
.net
double
DECIMAL
poj
1038
Bugs Integrated, Inc.(状压dp)
id=
1038
BugsIntegrated,Inc.TimeLimit: 15000MS MemoryLimit: 30000KTotalSubmissions: 8917 Accepted: 3404CaseTimeLimit
madaidao
·
2014-07-28 19:00
dp
搜索
动态规划
ACM
DFS
1038
. Recover the Smallest Number
#include #include #include #include usingnamespacestd; typedefconststring&csr; intmain(){ vectorvs; intn,i; cin>>n; while(n--){strings;cin>>s;vs.push_back(s);} sort(vs.begin(),vs.end(),[](csra,csrb){r
u013827143
·
2014-07-03 13:00
POJ
1038
#include #include #include #definemaxn200+50 usingnamespacestd; intnum[maxn]; intmain() { intt,n; intst,end; intx,y; scanf("%d",&t); while(t--) { memset(num,0
u013570474
·
2014-05-20 19:00
Linux环境下配置真机测试
0001LinuxFoundation1.1roothub Bus007Device001:ID1d6b:0001LinuxFoundation1.1roothub Bus003Device013:ID12d1:
1038
dengxin919820
·
2014-05-14 18:47
linux
真机测试
上一页
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
其他