今天继续学习spring中。理解了依赖注入,就基本能看懂它的例子。配置文件比较多,感觉就是基于配置的一个框架。我们不能为了用它而用它,究竟是什么需求促使我们去用它。我做过的项目很少,不过看了些别人的文章,真的用起来,确实会不错,模块间的耦合降到最低,单元测试变得容易,而且也不依赖于具体框架,不用spring的时候,我们的模块也照样独立工作。
不过这一切都要基于良好的设计,良好的设计需要注意的地方
原创
2005-01-07 17:01:00
1149阅读
Problem DescriptionJam like to solve the problem which on the 3D-
原创
2022-11-09 18:57:05
59阅读
题意: 问每个点的等级 CDQ 注意处理一下完全相等的点即可 #include<bits/stdc++.h> using namespace std; //input by bxd #define rep(i,a,b) for(int i=(a);i<=(b);i++) #define repp(i
转载
2019-07-19 16:03:00
47阅读
2评论
Jam's problem again HDU - 5618 题目大意:三维坐标,对于1个点,找出有多少个点,3个坐标都小于等于该点
转载
2017-12-21 19:51:00
51阅读
2评论
"Fibonacci again and again" 参考: "SG函数和SG定理【详解】" 思路:这是比较简单的SG定理的运用,SG定理—— 游戏和的SG函数等于各个游戏SG函数的Nim和 如果一个位置 的SG值为0,那么这个点就为必败点 ,否则就是必胜点 必败点:用N表示 必胜点:用P表示 对
原创
2022-11-03 15:26:59
75阅读
题意Misaki's Kiss againTime Limit: 2000/1000 MS (Java/Others) Memor
原创
2022-07-29 22:49:34
71阅读
https://qduoj.com/problem/65提前把所有字符串按字典序排序 然后插入字符串
原创
2022-06-16 00:27:28
72阅读
Problem Description After the Ferries Wheel, many friends hope to receive the Misaki’s k
原创
2023-04-24 08:45:33
77阅读
题意:找出0到N−1中,有哪些数满足gcd(N,M)==NxorM.解法:暴力枚举N的所有约数K,令M=N
原创
2023-07-05 19:00:20
57阅读
let's make dependency walker fast again原总结优化工具dependency walkerprocess monitorprocess explorer 缘起 最近,经常需要调查 dll 加载失败的问题。前一阵子刚分享了一篇,感兴趣的小伙伴而可以点击 这里。相信,
原创
2022-01-05 17:01:34
220阅读
Problem Description 任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的:F(1)=1;F(2)=2;F(n)=F(n-1)+F(n-2)(n>=3);所以,1,2,3,5,8,13……就是菲波那契数列。在HDOJ上有不少相关的题目,比
转载
2018-01-31 08:45:00
48阅读
2评论
这是尼姆博弈的变型; 还是博弈,可是这次要用Sg函数最后异或等于0后手赢 反之,先手赢 #include <iostream> #include <cstring> #include <cstdio> using namespace std; int f[100]={1,2,3,5}; int e[
转载
2016-02-06 08:13:00
50阅读
2评论
题意:同nim,3堆,每次取的为fib数,n#include using namespace std;int f[1005], a[100];bool b[20];int main() { a[1]=1; a...
原创
2021-08-11 14:02:08
66阅读
// Time 0ms, Memory 236K#include
#include
#include
#include
using namespace std;
int fb[16],sg[1001],v[1001];
int mex(int x)
{ if(sg[x]!=-1) return sg[x]; int i; memset(v,0,sizeof(v)); for(i=1;i=0;i++) { sg[x-fb[i]]=mex(x-fb[i]); v[sg[x-fb[i]]]=1; } for(i=...
转载
2013-05-30 11:04:00
29阅读
2评论
HDU
转载
2012-02-24 12:41:00
41阅读
2评论
Fibonacci again and againTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:184864-bit integer IO format:%I64d Java...
转载
2014-08-12 21:21:00
133阅读
2评论
Fibonacci again and againTime Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32
原创
2022-03-18 14:54:38
50阅读
Fibonacci again and again Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)http://acm.hdu.edu.cn/showproblem.php?pid=18
原创
2021-08-05 10:47:45
62阅读
Fibonacci again and again Problem Description 任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的:F(1)=1;F(2)=2;F(n)=F(n-1)+F(n-2)(n>=3);所以,1,2,3,5,8,13…
转载
2017-02-06 16:11:00
86阅读
2评论
http://acm.hdu.edu.cn/showproblem.php?pid=1848 #include<cstdio> #include<cstring> int sg[10001],a[15]; int mex(int n) { bool vis[16]={0}; for(int i=0;
转载
2017-07-01 08:43:00
52阅读
2评论