View Code #include<stdio.h>#include<string.h>int a[50003];int f[50003], g[50003];#define inf 1000000000int max(int a, int b) { return a > b ? a : b;}int main(){ int i, j, cas, n; scanf("%d", &cas); while(cas--) { scanf("%d", &n); for(i = 1; i <= n; i++) Read More
posted @ 2012-11-15 13:48
To be an ACMan
Views(162)
Comments(0)
Diggs(0)
注意边界View Code #include<stdio.h>#include<string.h>#include<algorithm>using namespace std;#define inf 1000000000int max(int a, int b) {return a > b ? a : b;}int n, m;int a[103][103], dp[103][103];int main(){ int i, j; while( ~scanf("%d%d", &n, &m)) { for(i = 1; i Read More
posted @ 2012-11-15 08:48
To be an ACMan
Views(160)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号