题目大概说,有n个从0到n-1的城市,要从城市0运送石头到城市1,运送石头的单价是p。城市间的有m条双向路相连,路都有能运送石头的限额c1,如果超过限额运送石头的单价就要提高c2。问在总花费c以内能运送最多多少石头。 不大一样的题。建容量网络很容易: 源点向0连容量INF费用p的边,1向汇点连容量I ...
分类:
其他好文 时间:
2016-04-12 19:04:38
阅读次数:
164
最近通过PowerDesign->SQLServer->VS的方式,将数据库设计、创建、实体模型生成等环节打通,发现VS中的Model竟然没有说明,然后就在园子里找了一下,发现了园友的文章。 原文地址(PowerDesign摘要):http://www.cnblogs.com/stone_w/arc ...
分类:
其他好文 时间:
2016-04-01 12:40:31
阅读次数:
189
S3C2440: 从nandflash启动的时候,上电之后,硬件自动将nandflash里bootloader的前4K代码复制到stepping stone(0地址)中,这4K的代码除了负责一些硬件初始化,还负责将bootloader剩下的代码复制到内存0x3000 0000中,然后4K运行完之后跳
分类:
其他好文 时间:
2016-03-14 18:51:49
阅读次数:
263
题意:对于n堆石子,每堆若干个,两人轮流操作,每次操作分两步,第一步从某堆中去掉至少一个,第二步(可省略)把该堆剩余石子的一部分分给其它的某些堆。 真是好♂题,代码不长就是好♂题。 首先考虑两堆相同的石子,先手一定必输,因为若是我操作第一堆,则后手也可以对第二堆做对称决策。 其实,其他情况,一定是先
分类:
其他好文 时间:
2016-03-11 18:56:09
阅读次数:
142
Given a linked list, remove the nth node from the end of list and return its head. Given linked list: 1->2->3->4->5->null, and n = 2. After removing t
分类:
其他好文 时间:
2016-03-06 11:18:00
阅读次数:
173
1.题目: 1180. Stone Game Time limit: 1.0 secondMemory limit: 64 MB Two Nikifors play a funny game. There is a heap of N stones in front of them. Both Ni
分类:
其他好文 时间:
2016-03-05 18:51:42
阅读次数:
133
Program Stone; var i,j,k,l,n,m,xmi,big,sma:longint; h:array[1..50000]of longint; tf:array[0..16]of longint; max,min:array[1..50000,0..16]of longint; f
分类:
其他好文 时间:
2016-03-02 22:06:01
阅读次数:
162
题目百度把,太长了。程序有点长,写的很渣。就不注释了。 1 Program Stone; 2 3 var n,qu,ji,tot,root,move:longint; 4 5 s:array[0..5000000]of char; 6 7 lc,rc,f,o:array[0..5000000]of
分类:
其他好文 时间:
2016-03-02 22:03:00
阅读次数:
223
http://poj.org/problem?id=1696 __________________________________ 类似求凸包。满足一定可以经过所有点。 __________________________________ 1 Program stone; 2 type coord=
分类:
其他好文 时间:
2016-03-02 22:00:19
阅读次数:
131
http://162.105.81.212/JudgeOnline/problem?id=3461 1 Program stone; 2 var i,j,k,n,ans:longint; 3 w,s:ansistring; 4 b:array[1..10000]of longint; 5 Begin
分类:
其他好文 时间:
2016-03-02 21:35:19
阅读次数:
154