![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
力扣刷题
时物
这个作者很懒,什么都没留下…
展开
-
刷题(day2)
#include<iostream> using namespace std; int main() { int A,B,C; int m=A-B,n=B-C,x=A+B,y=B+C; cin>>m>>n>>x>>y; A=(x+m)/2; B=(n+y)/2; C=(y-n)/2; if((x+m)%2==0&&(n+y)%2==0&&(y-n)%2==0)...原创 2022-03-24 18:46:22 · 538 阅读 · 1 评论 -
力扣刷题计划(day1)
1.基本(数组) 对于我这种刚开始刷题的小菜鸟来说,遇到这种题第一反应是用暴力解法,两个for搞定 class Solution { public: int maxArea(vector<int>& height) { size_t max=0; for(int i=0;i<height.size();i++) { for(int j=i+1;j<height.size();j++) { int _height=height[i]原创 2022-03-23 13:04:21 · 584 阅读 · 1 评论