跳到正文

SproutPower

701027

萌幂||支持壶关,忘关私信喵~

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

资料、奖项与版本

资料

编号
701027
抓取

奖项

2025 CSP-S
二等奖
2024 CSP-J
二等奖
2024 CSP-S
二等奖
2023 CSP-J
一等奖

版本

  1. v4当前
  2. v3
  3. v2
  4. v1

剪贴板解密

题解库

总结库

记事本

模板

大学指南

快读快输:

C++
#include<stdio.h>
#include<stdint.h>
#include<ctype.h>
#include<string.h>
#define BUF (1<<22)

uint8_t buf[1<<20],*p1,*p2;
uint8_t obuf[BUF+17],*now=obuf;
uint8_t fr[17];
#define gc() (p1==p2&&(p2=(p1=buf)+fread(buf,1,1<<20,stdin),p1==p2)?EOF:*p1++)
#define pc(x) (now ++[0]=(x))

int read(){int x=0,f=1;char c=gc();while(!isdigit(c))c-'-'?:(f=-1),c=gc();while(isdigit(c))x=x*10+(c^48),c=gc();return x*f;}
void write(int x){
    if(!x)return(void)(pc(48));
    if(x==-2147483648)return(void)(memmove(now,"-2147483648",11),now+=11);
    uint8_t* tot=fr+17;
    (x<0)&&(now ++[0]=45,x=-x);
    (x)&&((--tot)[0]=x%10|48,x/=10),
    (x)&&((--tot)[0]=x%10|48,x/=10),
    (x)&&((--tot)[0]=x%10|48,x/=10),
    (x)&&((--tot)[0]=x%10|48,x/=10),
    (x)&&((--tot)[0]=x%10|48,x/=10),
    (x)&&((--tot)[0]=x%10|48,x/=10),
    (x)&&((--tot)[0]=x%10|48,x/=10),
    (x)&&((--tot)[0]=x%10|48,x/=10),
    (x)&&((--tot)[0]=x%10|48,x/=10),
    (x)&&((--tot)[0]=x%10|48,x/=10);
    //while(x)(--tot)[0]=x%10|48,x/=10;
    memmove(now,tot,fr+17-tot);
    now+=fr+17-tot;
}

int main(){
    fwrite(obuf,1,now-obuf,stdout);
    return 0;
}