跳到正文

BeanMiao

1793246

SOLVE MORE PROBLEMS!

这是 2026年10月27日 存档的第 2 版,不是当前版本。查看当前版本

资料、奖项与版本

资料

编号
1793246
抓取

奖项

2025 CSP-J
二等奖

版本

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

这个人很懒,什么都没写

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