向前进就会获得信念
int max( int a[], int l, int r) { if (l == r) return a[l]; int m = (l+r)/2; int u = max(a, l, m); int v = max(a, m+1, r); if (u > v) return u; else return v; }
Post a Comment
No comments:
Post a Comment