笨拙的人癫狂时稍显智慧的优雅
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《20pts求条玄关》回复:
更新:60pts ```cpp #include #define int long double using namespace std; int T; long n,m; int L,V; long ans1=0,ans2=0; vector road; struct CAR{ double l,r; }car[10…
```cpp #include #define double long double #define int long long using namespace std; int T; int n,m,L,V; int ans1=0,ans2=0; vector road; struct CAR{ double l,r…
在讨论《LGR-231-Div.3 & 「CZOI-R4」赛后总结》回复:
@[NameGod](luogu://user/599813) https://www.luogu.com.cn/article/5ag52gip 推一下我自己的题解(
```cpp #include #define int long long using namespace std; int n,L; int dp[50010]; int c[50010]; int k[50010]; int cnt=0; int check(int id){ int idk=2*c[id]+2*L…
~~蒟蒻的第一篇题解,求过~~ [推一下自己的专栏](https://www.luogu.com.cn/article/5ag52gip) **首先,我们可以注意到这道题中节点的编号是没有任何用处的。** 由于可以任意填编号,对于符合 $T_{2}$ 的点,我们原样填进去,其余节点,我们填大于 $n$ 的数。 而我们站…
在讨论《0pts求条玄关》回复:
@[hepp](luogu://user/541313) 已关,谢谢大佬
在讨论《0pts求条玄关》回复:
@[hepp](luogu://user/541313) 好的
在讨论《0pts求条玄关》回复:
@[hepp](luogu://user/541313) okk,但是我还是想问原来的码具体哪些地方错了,看不过来。如果告诉我的话,接下来我改map重写的话也会知道哪些地方该注意了,谢谢大佬
在讨论《0pts求条玄关》回复:
@[hepp](luogu://user/541313) 中午回宿舍了( 我再看两眼,大佬改的地方原来有哪些是影响正确性的呢
在讨论《0pts求条玄关》回复:
@[hepp](luogu://user/541313)okk,但是我看不到你的主页(
在讨论《0pts求条玄关》回复:
@[hepp](luogu://user/541313) ```cpp #include #define int long long #define in int using namespace std; int cnt=0; int g[200010]; int dp[200010]; struct energy{…
```cpp #include #define int long long using namespace std; int cnt=0; int g[200010]; int dp[200010]; struct energy{ int l,r,v; }; vector egy; bool cmp(energy x,…
```cpp #include using namespace std; int n; int root; int cnt=0; int lastans=0; struct tree{ int lid,rid; int left,right; long double k,b; int num=0; }leaf[2000…
```cpp #include using namespace std; int n,m,k; int root; int bxj[200010]; int cnt=0; struct EDGE{ int x,y; bool operator cx; map num; int find(int x){ if(bxj[x…
```cpp #include using namespace std; int n,m,t; int mp[35][35]; int dp[35][1005]; int mod=2017; int main(){ cin>>n>>m; for(int i=1,u,v;i >u>>v; mp[u][v]=1; mp[v…
```cpp #include #define int long long using namespace std; int n,m,s=0,t=200005; int cnt=0; vector ne[100005];//原点->现边 bool flag[200010]; int ans[200010]; struc…
```cpp #include #define int long long using namespace std; int n,m; int a[1005][1005]; int dp[1005][1005][5]; signed main(){ cin>>n>>m; for(int i=1;i >a[i][j];…
在讨论《蒟蒻求条》回复:
这是修改之后的代码,还是过不了,但输出与下载的测试点相同 ```cpp #include using namespace std; int ans=INT_MAX; bool flag[1000010]={}; int l; int s,t,m; int dp[1000010]={}; struct Q{ int nu…
```cpp #include using namespace std; int ans=INT_MAX; int l; int s,t,m; int dp[1000010]; struct Q{ int num; int tim; }q[1000010]; vector stone; int main(){ cin>…
在讨论《(线段树1)求条!!!玄关》回复:
已解决 修改操作中存在重复添加情况 修改操作中没有更新父节点 访问操作中没有有效下传懒标记
```cpp #include #define int long long using namespace std; struct tree{ int num; int lid,rid; int left,right; int lan; }; tree leaf[1000005];int cnt=0; int a[10…
在讨论《关于树状数组初次接触者的疑问》回复:
@[WsW_](luogu://user/349824) 线段树维护的那个数组叫什么~~这几天刚学到这一块学杂了~~
我一直不太能熟练掌握树状数组访问父/子节点的下标运算相关德数学知识,于是: ```cpp struct tree{ int num; int lid,rid; int left,right; }; tree leaf[1000005];int cnt=0; int a[100005]; inline int build…
我明明红了#7和#10,但为什么洛谷给我过了,但显示0分(雾) ```cpp #include using namespace std; struct st{ char cijevi; int up,down,left,right; bool edge=0; }; int main(){ int r,c,mx,my,z…
个人感觉和所有题解的写法都不一样,请求添加 ```cpp #include using namespace std; struct BAG{ int weight,value; }; int dp[1005]={}; int n,m; map > bag; int main(){ cin>>m>>n; for(int…
在讨论《52分求调》回复:
@[cokeCC](luogu://user/1382230) 已回复,看一眼,谢谢dalao
在讨论《52分求调》回复:
正解不注意也会出现同样问题 可以试一试边算边取余 例如我的码: ```cpp #include #define int long long using namespace std; struct MA{ long long num; bool t; }; int n; MA ma[500005]; long long…
```cpp #include #define int long long using namespace std; struct MA{ int num; bool t; }; int n; MA ma[400005]; long long fastpow(long long x,long long m){ long…
```cpp #include using namespace std; long long ans=1;long long m[200005],a[200005];long long n; int dfs(bool t,long long o,long long z){ if(t==0){ o=min(a[z]-1,…