摘要:
https://leetcode-cn.com/problems/get-equal-substrings-within-budget/ 滑动窗口模板题 class Solution { public: int equalSubstring(string s, string t, int maxCo 阅读全文
摘要:
BZOJ4195 debug了好久都快烦了呜呜呜呜呜呜呜呜呜呜 // // Created by Arc on 2021/2/3. // #include <bits/stdc++.h> #include <unordered_map> using namespace std; typedef pa 阅读全文
摘要:
今天养老了,stl简单题,,,就多看看别人大佬的思路吧 p3613 这个题用的是一个比较巧妙的方法,就是参考dl的博客,,,因为数据范围只有1e5,所以你可以通过第一维*1e5+第二维来表示,这样就用一个map就可 #include <bits/stdc++.h> using namespace s 阅读全文
摘要:
最近哈,最近发现有一点点怯题,,就是一做题就怕错,,,,,,战胜困难的最好的办法就是面对他!!!刷题走起!还是最容易抠细节的二分~~ 有一个范围,并且数据比较大,并且有递增递减关系,,,,二分 注意!一般得开long long //二分模板 while(left<=right){ int mid=( 阅读全文