这个家伙一点也不懒,什么也没有留下
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《求助大佬,n*m为什么会TLE》回复:
@[kendas](luogu://user/1428433)知道原因了,以后问问题加编译器版本
在讨论《求助大佬,n*m为什么会TLE》回复:
@[Cindy_Li](luogu://user/565091) 不会是__biltin_clz函数吧,代码中其他函数中洛谷中用得很多,应该基本上没问题,估计洛谷是不让用__biltin_clz
在讨论《求助大佬,n*m为什么会TLE》回复:
@[yzm0325](luogu://user/804115) 嗯嗯,我一直用的是17,一直找不到原因以为是我代码有问题,但是报tle又显然很矛盾qaq
在讨论《求助大佬,n*m为什么会TLE》回复:
@[Cindy_Li](luogu://user/565091) 啊大佬还有这种事吗?O2会负优化www,萌新第一次听说,谢谢大佬(不过怎样书写会导致这种厌氧呢)
代码如下: ``` #include #define endl '\n' using namespace std; typedef long long LL; typedef pair PII; const int INF = 1e18; class solution { public: void solve(); }…
在讨论《90求调》回复:
@[lanthe0](luogu://user/1505379) 我傻了,现在才看到,谢谢佬
在讨论《求助记忆化为什么不行》回复:
此贴结,原因是这题是双向边,我傻了
在讨论《求助记忆化为什么不行》回复:
@[OWPPIE](luogu://user/1396852) 呜呜呜我知道原因了,这道题的边是双向边,谢谢佬,想当然了.
在讨论《求助记忆化为什么不行》回复:
总共只过了1个点,其他全wa了
代码如下,求大佬解答,感激不尽! ``` #include #define endl '\n' using namespace std; typedef long long LL; typedef pair PII; const int INF = 1e9; const int N = 1e6+10,M = 2e6+1…
在文章《题解:P1004 [NOIP2000 提高组] 方格取数》发表评论:
大佬tql学到了
样例过但是0分 大佬有时间帮帮蒻暨吧 ``` #include using namespace std; typedef long long LL; typedef pair PII; const int INF = 1e9; void solve() { int n;cin>>n; vector q(n + 1);…
在讨论《95pts求调》回复:
@[_tao_tie_](luogu://user/1016480) QaQ谢谢佬
#### 看了题解都没AC,我大概的确是废了 ``` #include using namespace std; typedef pair PII; const int N = 2e5+10; int v[N],w[N]; PII inv[N]; long long st[N],sw[N]; int main() {…
在讨论《dfs 70求调,不明白为什么会有WA》回复:
气煞我也,就要dfs,就要dfs ``` #include using namespace std; typedef pair PII; vector q; const int N = 410; const int F = 200; double ans = 1e9; int n; bool st[20]; doubl…
在讨论《dfs 70求调,不明白为什么会有WA》回复:
完全不知道这么优化了,卡在90分了(悲) ``` #include using namespace std; typedef pair PII; vector q; const int N = 410; const int F = 200; double ans = 1e9; int n; bool st[20]; d…
在讨论《dfs 70求调,不明白为什么会有WA》回复:
@[kendas](luogu://user/1428433) 知道了,现在90分了,原来是奶酪坐标可能不一定是整数.....但是还是有超时,不知道咋优化
逻辑应该没啥问题啊,emmmm,难道是double的比较出问题了??? ``` #include using namespace std; typedef pair PII; vector q; const int N = 410; const int F = 200; double ans = 1e9; int n;…
在讨论《二分加bfs50分求调》回复:
@[kendas](luogu://user/1428433) 此贴结,找到原因并且成功AC了好耶
在讨论《新手42求调》回复:
@[kendas](luogu://user/1428433) 解决了,st数组应该提前标记,而不是不用或者再bfs尾部标记为true,会导致大量重复入队
在讨论《做bfs总是RE,有没有大佬解释解释》回复:
@[kendas](luogu://user/1428433) 这下真过了,此贴结了,找到了原因,#3的数据有点坑,大量询问,而且每次询问都是没有被bfs过的点,导致很多memset操作,浪费了很多时间,实际上不需要memset st数组
在讨论《做bfs总是RE,有没有大佬解释解释》回复:
找到原因了,因为没有及时把tx,ty点设置为已访问,优化了很多,但是还是有个倔强的#3不给我过QAQ ``` #include using namespace std; typedef pair PII; const int N = 1010; int n,Q; char g[N][N]; bool st[N][N];…
做bfs的题总是会RE,这到底是为什么,按理说队列中最多也就是把整个图的点加入啊,为什么会RE呢,想不明白,像这题绝大多都RE了,就30分,然后队列开大一点就MLE ``` #include using namespace std; typedef pair PII; const int N = 1010; int n…
在讨论《20分求调》回复:
@[rhy1314](luogu://user/1373155)已关,谢谢佬
### 不知道为什么会有RE ### 有两个TLE(完全接受 using namespace std; typedef pair PII; int m; const int N = 310; vector >q; int g[N][N]; int dx[]{1,0,-1,0},dy[]{0,-1,0,1}; pair…
请大佬过目,调教小白 ```cpp #include using namespace std; typedef pair PII; const int N = 1010; int g[N][N]; int n,m; PII f[N*N]; int tt = -1, hh; bool st[N][N]; bool che…
在讨论《90求调》回复:
``` #include using namespace std; const int N = 4e4+10; int q[N]; int main() { int n;cin>>n; for(int i = 0; i >q[i]; int x,y; cin>>x>>y; int res = 0; for(int i…
#### 测试点5WA了,看了数据也是和别的数据一样是10000地毯 #### 先贴代码,求大佬看看 ``` #include using namespace std; const int N = 4e4+10; int q[N]; int main() { int n;cin>>n; for(int i = 0; i…
处理不好添加+号,只过了第二个样例,也就是说如果是2的一次方的而且这个数正好在一个括号内的最后一个数的话,就处理不好,会多添加一个加号,比方说 样例:``73`` 输出:``2(2(2)+2+)+2(2+2(0))+2(0)`` ``` #include #include #include using namespac…
在讨论《有一个测试没过大佬看看啥情况》回复:
@[Peter_Li](/user/1218949) 神医啊我去,谢谢佬!