这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
思路:记忆化搜索 代码如下: ```cpp #include #include #include #include using namespace std; struct line{ int L,R,H; }f[1000000]; int n,max_fall; bool cmp(line f1,line f2){ i…
在讨论《TLE》回复:
在一位大佬的指点下改成了快读 依旧TLE QAQ ```cpp #include #include #include using namespace std; int a[3000000],al[3000000],head[1000010],an=0; int father[1000010][21],depth[100…
又是TLE 只好求助各位大佬 作为一个习惯了cin/cout的弱鸡,scanf/printf实在不熟一打就RE,我还是太菜了。 代码如下: ```cpp #include #include using namespace std; int a[1200000],al[1200000],head[500010],an=0…
在讨论《卡常 求大佬指点》回复:
@[多功能的荀彧](/space/show?uid=43931) 多谢大佬指教!
在讨论《卡常 求大佬指点》回复:
开O2 384ms 不开O2 5456ms ORZ
GG 代码如下: ```cpp #include #include using namespace std; int head[330000],a[410000],aw[410000],al[410000]; bool visit[330000]; const int maxn=2147483647; int dis[…
在讨论《诸位硕佬们帮帮忙!60分求解》回复:
好吧 插入代码不知道为什么插成这样233 各位硕佬帮帮忙 代码如下: ```cpp #include #include using namespace std; int w[200005][4],v[200005][4]; int an=0; int m,n; int dp[200005]; int main(){ m…
```cpp #include #include using namespace std; int w[200005][4],v[200005][4]; int an=0; int m,n; int dp[200005]; int main(){ memset(w,0,sizeof(w)); memset(v,0,si…