版本比较
火车头-plus
正文
增加 3 行删除 3 行
31 行未改动3233343536363738393839404131 行未改动 inline void write(const std::string&s){for(char c:s)_pc(c);} inline void write(bool b){_pc(b?'1':'0');} template<typename T,typename...Args>inline void read(T&x,Args&...args){read(x);read(args...);} template<typename T,typename...Args>inline void write(const T&x,const Args&...args){write(x);write(args...);} struct FastIO{~FastIO(){if(p3>obuf)fwrite(obuf,1,p3-obuf,stdout);}template<typename T>FastIO&operator>>(T&x){read(x);return*this;}template<typename T>FastIO&operator<<(const T&x){write(x);return*this;}}; struct FastIO_{~FastIO_(){if(p3>obuf)fwrite(obuf,1,p3-obuf,stdout);}template<typename T>FastIO_& operator>>(T& x){read(x);return *this;}template<typename T>FastIO_& operator<<(const T& x){write(x);return *this;}}fio;}using namespace FastIO;#define cin FastIO::FastIO()#define cout FastIO::FastIO()#define cin FastIO::fio#define cout FastIO::fio#define endl '\n'```