跳到正文

DYH_bubble

1050788

Hi

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

资料、奖项与版本

资料

编号
1050788
抓取

奖项

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

版本

  1. v2当前
  2. v1

快读

C
char buf[1<<20],*p1_,*p2_;
#define gc() (p1_==p2_&&(p2_=(p1_=buf)+fread(buf,1,1<<20,stdin),p1_==p2_)?EOF:*p1_++)
int f_,x_,ch_; 
inline int in(){
    f_=1,x_=0;
    ch_=gc();
    while(ch_<48||ch_>57){
        if(ch_==45) f_=-1;
        ch_=gc();
    }
    while(ch_>=48&&ch_<=57) x_=x_*10+ch_-48,ch_=gc();
    return x_*f_;
}

快写

C
void out(int x){
    if(x<0) putchar('-'),x=-x;
    if(x>9) out(x/10);
    putchar(x%10+'0');
    return;
}

对 __int128 类型有效

pd_ds
#include <bits/extc++.h>