码迷,mamicode.com
首页 >  
搜索关键字:uvalive 6814    ( 873个结果
UVALive 5029 Encoded Barcodes
Encoded Barcodes Time Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %llu Submit Status Practice UVALive 5029 Description All the big malls need a powerful system f...
分类:其他好文   时间:2014-08-08 21:25:16    阅读次数:302
UVA 12124 UVAlive 3971 Assemble(二分 + 贪心)
先从中找出性能最好的那个数, 在用钱比较少的去组合,能组出来就表明答案在mid的右边,反之在左边, #include #include #include #include #include using namespace std; map vic;//以字符映射数字 int end,start; int num; int m,n; int sba,sbb; char na...
分类:其他好文   时间:2014-08-08 12:59:35    阅读次数:266
UVALive 6662 TheLastAnt
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 struct xxx 7 { 8 int p,d; 9 }a[22];10 int n,l;11 bool f[22];12 int main(...
分类:其他好文   时间:2014-08-08 12:20:55    阅读次数:163
UVALive 6661 Equal Sum Sets
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #in...
分类:其他好文   时间:2014-08-08 12:10:25    阅读次数:231
UVALive 6663 Count the Regions --离散化+DFS染色
题意:给你n(n#include #include #include #include #include #include using namespace std;#define N 207vector vx,vy;map hx,hy;int dx[4] = {0,0,1,-1};int dy[4]...
分类:其他好文   时间:2014-08-07 21:42:20    阅读次数:260
UVALive 6449 IQ Test --高斯消元?
题意:给你一串数字,问这串数字符合f[n] = a*f[n-1],f[n] = a*f[n-1]+b*f[n-2],f[n] = a*f[n-1]+b*f[n-2]+c*f[n-3]这几个方程中的哪个,然后要你给出第n+1项,如果符合多个方程,项数小的优先(第一个方程优先)。解法:这题我先处理看是否...
分类:其他好文   时间:2014-08-07 00:45:47    阅读次数:238
UVALive 6467 Strahler Order 拓扑排序
这题是今天下午BNU SUMMER TRAINING的C题是队友给的解题思路,用拓扑排序然后就可以了最后是3A其中两次RE竟然是因为:scanf("%d",mm);ORZ以后能用CIN还是CIN吧 QAQ贴代码了: 1 #include 2 #include 3 #include 4 #in...
分类:其他好文   时间:2014-08-04 23:57:48    阅读次数:596
UVALive 6163
#include #include #include #include #include #include #include #include #include #define inf 0x7f7f7f7fusing namespace std;int cal(int a, int b, int c...
分类:其他好文   时间:2014-08-02 20:55:34    阅读次数:206
UVALive 6255 Kingdoms --状态搜索
题意:n个国家,给出国家间相互的债务关系,每个国家如果债务>收入就要破产,破产后该国的所有债务关系全部清除,第一个破产的国家不同有可能造成最后的没破产的国家的不同,问哪些国家有可能成为独自存活的国家。解法:因为最多20个城市,破产与否的状态可用二进制数表示,破产为1,不破产为0,然后进行搜索,每一个...
分类:其他好文   时间:2014-07-30 11:41:03    阅读次数:156
UVALive 6262 Darts
DescriptionConsider a game in which darts are thrown at a board. The board is formed by 10 circles with radii 20, 40, 60, 80, 100, 120, 140, 160, 180,...
分类:其他好文   时间:2014-07-30 09:53:33    阅读次数:319
873条   上一页 1 ... 80 81 82 83 84 ... 88 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!