跳到正文

BeanMiao

1793246

不想AFO||NOIP2026RP++

这是 2026年11月26日 存档的第 4 版,不是当前版本。查看当前版本

资料、奖项与版本

资料

编号
1793246
抓取

奖项

2025 CSP-J
二等奖

版本

  1. v5当前
  2. v4
  3. v3
  4. v2
更早的 1 个版本
  1. v1

这个人很懒,什么都没写

C++
char *p1,*p2,buf[100000];
#define nc() (p1==p2 && (p2=(p1=buf)+fread(buf,1,100000,stdin),p1==p2)?EOF:*p1++)

int rd(){
	int f=1,x=0;
	char ch=nc();
	while(ch<'0'||ch>'9'){
		if(ch=='-'){
			f=-1;
		}
		ch=nc();
	}
	while(ch>='0'&&ch<='9'){
		x=x*10+ch-'0';
		ch=nc();
	}
	return x*f;
}
C++
void write(int x){
	if(x<0){
        putchar('-');
        x=-x;
    }
	if(x>9){
        write(x/10);
    }
	putchar(x%10+'0');
}