france

https://github.com/francecil

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 27 下一页

2014年9月3日

摘要: 题目:有三种角色,假设是a,b,c; 其中a是攻,b是受,c可攻可受,每个人都除了拥有一个角色外,还有一个属性值,只有两个绝对值相差2的攻,受才能配成一对,问最多能配成多少对如果按角色来分肯定不行, 那么要用二分图的话,就是对属性值来分 左右两边 分别是 %4=2 这样正好二分。。。这个思想很重要。... 阅读全文
posted @ 2014-09-03 18:11 france 阅读(166) 评论(0) 推荐(0) 编辑

2014年8月21日

摘要: #include#define N 10007using namespace std;vector p[N];bool vis[N*2];int mat[N*2];bool find(int x){ for(int i=p[x].size()-1;i>=0;--i){ int y=p[x][i];... 阅读全文
posted @ 2014-08-21 09:36 france 阅读(117) 评论(0) 推荐(0) 编辑

2014年8月16日

摘要: 3.3.1.1.Constructor InjectionConstructor-basedDI is effected by invoking a constructor with a number of arguments, each representing a dependency. Add... 阅读全文
posted @ 2014-08-16 08:59 france 阅读(252) 评论(0) 推荐(0) 编辑

摘要: 1. FAQ:不给提示:a) window – preferences – myeclipse – xml – xml catalogb) User Specified Entries – addi.Location: D:\share\0900_Spring\soft\spring-framewo... 阅读全文
posted @ 2014-08-16 08:25 france 阅读(119) 评论(0) 推荐(0) 编辑

摘要: 在 选中的jar包右键 properties 在javadoc里面引入api的路径比如我要查看 spring的javadoc,导入这个文件夹:E:\Java\spring-framework-2.5.6\docs\api查看的时候就点击那个类 或方法,按F1 ... 阅读全文
posted @ 2014-08-16 07:33 france 阅读(504) 评论(0) 推荐(0) 编辑

2014年8月15日

摘要: #include#includeusing namespace std;#includeint main(){ int T; string le,ri,cm; int i,j; cin>>T; for(i=1;i>cm; le=ri=""; int len=cm.length(); for(j... 阅读全文
posted @ 2014-08-15 16:37 france 阅读(157) 评论(0) 推荐(0) 编辑

2014年8月14日

摘要: #include #include #include #include#define eps 1e-8using namespace std;double p[110][110];double sum;int n;void init(){p[2][1]=2.0/3.0;p[2][2]=1.0/3.0... 阅读全文
posted @ 2014-08-14 17:16 france 阅读(114) 评论(0) 推荐(0) 编辑

摘要: 大意:有一张N*N的网格,你每次可以走一步,每格只能走一次,有没有一种方法让走了L步后回到一个距原点1步远的格子?没有输出Unsuitable device,否则输出Overwhelming power of magic并输出方案。一开始用DFS 奇偶剪枝了还是TLE,代码如下:#include#i... 阅读全文
posted @ 2014-08-14 11:43 france 阅读(181) 评论(0) 推荐(0) 编辑

2014年8月12日

摘要: 一对一(one to one)单向关联映射两个对象是一对一的的关系.有两种策略可以实现一对一的关联映射l 主键关联:即让两个对象具有相同的主键值,以表明他们之间的一对一的对应关系;数据库表不会有额外的字段来维护他们之间的关系,仅通过表的主键关系来维护.一对一主键关联映射默认了级联属性,其关联对象会同... 阅读全文
posted @ 2014-08-12 22:03 france 阅读(509) 评论(0) 推荐(0) 编辑

摘要: #include#include#include#includeusing namespace std;int snum,n,m,sum,flag;int map[35][35];int hum[35][35];char st[500];int c,mmax;int num[30],tt[30];i... 阅读全文
posted @ 2014-08-12 16:53 france 阅读(169) 评论(0) 推荐(0) 编辑

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 27 下一页