摘要: P1601 A+B Problem(高精) 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=505; 4 int a[N],b[N],c[N]; 5 void get(string &s,int *p) 6 { 7 int 阅读全文
posted @ 2021-12-19 21:55 matt-11 阅读(92) 评论(0) 推荐(0)
摘要: 1 class Solution { 2 public: 3 long long getDescentPeriods(vector<int>& prices) { 4 int n=prices.size(); 5 long long dp[n+1]; 6 for(int i=1;i<=n;i++)d 阅读全文
posted @ 2021-12-19 14:33 matt-11 阅读(21) 评论(0) 推荐(0)
摘要: 1 class Solution { 2 3 public: 4 int kIncreasing(vector<int>& arr, int k) { 5 int n=arr.size(); 6 int st[n],top=0,ans=0,cnt=0; 7 for(int i=0;i<k;i++) 阅读全文
posted @ 2021-12-19 14:30 matt-11 阅读(122) 评论(0) 推荐(0)