Problem Description
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in t...
分类:
其他好文 时间:
2015-02-12 14:03:30
阅读次数:
168
HOMEWORK:HOMEWORK5.2(HANDSON)CrunchingtheZipcodedatasetPleasecalculatetheaveragepopulationofcitiesinCalifornia(abbreviationCA)andNewYork(NY)(takentogether)withpopulationsover25,000.Forthisproblem,assumethatacitynamethatappearsinmorethanonestaterepresentstwo..
分类:
数据库 时间:
2015-02-08 23:23:13
阅读次数:
1454
Git 的入门教程
4> git远程仓库的使用
我们在使用git进行代码管理的时候,协同办公,需要一个24小时不间断的隐形同事,此时,如果在局域网内,则直接开一台局域网内的24小时开机运行的机器就可以,但是如果在homework的时候就需要这个24小时运行的机器拥有独立的外网IP,这样消耗就比较大,幸好,网上有一个github,提供给我们一个免费的仓库,让我们可以在...
分类:
其他好文 时间:
2015-01-28 17:55:01
阅读次数:
181
题意:有N(N>T; while(T--){ scanf("%d",&n); rep(i,1,n){ scanf("%s%d%d",work[i].name,&work[i].deadline,&work[i].days); } ...
分类:
其他好文 时间:
2015-01-25 12:23:01
阅读次数:
155
前两周的作业比较简单,轻松搞定,这周的作业突然难起来了,费了好大劲儿写完,还有很多需要改进的地方,目前只能算是勉强实现了功能。需求:HOMEWORK:HOMEWORK3.1Downloadthestudents.jsonfilefromtheDownloadHandoutlinkandimportitintoyourlocalMongoinstancewiththiscomman..
分类:
数据库 时间:
2015-01-25 11:13:45
阅读次数:
292
题意:N个作业,每个作业有个deadline。每个作业完成耗时一天。如果某个作业没在deadline前完成,则要扣去一定的分数。给出N个要扣除的分数score[1]....score[N]。如何安排使得扣分最少?求最少扣分。思路:按扣分多少从大到小排序,然后一个一个放到各自的deadline前的某个...
分类:
其他好文 时间:
2015-01-25 00:08:46
阅读次数:
188
D - Doing Homework again
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
Ignatius has just come back school from the 30th ACM/ICPC....
分类:
其他好文 时间:
2015-01-24 14:34:22
阅读次数:
151
题目描述:
Homework10 points
Your first-grade math teacher, Mr. Book, has just introduced you to an amazing new co...
分类:
其他好文 时间:
2015-01-21 08:59:29
阅读次数:
158
题目:有很多科目的作业要做,每个作业有个上交的截止时间,每个作业不交会扣一定的分数,
每个作业需要有1天完成,求最小的扣分数。
分析:贪心。每次找到当前剩余的作业中分数最高的,找到小于它的截止日期的未被安排的最大时间,
对这个时间进行占用,寻找下一个作业即可。
(如果截止日期相同,一定安排分数大的;如果截止日期不同,出现...
分类:
其他好文 时间:
2015-01-20 10:29:31
阅读次数:
176
Doing Homework againTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionIgnatius has just come back school from the 30th ACM/...
分类:
其他好文 时间:
2015-01-19 18:53:25
阅读次数:
216