蒜头君的最大子段和

题目: 代码以下:c++ #include<bits/stdc++.h> using namespace std; #define MAX 1000005 #define NIL 1e9 typedef long long LL; LL a[MAX]; int main() { LL n,sum = 0,ans = -NIL; cin >> n; for(int i = 0;i < n;i+
相关文章
相关标签/搜索