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
doing
【杭电oj】1789 -
Doing
Homework again(贪心,并查集)
DoingHomeworkagainTimeLimit:1000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):10545 AcceptedSubmission(s):6179ProblemDescriptionIgnatiushasjustcomebackschoolfromth
wyg1997
·
2016-04-17 15:00
【贪心】
Doing
Homework again
DescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteachergiveshimadeadlineofhandinginthehomework.IfIgnatiushandsinthehomeworkafterthedeadline,theteacherwillre
qq_33638791
·
2016-04-09 14:00
闫星会 Day4
感触最深的是老师让我们把
doing
和done分别的写在白板上,这样就很明确地看到自己的进度。我们把任务分得比较细,为了满足小小的成就感,把做了的事情贴在了done的上面顿时心情就好了许多。
YouRunning
·
2016-04-04 12:33
HDU 1074
Doing
Homework【状态压缩DP】
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1074题意:给定作业截止时间和完成作业所需时间,比截止时间晚一天扣一分,问如何安排作业的顺序使得最终扣分最少?分析:最多只有15节课,可以将完成作业的情况进行状态压缩,用二进制表示,枚举出状态,进行dp。然后注意输入的时候本身就是字典序最小的,倒着来一遍,先不写后面的作业,这样最终得到的答案就是按字典序
Yukizzz
·
2016-04-04 11:00
hdu 1074
Doing
Homework (状压 + 记录路径)
http://acm.hdu.edu.cn/showproblem.php?pid=1074DoingHomeworkTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):7316 AcceptedSubmission(s):3240ProblemDescri
w144215160044
·
2016-04-03 16:00
A -
Doing
Homework again
A- DoingHomeworkagainTimeLimit:1000MS MemoryLimit:32768KB 64bitIOFormat:%I64d&%I64uSubmit StatusDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteac
dreamzuora
·
2016-04-03 10:00
ac
hdu 【1074】
Doing
Homework
DoingHomeworkTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):7256 AcceptedSubmission(s):3202ProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thA
chen_ze_hua
·
2016-03-29 19:00
线程和定时器
一:多线程 1,NSThread创建线程 a,NSThread的类方法创建线程 [NSThreaddetachNewThreadSelector:@selector(
doing
)toTarget:selfwithObject
百合不是茶
·
2016-03-15 10:08
线程
定时器
hdu 1074
Doing
Homework 状态压缩DP
题意:给出n个作业的名称,死线,用时,每个课程每超过死线一天扣一分,求最小扣分及其排列,多种情况下输出字典序最小的一组。由于n最大只有15,所以用状态压缩,从1到1 #include #include #include #defineN1>T; while(T--) { cin>>n; for(inti=0;i>a[i].s>>a[i].d>>a[i].c; intm=1=0;j--) { int
zchahaha
·
2016-03-13 09:00
dp
动态规划
C语言
HDU
状态压缩
线程和定时器
阅读更多一:多线程1,NSThread创建线程a,NSThread的类方法创建线程[NSThreaddetachNewThreadSelector:@selector(
doing
)toTarget:selfwithObject
百合不是茶
·
2016-03-13 00:00
线程
定时器
hdu-1074
Doing
Homework [状态dp]
D-DoingHomeworkTimeLimit:1000MS MemoryLimit:32768KB 64bitIOFormat:%I64d&%I64uSubmitStatusDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteachergivesh
a915800048
·
2016-03-08 20:00
HDOJ-1789
Doing
Homework again
先按分数对作业进行降序,在遍历每个作业,求出它可以完成的最迟时间,记下,若不能完成,则累加分数.#include #include #include #include #include #include #include usingnamespacestd; structWork{ intday,score; friendbooloperatorb.score; } }work[1005];
qq_26122039
·
2016-03-04 16:00
hdu 1074
doing
homework(状态压缩dp)
DescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteachergiveshimadeadlineofhandinginthehomework.IfIgnatiushandsinthehomeworkafterthedeadline,theteacherwillre
xiaojixuansu
·
2016-02-27 15:00
hdu 1789
Doing
Homework Again!
ProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteachergiveshimadeadlineofhandinginthehomework.IfIgnatiushandsinthehomeworkafterthedeadline,theteache
xiaojixuansu
·
2016-02-25 20:00
贪心 HDU 1789
Doing
Homework again
原题:点击打开链接思路:此题贪的是学分,为了获得更多的学分首先对学分从高到低进行排序学分高的科目可选择日期的自由更大,为了挤出时间完成其他日期较紧的科目,安排在限期的最后一天然后对学分稍低的科目进行安排,同样订在截止日期的最后一天,若当天已有安排(肯定是已安排学分更高的科目)则往前推一天,若前面几天都已排满,放弃此学分,以此类推核心代码:for(i=sum=0;i代码:#include #incl
纳森索亚
·
2016-02-15 15:27
贪心
HDU 1074
Doing
Homework 状压DP
题目链接:DoingHomework巨恶心。找了一晚上bug,发现for循环初始化居然不能代替memset。真心不服、附AC代码:1#include 2#include 3#include 4usingnamespacestd; 5 6#defineN16 7#defineM1t[i]?0:t[i]-dead[j]; 50if(dp[k]+tcost 15#include 16#
小小八
·
2016-02-14 00:00
HDU 1789
Doing
Homework again(贪心)
DoingHomeworkagainProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteachergiveshimadeadlineofhandinginthehomework.IfIgnatiushandsinthehomeworkafterthe
ACMSaga
·
2016-02-11 23:00
HDOJ 1789
Doing
Homework again
DoingHomeworkagainTimeLimit:1000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):10101 AcceptedSubmission(s):5916ProblemDescriptionIgnatiushasjustcomebackschoolfromth
RaAlGhul
·
2016-02-11 17:00
vs2013环境下搭建openGL开发环境
://jingyan.baidu.com/article/d5c4b52bca5005da560dc5d6.html编程方法,对opengl的了解,参考:http://www.cppblog.com/
doing
5552
eclipse_c
·
2016-02-01 16:25
其它
vs2013环境下搭建openGL开发环境
jingyan.baidu.com/article/d5c4b52bca5005da560dc5d6.html 编程方法,对opengl的了解,参考: http://www.cppblog.com/
doing
5552
eclipse_c
·
2016-02-01 16:00
前台基础的校验总结
allowNull){ //document.getElementById('
doing
').style.visibility='hidden'; ale
u010508826
·
2016-01-30 21:00
HDU 1074
Doing
Homework(状态压缩DP)
题意:有n门课,每门课有截止时间和完成所需的时间,如果超过规定时间完成,每超过一天就会扣1分,问怎样安排做作业的顺序才能使得所扣的分最小思路:二进制表示。1#include 2#include 3#include 4#include 5#include 6#include 7#include 8#include 9#include 10#include 11#include
untiltetw
·
2016-01-30 16:00
HDU——1789
Doing
Homework again(贪心)
DoingHomeworkagainTimeLimit:1000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):10043 AcceptedSubmission(s):5875ProblemDescriptionIgnatiushasjustcomebackschoolfromth
a88770202
·
2016-01-30 15:00
hdu 1789
Doing
Homework again
ProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteachergiveshimadeadlineofhandinginthehomework.IfIgnatiushandsinthehomeworkafterthedeadline,theteache
LeeHolmes
·
2016-01-29 19:00
HDU
Doing
Homework(hdu)1074
DoingHomeworkTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):6967 AcceptedSubmission(s):3043ProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thA
sjy22
·
2016-01-27 22:00
Ubuntu重启网络:Solution for resolvconf: Error: etc resolv.conf isn't a symlink, not
doing
anything
Error>>>>resolvconf:Error:/etc/resolv.confisn'tasymlink,notdoinganythingIfwegetthiserrorinUbuntuwhileRestartingNetworkHere/etc/resolv.confisafilethenmoveitto/run/resolvconf/resolv.conf.Solution>>>>Mov
luoyouren
·
2016-01-23 12:00
ubuntu
状态压缩dp-HDU1074-
Doing
Homework
题目: 每门课的作业有截止日期和完成作业所需要的日期,然后有多门课,如果每门课没完成会有一个惩罚,惩罚为多出来的时间。求做作业的顺序,使得惩罚最小。有T组数据,每组数据给出N门课,每门课给出了S(课程名)D(截止日期)C(完成作业所需的时间)思路: 课的总数 #include #include usingnamespacestd; intCase; intn; constintmaxn=21;
wait_never
·
2016-01-22 22:00
动态规划
状态压缩
HDU 1074
Doing
Homework(状态压缩dp)
题目链接:[kuangbin带你飞]专题十二基础DP1D-DoingHomework题意有n门功课需要完成,每一门功课都有时间期限以及你完成所需要的时间,如果完成的时间超出时间期限多少单位,就会被减多少学分,问以怎样的功课完成顺序,会使减掉的学分最少,有多个解时,输出功课名排列最小的一个。思路利用二进制位的方法来解题用过不少次,但真正意义上的状态压缩dp,这是第一道,有纪念意义,当然,一开始也没想
to_be_better
·
2016-01-22 17:00
dp
状态压缩
【转载】php implode函数应用
SQL:$SQL="deletefrom`
doing
`whereidin('1,2,3,4')";数据用逗号隔开。
cccc198
·
2016-01-21 17:17
PHP
效率提升最重要的原则 -
Doing
one thing at a time
前段时间流行的时间管理方法-番茄工作法,说的是选择一个你待完成的任务,将番茄时间设为25分钟,专注工作,中途不允许做任何与该任务无关的事,直到番茄时钟响起,然后短暂休息一下(5分钟就行),每4个番茄时段多休息一会儿。我尝试过几次,最后每次都感觉这个工具还是不太实用,把时间管理搞得有些过于复杂了。虽然这个工具对我不太适用,但我觉得番茄工作法背后的精髓是非常对的,就是在一段时间内你只专注在一件事情上,
pan_tian
·
2016-01-21 16:00
hdu 1074
Doing
Homework 状态压缩dp
DoingHomeworkTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):6928 AcceptedSubmission(s):3019ProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thA
zjw6463
·
2016-01-17 19:00
HDU 1074
Doing
Homework (状压dp)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1074题意:有n项作业,给出每项作业需要的时间和截止日期,每超出1天扣一分,问如何选择使得扣的分最少思路:用递推的方式遍历所有的情况(dp[i]由dp[i-(1 #include #include #include #include #defineinf0x3f3f3f3f #definemaxn1>s
csdn364988181
·
2016-01-17 15:00
dp
ACM
HDU
HDU 1789
Doing
Homework again
DoingHomeworkagainTimeLimit:1000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):9936AcceptedSubmission(s):5803ProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/
zyq_19960204
·
2016-01-16 14:00
hdu1074
Doing
Homework【状态压缩】
ProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteachergiveshimadeadlineofhandinginthehomework.IfIgnatiushandsinthehomeworkafterthedeadline,theteache
zhou_yujia
·
2016-01-07 09:00
dp
二进制
HDU 1789
Doing
Homework again 贪心
DoingHomeworkagainTimeLimit:1000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):9777 AcceptedSubmission(s):5722ProblemDescriptionIgnatiushasjustcomebackschoolfromthe
became_a_wolf
·
2015-12-18 13:00
摄像机平滑更随脚本
There are many different ways to smooth the rotation but
doing
it this way gives you
薛不签
·
2015-12-17 10:00
OpenGL绘制半透明物体技巧
http://bbs.pfan.cn/post-224877.htmlhttp://www.cppblog.com/
doing
5552/archive/2009/01/08/71532.html一、使用混合来实现半透明效果混合是什么呢
安静平和
·
2015-12-15 16:35
三维(OpenGl
D3D)
HDU1074
Doing
Homework 状态压缩DP
DoingHomeworkTimeLimit:1000MSMemoryLimit:32768KB64bitIOFormat:%I64d&%I64uDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteachergiveshimadeadlineofhandingin
qq_21057881
·
2015-12-06 16:00
优秀的学习方法--做中学(Learning By
Doing
)
优秀的学习方法--做中学(LearningByDoing)理论来源有“做中学(LearningByDoing)”的概念,最早可能是知道了Pragmatic的DaveThomas提出的CodeKata。体育运动的初学者练习时候都需要重复动作,比如学习打乒乓球时要练习挥拍,挥拍成千上万遍之后动作就会定型,也就是教练常说的“肌肉有了记忆能力”,以后实战中可以不假思索地做出来。CodeKata可以说程序员
娄老师
·
2015-11-27 05:00
优秀的学习方法--做中学(Learning By
Doing
)
优秀的学习方法--做中学(LearningByDoing)理论来源有“做中学(LearningByDoing)”的概念,最早可能是知道了Pragmatic的DaveThomas提出的CodeKata。体育运动的初学者练习时候都需要重复动作,比如学习打乒乓球时要练习挥拍,挥拍成千上万遍之后动作就会定型,也就是教练常说的“肌肉有了记忆能力”,以后实战中可以不假思索地做出来。CodeKata可以说程序员
娄老师
·
2015-11-27 05:00
Designing service layer classes in PHP
After
doing
some reading I can
mocha
·
2015-11-23 10:00
HDU 1789
Doing
Homework again 贪心
题意:有n门课程,每个课程有一个作业,每一个作业一天写完,一天只能写一门课作业,告诉你每一门课的最后交作业的期限,如果交不上就要扣除相应的学分,问你最少会扣除多少分?想法:这题不是利用率贪心,就是简单的一点想法,首先按照完成的期限升序排序,因为你要先保证要完成期限少的,再去完成期限多的,因为期限少的不能在(少期限,大期限]这段区间完成而期限大的可以。当有超期限的那么他的学分一定会被扣掉,但是我们可
Triple_WDF
·
2015-11-18 10:00
php设计模式 - 观察者模式
; $email = new Email(); $email ->
doing
(); $os = new orderStatus(); $os -> doin
stone_
·
2015-11-17 18:00
贪心初步 hdu1789
Doing
Homework again
一道非常经典的题目题目地址题目大意给出N个作业的截至日期,和N个作业不交所扣掉的分数,要求输出扣除分数做少的方案。正确的策略是:扣除分数大的先做扣除分数相同,先截止的先做做一件事的时候,从截止时间开始向第一天遍历,如果当天没有被作业占据则标记为占据。做这件事的日期越大越好。如果不能满足3的条件,则为不能完成1#include 2#include 3#include 4#include 5
ACMZZ
·
2015-11-16 17:00
The Docker学习记录[
Doing
]
微服务&Docker译文:使用Java构建微服务原文:BuildingMicroservicesWithJava【编者的话】本文翻译自DzoneGuidetotheJavaEcosystem,Dzone是一个关于Java的优秀网站。文中介绍了几种用Java构建微服务的方法,包括Container-less、Self-contained以及In-container。翻译经验不足,如有错误,请慷慨指出
zhoujiagen
·
2015-11-14 20:00
driller-cpp-web-crawler
Who am i:my name is meir yanovich and im c++/java developer mostly
doing
server infra cross platform
·
2015-11-13 22:16
Web
Oracle Locks之DML锁
Database automatically locks a resource on behalf of a transaction to prevent other transactions from
doing
·
2015-11-13 21:11
oracle
【翻译五】java-中断机制
Interrupts An interrupt is an indication to a thread that it should stop what it is
doing
·
2015-11-13 20:32
java
5 Questions With Herb Sutter
What's up with that, and what are you
doing
there? Are you going to switch to writing about Wind
·
2015-11-13 18:25
with
UVA Knight Moves
题目例如以下: Knight Moves A friend of you is
doing
research on the Traveling Knight
·
2015-11-13 18:24
move
上一页
10
11
12
13
14
15
16
17
下一页
按字母分类:
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
其他