(ง๑ •̀_•́)ง ヽ(*>∇<)ノ ε٩(๑> ₃ <)۶з
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《N年以前 点3 TLE了 现在看不懂自己代码了,求调》回复:
你这个代码可能是想找等于a[i]-c数字区间,你的左端点用二分找的复杂度不高,但是右端点复杂度高了。右端点应该用二分找最后一个等于a[i]-c的数,然后ans+=r-l+1
在讨论《68tps TLE求助》回复:
已解决,把初始化删了即可通过
在讨论《40tps求助!!》回复:
已解决,double temp 打成了 int temp,写顺手了QAQ
```cpp #include using namespace std; const int maxn = 1010; double a[maxn][maxn], b[maxn][maxn]; double n, m; vector tv; vector v; vector swap1, swap2; double s…
在讨论《建议降橙》回复:
@[TipherethB](luogu://user/1259877)那就升绿题(
在讨论《建议降黄》回复:
@[Hydrargyrum](luogu://user/795660)请问这题需要先学习联通块再来做吗?
```cpp #include using namespace std; typedef unsigned long long ll; const int maxn = 3e5+100; ll a[maxn]; struct node{ ll month, day; bool operator >= 1; } retu…
在讨论《24tps求助!!》回复:
忘了初始化了,但是只有68pts
```cpp #include using namespace std; typedef long long ll; const int maxn = 4e5+100; ll a[maxn]; int p; struct node{ ll month, day; bool operator >= 1; } return…
在讨论《请问这个思路为什么不对?》回复:
解决了,是读入格式有问题
```cpp #include using namespace std; const int maxn = 1010; char mp[maxn][maxn]; int f[2][maxn][maxn];//max int g[2][maxn][maxn];//min void print(int a[2][maxn]…
```cpp #include #include #include using std::ios; using std::memset; using std::cin; using std::cout; typedef long long ll; const int maxn = 1010; int mod = 998…
```cpp #include #include #include #include #include using std::ios; using std::cout; using std::cin; typedef long long ll;//可以用ll防精度误差 const int maxn = 1030; ll…
在讨论《桶排序60分求助》回复:
@[chx_happy](/user/1175010) 应该不会的,因为while(cnt[j]) cnt[j]--;
在讨论《桶排序60分求助》回复:
没事了,没有判断i!=j
在讨论《桶排序60分求助》回复:
删等于号直接保龄了QAQ
```cpp #include using namespace std; const int maxn = 3010; string s[maxn]; int cnt[26]; int main(){ freopen("dict4.in", "r", stdin); freopen("test.out", "w", s…
在讨论《模拟爆0求助》回复:
已经解决了,把vis[i]改成vis[j]就可以了,不过是不是样例太水了,这都没超时
``` #include using namespace std; const int maxn = 1e5+100; struct node{ int time, price; }; int a[maxn][4]; vector v; bool vis[maxn]; int main(){ int n; cin >>…
在讨论《建议评红》回复:
这题确实不难,但是我眼瞎没看见边长可以为零结果搞了半天QAQ
在讨论《奇怪的问题》回复:
@[LHM_zs](/user/1024294) 我的意思是题解数组比我开的还大
在讨论《奇怪的问题》回复:
@[LHM_zs](/user/1024294) 应该不是吧,我看题解直接开到1e7了
```cpp #define _CRT_SECURE_NO_WARNINGS #include using namespace std; const int maxn = 2e6+5e5; int pre[maxn]; bool vis[maxn]; vector Prime; void isprime(){ for(…
``` #include using namespace std; vector v[1000005]; bool f[1000005]; void dfs(int id){ cout q; void bfs(){ q.push_back(1); while(!q.empty()){ int t = q.front()…
```c #include using namespace std; unsigned long long a[100005]; int main(){ int n, k; unsigned long long ans = 0; scanf("%d%d",&n, &k); if(k == 1){ cout = max(…
在讨论《非暴力50分求助》回复:
k改成longlong只能多拿5分QAQ
```cpp #define _CRT_SECURE_NO_WARNINGS #include using namespace std; int n; int p,l,r,k; long long ans = 0; struct node{ int l, r; }; stack a;// int main(){ sca…
在讨论《ac了,但是有点疑问》回复:
@[_Haoomff_](/user/368111) 感谢,只看ai的范围了