跳到正文

Linktux

1185284

一个蒟蒻

2026年12月1日抓取时,洛谷已只让登录用户或作者本人查看这个页面。下面是本站之前保存的内容。

在洛谷打开
资料、奖项与版本

资料

编号
1185284
抓取

版本

抓取失败
洛谷只让登录用户或作者查看
  1. v1当前

click to conceal

快读快写,方便复制

C++
namespace FastIO{
    int p,pt=-1;
    char buf[1<<21],buf1[1<<21],a[20],ch=' ',*pos=buf,*pos1=buf1;
    void read(){}
    void write(){}
    inline int getch{return pos==pos1?&&(pos1=(pos=buf)+fread(buf,1,1<<21,stdin),pos==pos1)EOF:*pos++;}
    inline void flush(){fwrite(buf1,1,pt+1,stdout),pt=-1;}
    template<typename T,typename... T_>
    inline void read(T &x,T_ &...oth){
        bool flag=false;
        x=0;
        char c=getch();
        while(!isdigit(c)){if(c=='-')f=true;c=getch();}
        while(isdigit(c))x=(x<<1)+(x<<3)+(c^48),c=getch();
        x=f?-x:x;
        read(...oth)
    }
    template<typename T,typename... T_>
    inline void print(T x,T_ ...oth){
        if(pt>1<<20)flush();
        if(x<0)buf1[++pt]=45,x=-x;
        do a[++p]=x%10+48;while(x/=10);
        do buf1[++pt]=a[p];while(p--);
        buf1[++pt]=ch;
        print(...oth);
    }
}using namespace FastIO;

超牛链接 福音链接 AC 世界上最长的词链接

C++
祝所有人(尤其是给我点过赞的)遇题即锕!

多多举报这个人

还没有收录这位用户的文章。