这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp #include using namespace std; #define ll long long const int N=1e5+5; struct node { int n,q; }a[N]; bool cmp(node a,node b){return a.n>b.n;} int t,n,m; i…
在讨论《敌人数组不能初始化?》回复:
@[Cxs_Lg](/user/782808) 谢谢点拨
```cpp #include using namespace std; const int N=5e5+5; int fa[N],fb[N]; int num[N]; int n,m; int gett(int a) { if(fa[a]==a) return a; int ro=gett(fa[a]); retur…
[record](https://www.luogu.com.cn/record/176281022) ```cpp #include using namespace std; #define ll long long const int N=2e5+5; int n,m; struct node { ll x,t;…
```cpp #include using namespace std; typedef long long ll; const int N=125; int n; int a[N][N]; int dp[N][N]; int ans=-INT_MAX; int main() { cin>>n; for(int i=1…
```cpp #include using namespace std; typedef long long ll; const int N=1e5+5; int main() { string s; int n,m; cin>>n>>s>>m; int x=0; for(auto c:s) x=x*n+(c>='0'…
```cpp #include using namespace std; int n,m;int ans; char a[105][105]; void dfs(int x,int y) { a[x][y]='.'; int xx,yy; for(int i=-1;i =1&&xx =1&&yy >n>>m; for(…
在讨论《求助!#4WA》回复:
@[Jadonyzx](/user/1164775) 你while循环中的事可以放到后面的双for里来弄就是判断是否在边界位置,是的话就延续上一个的,不是就前两个相加,当然还要特判一下i==0&&j==0 ```cpp #include using namespace std; int dir[8][2]={{2,1}…
在讨论《全超时0分求助》回复:
直接把你的p定义成INT_MAX试下 你可以参考我的代码 ```cpp #include using namespace std; const int N=1e6+5; int a[N]; int n,m; int check(long long x) { if(x==0) return 1; long long s=…
```cpp #include using namespace std; int a,b,c,d; double f(int x) { return (a*x*x*x+b*x*x+c*x+d); } double sswr(double a) { return ((int)a*1000)%10>=5?((int)(a*…
在讨论《大佬们求几道背包题目》回复:
@[WA_6X版](/user/373905) 谢谢
在讨论《大佬们求几道背包题目》回复:
@[Epsilon1220](/user/695868) 谢谢
在讨论《蒟蒻好奇,这道题是不是不同语言解答难度不同?》回复:
那这种题目本来就是拿来**练手**的嘛
在讨论《全WA求调》回复:
不用那么复杂用那么多结构体容易搞乱 看我的直接用数组储存再维护 ``` #include using namespace std; const int N=1e5+5; int t[N],p[N],d[N]; int ans; int main() { int n; cin>>n; int q=1; int num=0…