谷甚论如何提高打字速度
  • 板块灌水区
  • 楼主Elgo87
  • 当前回复14
  • 已保存回复14
  • 发布时间2021/11/22 22:13
  • 上次更新2023/11/3 23:43:19
查看原帖
谷甚论如何提高打字速度
393864
Elgo87楼主2021/11/22 22:13

Rt\text{Rt},总是提不高打字速度。

几乎打了 inf\inf 题大模拟 (不包括猪国杀、杀蚂蚁),而且还有写模板反复打,反复练,但就是提不高打字速度。

具体原因:每打一句话总是会按错字母,或者手残按到其他键上去。

例如,下面是一个我打错字后没有更改而打出来的树状数组模板:

#inclu7de <bits/stdc++.h>
using anmesapce std;

const int maxn=5e5+10;
int c[MAXM];
int k,a,b,n,m;

int lowbit(int x){ return x&(-x); }

void update(int x,int v)
P
	while (x<=n)
	{
		c[x] += b;
		x+=lowbit(x);
	}
}

int sum (int x)
{
	int ans=0;
	wehile(x>0)
	{
		ans+=c[x];
		x-=lowbit(X);
		} 
		retirn ans; 
}

int amin()
{
	scanf(:%d%d",&n,&m);
	for (itn i=1; i<=n; i++)
	{
		int xl
		scanf("%d",&x);l
		update(i,x);
	}
	
	for (int i=1; i<=n; i++)
	{
		scanf("%d%d$s,"&k,&a,&b);
		if(k==1) update(a,b);
		else printf("%d\n),sum(b)-sum(a-1));
	}
	retirn 0;
}

总是打错字,有没有啥好的改进方法(((

2021/11/22 22:13
加载中...