摘要:
a[i]<=1000 !!!! #include <iostream> #include <cmath> #include <cstring> using namespace std; int n,b[1003]; int gcd(int x,int y){ return y==0?x:gcd(y, 阅读全文
posted @ 2022-10-26 11:43
towboat
阅读(24)
评论(0)
推荐(0)
摘要:
已知每支股票的价格序列 a , 进行若干次买卖( 一次买卖的收益a[j] - a[i] ) 求最大收益 f[i][0/1] #include <iostream> #include <vector> #include <cstring> using namespace std; const int 阅读全文
posted @ 2022-10-26 10:59
towboat
阅读(29)
评论(0)
推荐(0)
浙公网安备 33010602011771号