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
贪心算法 注意两点: 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
传送门 #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
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
#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
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
#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
#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
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