这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《为什么题解里没有这种思路》回复:
@[Infinity_qwq](luogu://user/720872)没写过题解不知道怎么写T_T
用并查集中i+n存储i相反的意思 当opt==1时 add(i,a),add(i+n,a+n); 否则 add(i+n,a),add(i,a+n); 当有任何一个i存在find(i)==find(i+n)时无解 然后再用num[i]存储一个并查集内的编号为1~n的节点的个数 最后答案就是这样求 ```cpp for(i…
在讨论《感觉出现了5>6的情况》回复:
@[Snoip](luogu://user/1491280)我也考了八级,两个题都打的暴力,第一题我打dijkstra+dfs只给我2.5(好莫名其妙),第二题我打区间dp骗分只给我0分(好无辜T_T)
在讨论《CE求助》回复:
endl后面还有个分号没加
在讨论《CE求助》回复:
a==-a改成a=-a
如果你只有10分并且只有第一个点,请把求距离函数从 ```cpp double g(int x1,int y1,int x2,int y2){ return sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)); } ``` 改成 ```cpp double g(int x1,int y1,int…
原本64分的代码因为差了4个字符变成了40分 ```cpp #include #include using namespace std; const int N=5005,mod=998244353; typedef long long ll; int n,a[N]; ll c[N][N]; int f=1; ll a…
在文章《题解:P11965 [GESP202503 七级] 等价消除》发表评论:
我第一题都过了,第二题只有5分
在讨论《67pts求调》回复:
```cpp #include using namespace std; int n,a[10001]; int main(){ cin>>n; a[0]=1; int f=0; for(int i=1;i<n;i++){//删掉'=' int b=a[i-1]-(i+1); if(b<=0){ a[i]=a[i-1]…
在讨论《求调,回复必关!!!》回复:
已AC ```cpp #include using namespace std; int a[3005]; int main() { int n; cin>>n; /*并不理解这有什么用 for(int i=1;i 0&&a[k-1]-k!=a[i]) { a[k]=a[k-1]-k; } else { a[k]=a[…
在讨论《我太难了》回复:
可以把findd函数和a数组优化成map,更快 下面是AC代码 ```cpp #include #include using namespace std; typedef long long ll;//数据太大用long long ll a[3005];//开全局变量保险 int n; bool findd(ll nu…
在讨论《WA0分,求助》回复:
使用 ```cpp ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); ``` 格式化输入后,不可用C语言中的scanf()和printf()
在讨论《各位大佬,这个思路可以吗?》回复:
不会是跟我赛时一样的思路吧?~~虽然没听懂~~ ```cpp //CSP-J 2024 第三题 小木棍(sticks) #include #include using namespace std; int t,n,st[10]={6,2,5,5,4,5,6,3,7,6};//打表 int main(){ //freop…
在讨论《dij,80tps,求助!》回复:
不愿意重复学习一个文化两遍
[提交记录](https://www.luogu.com.cn/record/196316659) ```cpp #include using namespace std; const int N=105,inf=1e9; int n,k,m,s,t,c[N],a[N][N],e[N][N],u,v,d; int ma…
在讨论《为啥我用暴力还会比dp快》回复:
把hdc的初始值改成4还能快到15ms
谁来分析一下 [暴力17ms](https://www.luogu.com.cn/record/193494638) [dp169ms](https://www.luogu.com.cn/record/193494830) ```cpp #include //暴力代码 using namespace std; int…
[历史记录](https://www.luogu.com.cn/record/192148809) ```cpp #include #include #include using namespace std; const int N=10005,M=100005; int n,m,u,v,scc[N],cnt,low[…
[88分,错一个样例](https://www.luogu.com.cn/record/191952773) ```cpp #include #include #include using namespace std; const int M=1005,N=35; struct node{ int v,c,ne; }a…
[没用快读](https://www.luogu.com.cn/record/190831518) [用了快读](https://www.luogu.com.cn/record/190832900)
在讨论《暴力超时一个点,我真是天才》回复:
@[ZMQ_Ink6556](/user/1125291) 只要用C++20交就能过的
在讨论《暴力超时一个点,我真是天才》回复:
这样的时间复杂度是按数据的平均差值来算的,数据好就能过,数据不好就凉
在讨论《关于我CSP-S第一题55这件事》回复:
我考场的桶排序都只超时了一个点 ```cpp #include using namespace std; const int N=100005; int a[N],t[N],n,ans; int main(){ scanf("%d",&n); ans=n; for(int i=1;i =0;j--){ if(a[j])…
```cpp #include using namespace std; const int N=100005; int a[N],t[N],n,ans; int main(){ scanf("%d",&n); ans=n; for(int i=1;i =0;j--){ if(a[j]){ ans--; a[j]--;…
为啥全超时啊 ```cpp #include using namespace std; const int N=100005; int a[N],t[N],n,ans; int main(){ scanf("%d",&n); ans=n; for(int i=1;i =0;i--){ if(a[j]){ ans--;…
为啥骗分代码一分没有? ```cpp #include #include #include #include #include #include #include using namespace std; const int N=100001; vector v[N]; vector >st[2*N]; int t,n…
在讨论《帮我看看骗分代码为什么全RE啊》回复:
其实我觉得正解更好 ~~看不懂什么意思~~ ```cpp //CSP-J 2024 第三题 小木棍(sticks) #include using namespace std; int st[10]={6,2,5,5,4,5,6,3,7,6};//打表 int t,n; int main(){ cin>>t;//多组测试…
在讨论《啊啊啊又错了》回复:
生日一样的要按输入顺序输出
[题目](https://www.luogu.com.cn/problem/B3647) [提交记录](https://www.luogu.com.cn/record/180716676) ~~想不到Floyd模板题都能错~~ ```cpp #include using namespace std; int n,m,a…
[不是洛谷的题](https://qqwhale.com/problem/1886) ```cpp #include #include #include #include using namespace std; const int N=85; struct edge{ int v,w; }; vector e[N];…