码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
bzoj 1051: [HAOI2006]受欢迎的牛
1 #include<cstdio> 2 #include<iostream> 3 #define M 50008 4 using namespace std; 5 int du[M],ti,ti1,cnt,head[M],head1[M],next1[10*M],u1[10*M],next[10*
分类:其他好文   时间:2016-03-02 00:13:05    阅读次数:140
1033 to fill or not to fill
贪心算法 注意两点: 1、sum用double类型 2、第二个测试点是起点没有加油站的情况 AC代码 1 #include <vector> 2 #include <cstdio> 3 #include <algorithm> 4 #include <map> 5 using namespace s
分类:其他好文   时间:2016-03-02 00:13:03    阅读次数:200
POJ 2234 Matches Game(取火柴博弈1)
传送门 #include #include #include #include using namespace std; int main() { int n; while(~scanf("%d",&n)) { int a,res=0; for(int i=0;i<n;i++) { scanf("%...
分类:其他好文   时间:2016-03-02 00:07:46    阅读次数:175
bzoj 1066: [SCOI2007]蜥蜴
1 #include<cstdio> 2 #include<iostream> 3 #define T 1001 4 #define M 10005 5 #define inf 0x7fffffff 6 #include<cstring> 7 using namespace std; 8 int c
分类:其他好文   时间:2016-03-02 00:07:15    阅读次数:257
PAT1013
#include<cstdio>#include<cstring>#include<vector>using namespace std;const int maxn=1001;int mp[maxn][maxn],vis[maxn];int n,m,k;void dfs(int s){ vis[s
分类:其他好文   时间:2016-03-01 20:48:25    阅读次数:309
MyBatis(3.2.3) - Paginated ResultSets using RowBounds
Sometimes, we may need to work with huge volumes of data, such as with tables with millions of records. Loading all these records may not be possible
分类:其他好文   时间:2016-03-01 19:00:10    阅读次数:113
PAT1007
#include<stdio.h>#include<vector>#include<algorithm>using namespace std; int main(void){ int k; int i,j; int sum = 0; int max = 0; int start,rs; int e
分类:其他好文   时间:2016-03-01 17:18:43    阅读次数:134
1242 Rescue BFS
#include<iostream> #include<string> #include<string.h> #include<stdio.h> #include<math.h> #include<queue> #include<algorithm> using namespace std; int
分类:其他好文   时间:2016-03-01 17:14:55    阅读次数:124
数塔 简单的 动态规划
挺简单的 , 从下向上将 下一行的 数字向上 一行 加 然后 将 这一行的 再向上 + 加到 最上面的时候 最上面的 就是 最大的值 #include<stdio.h> #include<algorithm> using namespace std; int a[101][101]; int max
分类:其他好文   时间:2016-03-01 14:35:02    阅读次数:136
MyBatis(3.2.3) - One-to-one mapping using nested ResultMap
We can get Student along with the Address details using a nested ResultMap as follows: <resultMap type="Address" id="AddressResult"> <id property="add
分类:移动开发   时间:2016-03-01 12:33:18    阅读次数:280
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!